How to do it...

To create a state machine, follow these steps:

  1. Open ConVMSVehicleTable in the designer. Right-click on the State Machines node and choose New State machine.
  2. Rename the new state machine InspStateMachine and complete the properties shown in the following table by creating labels for the Description and Label properties:
Property Value
Description Use this to control the inspection status.
Label Inspection status.
Data Field

InspStatus.

  1. Right-click on the new state machine definition and select New State.
  2. Complete the properties of this state using the following table:
Property Value
Enum Value NotInspected. Change this to Waiting, and then back to the default Label property.
Description The vehicle ...

Get Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.