Extending Microsoft Dynamics 365 Finance and Supply Chain Management Cookbook - Second Edition
by Simon Buxton
How it works...
First, we used menu items as our user interface into the inspection status state machine. This is fine and is common as a workflow is not always required. A workflow is sometimes not suitable if the same person will be progressing the state through to completion. This would get in the way and there is always over a minute in delays when handling the workflow event.
To have both code scenarios, we ended up with two classes with a similar name: ConVMSVehicleTableInspStatusHandler and ConVMSVehicleWFInspStatusHandler. Since we can decide whether to use menu items or a workflow to interface with the state machine, we usually have one class to do this.
The change we have made was to simply tie the events on the workflow task to ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access