How to use conditions in transition line
Native mapper for transitions (to be extended to group)
Create Application
Create an application with name “TransitLogic”.

Create Workflow
Create a new workflow and assign it the name “Conditional Transition Workflow”

Choose Trigger
Select “RestService” as the trigger for the workflow.

Add RestService Path
Set the RestService path to “/testCondition/{num}” or modify according to specific requirements.

Add Additional Activities
Incorporate two response activities into the workflow to return values based on specified conditions. Alternatively, add other relevant activities according to the requirements.

Add Conditions in Transition line
Define conditions on the transition line to control the flow between activities according to specific requirements.
a. Select Transition Name or Type Choose a descriptive name for the transition to clearly indicate its purpose or select the appropriate type of transition based on workflow requirements.

b. Enable the Condition Expression:
To Enable the Conditional Expression Navigate to Dev Tools and then click on Use Condition Expression and toggle the function to "ON.".

c. Add Condition: Add condition data as needed. Start the condition with a “$” symbol. For example: ($.RESTService.pathParams.num>=10)

d. Define Transition type for the other Transition line Choose a descriptive name for the transition to clearly indicate its purpose or select the appropriate type of transition based on workflow requirements.

Configure the Response Activities
Extend the default schema in the Response Activity to include necessary fields, then map the data according to your specific requirements.

Configure the next Response Activity similarly, adjusting the schema and data mapping as needed based on specific requirements.
Publish the Workflow
Click the Publish icon, add comments describing the changes or updates, and then click "Publish" to finalize the process.

Deploy the Workflow
Click on the Deploy icon, then enter a Deployment Name and select the appropriate Environment. Finally, click "Deploy" to initiate the deployment process.

Test the Workflow
Test the workflow by adding the required parameters and headers. Then, click "Send" to initiate the test.

Last updated