May 15, 2020
Estimated Post Reading Time ~

Goto Step in Workflow

In this blog we will discuss Goto Step:
The Goto Step specifies the next step in the workflow model to execute, depending on the result of an ECMA script. 

If Script returns true, The Goto Step completes and the workflow engine executes the specified step.
If Script returns false, The Goto Step completes and the normal routing logic determines the next step to executes.
When you drop this step in your model and double click on this step you will find two tabs Common and Process.

In the common tab, you have to give the title and description and, the following properties are available in process tab:
1. Step to go to Select the step to execute.
2. Script path: The path of the ECMA script that determines whether to execute the Goto Step.
3. Script: The ECMA script that determines whether to execute the Goto Step.
Specify the value for either the Script Path or the script property. If you specify values for both properties, the step uses Script Path.

In my case, there are four-step I can switch. 


And write an ECMA script which returns always true.



Click OK. Now after this step Dialog Participant Step will be executed.


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.