To create a state machine, follow these steps:
- Open ConWHSVehicleTable in the designer. Right-click on the State Machines node and choose New State machine.
- Rename the new state machine InspStateMachine and complete the properties as shown in the following table, creating labels for the Description and Label properties:
Property |
Value |
Description |
Use this to control the inspection status |
Label |
Inspection status |
Data Field |
InspStatus |
- Right-click on the new state machine definition and select New State.
- Complete the properties of this state using the following table:
Property |
Value |
Enum Value |
NotInspected - change this to Waiting, and then back again to default the Label property. ... |