isTaskActive

Version

1.3

Parameters

Parameter Type Description
wfstr string Workflow task name.
wfProcess (optional) string Workflow process name.

Returns

Returns true if workflow task wfstr is active, or false if it is not.

If used with the WorkflowTaskUpdateAfter event, this function returns true if wfstr becomes active as a result of the WorkflowTaskUpdateAfter event. The function returns false if wfstr becomes inactive as a result of the WorkflowTaskUpdateAfter event.

Notes

If record’s workflow contains duplicate wfstr tasks, use parameter wfProcess to specify the process or subprocess whose wfstr to check.

wfProcess is R1_PROCESS_CODE in the GPROCESS and SPROCESS tables. wfProcess is normally in uppercase.