How to initiate a Allergen approval Workflow
In Food Manufacturing & Distribution for Microsoft Dynamics NAV there are two workflows available for working with allergens. The first workflow is an approval workflow that is linked to the creation of an allergen code, the second is an approval workflow that is linked to the creation or change of an allergen set of an item.
The first workflow can be used to control the creation of additional workflows. Once all appropriate allergens are added to the system, this approval can be used to control the addition of new allergens, should you wish to do so.
The second workflow can be used to request an approval for a change of allergen information of a specific item. The approval is started when the allergen set of an item is changed manually, which means the changes to allergen-sets due to the execution of an allergen roll-up are not part of this approvel.
The second workflow can also be incorporated into an allergen lifecycle, which means that the state of an item is changed when an allergen is added or changed on an item. This state-change then triggers the approval workflow and when approval is given, the state changes automatically. Please refer to the "How to set up an allergen lifecycle" section (see link below) for further details.
The approval workflows are made available as template in the NAV Food code. Due to a decision by Microsoft, it could be slightly difficult to create a workflow from this template, so we will explain this procedure here. Please note that this procedure is for advanced NAV users only.
- From the Development Environment run table no. 1501 "Workflow".
- For all the lines that have the field "Template" enabled, disable the field and remove the line.
- Execute this step for all workflows designated as Template.
- Restart Dynamics NAV and the templates will be re-created including the new Food workflows. These can then be copied as regular workflows in the regular Dynamics NAV way of working.