Verb sub task
Last updated
Last updated
A sub workflow is an element in a User step
There are three types of sub workflows: Check List: Executes one workflow for each record in a list of things to do. Item Creation: Creates a new item for each time the sub workflow is executed. Verb: A side track in the workflow where the sub workflow can be executed one or many times.
A sub workflow is created from a User Step. Create a new User Step and add a verb sub-task element. Configure the appearance of verb sub-task element in the client.
Set the following:
Title: Text on the verb sub-task element button.
Icon: Icon one the on the verb sub-task element button.
Allow Multiple Runs: This should be check to allow the verb sub-task element to be run multiple times whist in the same user step in the main workflow.
Pills: Pill on the sub workflow button. One or multiple pills can be configured on the verb subtask, the pill can display a text or a count of how many times the verb sub-task has been run*
Close the User Step, an icon will now appear, representing the added sub workflow.
Double click on the sub workflow icon to open the (empty) sub workflow.
Create a workflow, all variables from the main workflow are available in the sub workflow.
Return data back to the main workflow by configuring the End step in the sub workflow. The output from the sub workflow is put in the target variable of the verb sub-task element. The sub workflow output is available once the user has moved on from the user step the verb sub-task is located in, i.e. it is not possible to use the data in the user step the sub workflow is started from.
The user step contains three verb sub-tasks with the following content:
Add Additional Info a. addInfo ? text input b. finishDate ? date input
Add Picture (Allow multiple runs = TRUE) a. addPicture ? camera input
Add Material (Allow multiple runs = TRUE) a. gridMaterial ? data grid
User Step:
5. Script Step: outPutPictures
6. Script Step: selectedMaterialAll
7. Assignment: selectedMaterial
8. User Step
Sub verb-tasks run in iOS - Pills:
Scrip Step - Add pictures to table:
Scrip Step - Grid ? verb sub task run multiple times (loop in loop):
Assignment ? fetch first picture:
Assignment ? fetch last grid:
The output from a sub workflow will always be in grid format.