resumeWorkflow
Resume suspended workflow instances in Adobe Experience Manager to continue automated content management processes.
Instructions
Resume a suspended workflow instance
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workflowId | Yes |
Implementation Reference
- Core handler function that executes the resume workflow logic by sending a POST request to the AEM workflow instance endpoint with action 'resume'.async resumeWorkflow(workflowId: string): Promise<{ success: boolean; operation: string; timestamp: string; data: { workflowId: string; status: string; resumedAt: string; }; }> { return safeExecute(async () => { if (!workflowId) { throw createAEMError( AEM_ERROR_CODES.INVALID_PARAMETERS, 'Workflow ID is required', { workflowId } ); } // Resume the workflow const resumeData = { action: 'resume' }; const response = await this.httpClient.post( `/etc/workflow/instances/${workflowId}`, resumeData, { headers: { 'Content-Type': 'application/json' } } ); return createSuccessResponse({ workflowId, status: 'RUNNING', resumedAt: new Date().toISOString() }, 'resumeWorkflow'); }, 'resumeWorkflow'); }
- src/mcp-server.ts:783-787 (handler)MCP tool handler case that extracts workflowId from arguments and delegates to aemConnector.resumeWorkflow.case 'resumeWorkflow': { const workflowId = (args as { workflowId: string }).workflowId; const result = await aemConnector.resumeWorkflow(workflowId); return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] }; }
- src/mcp-server.ts:499-509 (schema)Input schema definition for the resumeWorkflow tool, requiring workflowId string.{ name: 'resumeWorkflow', description: 'Resume a suspended workflow instance', inputSchema: { type: 'object', properties: { workflowId: { type: 'string' } }, required: ['workflowId'], }, },
- src/mcp-handler.ts:95-96 (handler)Secondary handler in MCPRequestHandler that delegates to aemConnector.resumeWorkflow.case 'resumeWorkflow': return await this.aemConnector.resumeWorkflow(params.workflowId);
- src/mcp-handler.ts:161-161 (schema)Tool description and parameters listed in available methods.{ name: 'resumeWorkflow', description: 'Resume a suspended workflow instance', parameters: ['workflowId'] },