The following content is the final part of a series of posts relating to the an ongoing scenario. The previous posts in this series can be viewed using the links below:
- Nintex Workflow Recording Sales: Introduction
- Part 1 – Advantage of setting workflow status
- Part 2 – Calculation based on item values
- Part 3 – Making use of Loop N Times
- Part 4 – Constructing and sending email
Although this is part of a larger scenario, each post can be suitably viewed separately for those that would like to view this for the general concept.
Final workflow solution
The following acts as a visual example as to how this series of blogs will look when added together into a single workflow.
As a brief rundown, this is what the workflow will do in relation to the Item Sales list:
- As the workflow begins, set the workflow status to “Started” so that the user knows that the process has begun by seeing this text appear in the workflow column
- Set 2 variable values by mapping the column value to the new variables, in this case the Price and Quantity of the sale
- Calculate a Total based on the above 2 variables and save it to its own variable
- Update the “Total” column in the current item to match the result of the calculation (now stored in a variable)
- Using the quantity as the value, create a number of new singular items to represent the inputted quantity
- After creating the individual items, the original item is then removed to avoid duplication of any sort
- Email a customised receipt to the person who entered the sale, giving them the relevant details needed for reference
- Set the workflow status to “Completed” once the last stage is reached in order for the users to see that the process is now complete
There are of course many ways that this workflow could be improved, but keep in mind that the purpose of this is simply to demonstrate the usage of particular actions as much as possible as opposed to perfecting a real world problem, and therefore we hope this encourages you to expand on what you have learnt here to apply these concepts to your own solutions.