.NET Workflow: Transition Between States Through Code

189 views Asked by At

I am building a simple app for bug tracking, and I am using a .NET Workflow Activity Library project with a State Machine, with the individual states representing the states for a bug - Reported, Assigned, and Completed.

I am able to use the WorkflowInspectionServices class to obtain the list of state transitions for the bug for each state. However, I am trying to:

  1. Determine the current state that a particular bug is in, and
  2. Change the current state, without using the trigger condition (I want to trigger the change through code when the user selects the state from the dropdown)
  3. Read the value of a variable within the workflow

How can I do these with a .NET Workflow?

0

There are 0 answers