How to do it...

To create a state machine, follow these steps:

  1. Open ConWHSVehicleTable 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 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

  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 again to default the Label property. ...

Get Extending Microsoft Dynamics 365 for Operations Cookbook 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.