To hook up the state machine to a workflow task, follow these steps:
- Open the ConWHSVehWFInsp workflow task.
- Set the Canceled State Machine property to InspStateMachine.
Yes, this is spelled Canceled, but it is more than compensated by the clever way it has determined the list of valid state machines.
- Set the Canceled State Machine Target State property to Waiting; we won't be allowed to use NotInspected. Due to this being the state machine's initial state, it will let you set this value, but the state machine will reject the change.
- Set the Started State Machine property to InspStateMachine, and the Started State Machine Target State property to Waiting.
You will also need to allow the Waiting state to transition directly ...