How to Have Parallel Tasks
Step by step guide
You will need access to the Raw JSON feature in the Advanced Editor to set up this functionality. If you don’t currently have access you can ask your system administrator or contact us at connect@rise-x.io
For this example we will be running two tasks in parallel but you can run as many tasks in parallel as you would like
- The tasks that are to be run in parallel need to within the same step
- Get the event name from the action that sends to the first task that will be parallel
- Copy it into notes
- On raw json in properties tab
- Search for the step name that contains the tasks that should be done in parallel
- Then look within the first “task” object of the object that is the step that holds the tasks that should be done in parallel
- Then look within the first “steps” array
- There should be as many objects within the “steps” array as there are tasks in that step
- Then collapse the first “task” property and directly beneath it is the “actions” property
- In the “actions” property array add in {} then wait for autosave
- Add in this configuration beneath the “activities” property in the action
- "name": "<ecosystemName>/workflow/entity/generated-756a5752-bb59-4c2f-bc68-2649b8d6b05b/untitledstep__generated-77a541e1-930d-4a13-be6f-16a2d723ded2/untitledtask__generated-e84ed8a4-4b8c-4842-ada5-b6c39ce8d2a6/autostarttask2/v1",
- "normalisedName": "<ECOSYSTEMNAME>/WORKFLOW/ENTITY/GENERATED-756A5752-BB59-4C2F-BC68-2649B8D6B05B/UNTITLEDSTEP__GENERATED-77A541E1-930D-4A13-BE6F-16A2D723DED2/UNTITLEDTASK__GENERATED-E84ED8A4-4B8C-4842-ADA5-B6C39CE8D2A6/AUTOSTARTTASK2/V1",
- "simpleName": "AutoStartTask2",
- "displayName": "Auto Start",
- Change the start of the “name” property value to be your ecosystem name and then replace one of the letters or numbers in each of the GUIDs with a random letter or number
- Add in “eventName”: underneath the “read” property
- Pasta the value of the event name that you copied from before
- Change the “mode” value to 16
- Now copy that whole action
- Go to the second task (which will be the second “steps” object)
- Go to the “actions” property like before and repeat the process
- Publish the workflow
- Now when you submit the task to the second step it will give two submit panels one after the other, one for the first task and one for the second
Example of the action I added to Raw JSON
"actions": [
{
"activities": [],
"name": "workflowbuilding/workflow/entity/generated-756a2752-bb59-4c2f-bc68-2649b8d6b05b/untitledstep__generated-77a561e1-930d-4a13-be6f-16a2d723ded2/untitledtask__generated-e84ed8a4-4b8c-4842-aaa5-b6c39ce8d2a6/autostarttask2/v1",
"normalisedName": "WORKFLOWBUILDING/WORKFLOW/ENTITY/GENERATED-756A2752-BB59-4C2F-BC68-2649B8D6B05B/UNTITLEDSTEP__GENERATED-77A561E1-930D-4A13-BE6F-16A2D723DED2/UNTITLEDTASK__GENERATED-E84ED8A4-4B8C-4842-AAA5-B6C39CE8D2A6/AUTOSTARTTASK2/V1",
"simpleName": "AutoStartTask2",
"displayName": "Auto Start",
"actionTypeName": "DianaSubmitWorkAction",
"actionType": 0,
"resourceVersion": 0,
"resourceRevision": 0,
"revision": 0,
"id": "808c7086-16db-4e31-9988-7d17cc2683d5",
"version": 1,
"execute": [],
"write": [],
"read": [],
"eventName": "untitledstep/generated-13bb180d-835a-44d3-9de1-9ca149c1198c/submituntitledstep/generated-13bb180d-835a-44d3-9de1-9ca149c1198c",
"destination": {
"destinationType": "Next",
"target": "Next"
},
"mode": 16,
"stepStartMode": 0,
"created": "0001-01-01T00:00:00.0000000Z",
"createdBy": "00000000-0000-0000-0000-000000000000",
"lastModified": "0001-01-01T00:00:00.0000000Z",
"lastModifiedBy": "00000000-0000-0000-0000-000000000000",
"color": "Primary",
"dianaDataType": 15,
"companyId": "00000000-0000-0000-0000-000000000000",
"flowId": "00000000-0000-0000-0000-000000000000",
"flowOriginId": "00000000-0000-0000-0000-000000000000",
"executeStatus": "Complete",
"allowStartAt": false,
"sendDefaultEmail": false,
"executeMode": 0,
"tokenType": "GuestLogin"
}
]