Order Items Tutorial - NeoSOFT-Technologies/workflow-plugins GitHub Wiki

Order Items Workflow

We have OrderItems workflow as shown below:

You can also get the workflow image by clicking here.

You can get the source code for this workflow here.

OrderItems5 OrderItems6 OrderItems7 OrderItems8

Activity Explanation

Explanation for highlighted activities are as follows:


1. For Each

Models a looping construct that is similar to C#'s foreach statement where the loop iterates over a collection of objects. When providing an expression using Json or JavaScript, make sure that the expression evaluates to an array.

Properties

Property Description
Items A collection of objects to iterate over.

Outcomes

Outcome Description
Iterate Scheduled for each iteration of the loop. When an iteration ends, the activity will automatically determine if another iteration should be scheduled.
Done Scheduled when the loop has finished.

CF_ForEach

The loop will iterate over Order Items.

CF_ForEach2