Creating a manual workflow task
A manual task is a task that is assigned to a user in order to perform an action. The action can be any task, such as Inspect vehicle, and the user will then state that the task was complete.
This workflow will be used to instruct the vehicle to be inspected, and record whether it was inspected in a new field on the vehicle table.
Getting ready
This follows from the Creating a Workflow Type recipe, as we need a workflow document class.
How to do it...
To create the manual workflow task, follow these steps:
- We need a new Base Enum for the inspection status, as this will be used both to see whether a vehicle has been inspected and also to control the state of the workflow task; name it
ConWHSVehInspStatus
and create the elements as shown in the following table:
Element | Label | Description |
NotInspected | Not inspected | This vehicle has not yet been inspected |
Waiting | Waiting | This workflow has been submitted, but has not yet been allocated an approver |
InProgress | InProgress | This workflow... |