closeSubWorkflow
A function that is useful when working with sub-processes.
Version
1.6
Parameters
Parameter | Type | Description |
---|---|---|
thisProcessID | long value | ID of the process to check. |
wfStat | string | Status to use when closing the parent task. |
capId (optional) | CapIDModel | Record to perform action on. |
Notes
Checks all the tasks in the subprocess for completeness. If all tasks are complete, the function closes the parent task with the specified status.
Example
closeSubWorkflow(wfProcessID,"Completed");