Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

How to call workflow from Touch UI

Avatar

Level 1

Hi,

can anyone please help me on how to call workflow in Touch UI.

1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 9

Make an jquery ajax call to a sling servlet which further call the workflow through API

Refer to example below.

Adobe Experience Manager Help | Invoking Adobe Experience Manager Workflows using the AEM Java API

You must also look into solution by smacdonald2008

There are only 2 methods (not counting the Deprecated one)  exposed in the WorkFlowSession Class that starts a workflow:

WorkflowstartWorkflow(WorkflowModel model, WorkflowData data)
           Start a new Workflow instance with the given WorkflowModel and WorkflowData.
WorkflowstartWorkflow(WorkflowModel model, WorkflowData data, Dictionary<String,String> metaData)
           Deprecated. It's recommended to use #startWorkflow(WorkflowModel, WorkflowData, Map instead.
WorkflowstartWorkflow(WorkflowModel model, WorkflowData data, Map<String,Object> metaData)
           Start a new Workflow instance with the given WorkflowModel, WorkflowData and meta data.

Therefore you need a WorkflowModel and data,

In your use case - you need these as input - else it will not work.

How to trigger a workflow process programmatically?

Lösung in ursprünglichem Beitrag anzeigen

4 Antworten

Avatar

Level 9

Avatar

Level 1

Thank you for the suggestion but am trying to access it by using jQuery

Avatar

Korrekte Antwort von
Level 9

Make an jquery ajax call to a sling servlet which further call the workflow through API

Refer to example below.

Adobe Experience Manager Help | Invoking Adobe Experience Manager Workflows using the AEM Java API

You must also look into solution by smacdonald2008

There are only 2 methods (not counting the Deprecated one)  exposed in the WorkFlowSession Class that starts a workflow:

WorkflowstartWorkflow(WorkflowModel model, WorkflowData data)
           Start a new Workflow instance with the given WorkflowModel and WorkflowData.
WorkflowstartWorkflow(WorkflowModel model, WorkflowData data, Dictionary<String,String> metaData)
           Deprecated. It's recommended to use #startWorkflow(WorkflowModel, WorkflowData, Map instead.
WorkflowstartWorkflow(WorkflowModel model, WorkflowData data, Map<String,Object> metaData)
           Start a new Workflow instance with the given WorkflowModel, WorkflowData and meta data.

Therefore you need a WorkflowModel and data,

In your use case - you need these as input - else it will not work.

How to trigger a workflow process programmatically?

Avatar

Level 10

Great answer!