To hook up the state machine to a workflow task, follow these steps:
- Before we start, the workflow needs to be able to move the state directly to Complete. This will cause a fault as our state machine does not have this transition. To continue, open ConVMSVehicleTable and add a transition from Waiting to Complete. Once you've done this, right-click on the state machine and click Generate, just like we did when we created the state machine.
You can copy TransitionToComplete from the PendingApproval state and paste it onto the Waiting state.
- Open the ConVMSVehicleWFInspect workflow task.
- Set the Canceled State Machine property to InspStateMachine.
- Set the Canceled State Machine Target State property to Waiting; we won't be ...