How it works...

A workflow configuration is a generic form that builds based on the ModuleAxapta Base Enum. We linked ConWHS to the workflow category, which was then linked to the workflow type. This will allow the workflow designer to create and modify workflows for this module.

The form changes were simply to link the workflow type to the form and to find out which data source was the document data source. This is then used to query whether there are any active workflows for that type, and will show the option to submit the vehicle for approval if there is an active vehicle workflow design.