Step type : Process control: If we want to complete the workitem or
cancel the workflow in between the flow , then we can use process
control step.
First make the condition of the Fork ( End condition as 02) which implies whenever both the branches
will get executed then only we can end the fork.
Now RC on one of the branch of the fork and select the process control step type.
Select Complete workflow from drop down of Function field.
Now execute the workflow
Two work-items has been created against the user decision step and got placed in Inbox .
Once first branch is executed the process control step will complete the workflow and would not wait
for other worksite to get executed even if the necessary branch was given as 02 in Fork. Hence the other
workitem will get logically deleted and will get disappear from the inbox. Thus if we want to stop the
execution of the workflow or we want to cancel the work item we can use process control step.