Skip to main content
Glama

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
NameRequiredDescriptionDefault
workflowIdYes

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');
    }
  • 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) }] };
    }
  • 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'],
      },
    },
  • Secondary handler in MCPRequestHandler that delegates to aemConnector.resumeWorkflow.
    case 'resumeWorkflow':
      return await this.aemConnector.resumeWorkflow(params.workflowId);
  • Tool description and parameters listed in available methods.
    { name: 'resumeWorkflow', description: 'Resume a suspended workflow instance', parameters: ['workflowId'] },

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/indrasishbanerjee/aem-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server