Execution status of a Workflow Instance

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());


2 thoughts on “Execution status of a Workflow Instance”

  1. 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.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: