We can determine the Execution status of an workflow instance using the workflow definition.. Workflow definition of an workflow instance provice the current execution status. Base class Activity contain one field named – ExecutionStatus which is a member of ActivityExecutionStatus Enum. ActivityExecutionEnum contain following values –
- Initialized
- Cancelling
- Closed
- Executing
- Faulting
- Compensating
Example –
Console.WriteLine( "Workflow Execution status :{0} ", instance.GetWorkflowDefinition().ExecutionStatus.ToString());
Hey Adil,
I was just Googling to find out how to determine the status of a workflow instance – and your post was the first hit on google :)
Hope you are doing good.
/Niels
Hey Niels,
Nice to see you here. I am fine, thanks.
Hope you are doing well in BD.
Regards,
Adil