How to initiate an allergen approval workflow
Food Manufacturing & Distribution for Microsoft Dynamics NAV includes two workflows for working with allergens:
- An approval workflow linked to the creation of an allergen code.
- An approval workflow linked to the creation or change of an allergen set on an item.
Approval workflow for the creation of an allergen code
Use this workflow to control the creation of additional workflows. Once all appropriate allergens are added to the system, use this approval to control the addition of new allergens, should you wish to do so.
Approval workflow for the creation or change of an allergen set on an item
Use this workflow to request approval for a change to allergen information on a specific item. The approval starts when you manually change the allergen set of an item. Changes to allergen sets from an allergen rollup are not part of this approval.
You can also incorporate this workflow into an allergen lifecycle. This means that the state of an item changes when an allergen is added or changed on an item. This state change then triggers the approval workflow. When approval is given, the state changes automatically. See the "How to set up an allergen lifecycle" section (link below) for further details.
Approval workflow creation
The approval workflows are available as templates in the Food code. Because of a Microsoft decision, creating a workflow from this template can be slightly difficult. The following procedure explains the steps. Note that this procedure is for advanced users only.
Steps
- From the Development Environment, run table no. 1501 Workflow.
- For all lines that have the Template field enabled, disable the field and remove the line.
- Execute this activity for all workflows designated as Template.
- Restart Dynamics NAV. The templates are re-created, including the new Food workflows. You can then copy them as regular workflows in the standard Dynamics NAV way.