Back

Opening a Workflow Job and Completing its First Task


In many cases a Workflow Job is opened at the completion of a form representing its first task. For example a user may complete a Form that is the fit step of a business process. 

To start a new instance of a Workflow Job and simultaneously complete its first Interactive Task by passing the name of the process and interactive task into workflow.openJobAndCompleteFirstTask(processName, firstTaskName). You can also optionally pass in a completion state, owner and reason.