How to Check Workflow Step Execution Status

If you want to find out about the execution status of a workflow step, you can use the following methods:

  • isInitialized()

  • isPreExecuted()

  • isDenied()

  • isApproved()

  • isWithdrawn()


Groovy
for (step in workflowInfo.steps) {
	if (step.isPreExecuted()) {
	 stageOwner = step.uniqueName
   }
}