This is applicable to both Nintex Workflow 2013 and Nintex Workflow 2010.
This article explains how you can use Nintex Workflow to request approval from the workflow initiator's manager, and then also that manager's manager, and so-on until there is no-one left in the managerial approval chain.
Included is the final workflow, any other actions can be added at your discretion. This process depends on the use of Active Directory.
A variable will be created to record the nomination of the current approver. A second to store the name of the current approver's manager, and a third to record whether or not the approval process is complete.
Click on the Workflow Settings drop down arrow, and select Variables. Create three variables.
Drag a Build String action onto the canvas. Double-click on the action to open the configuration dialog. This action will set the current approver to be the manager of the initiator of the workflow.
Now we can add a Loop action to the canvas, this will create a loop which is set to run while there is a manager. The condition set for the loop means it will continue while the variable "Approval process complete" is set to No.
The Request Approval action needs to be added to the canvas, within the Loop action. The Request Approval action will set the approver using the value stored in the Current Approver variable.
If the item in the workflow is declined, we can set the Approval Process Complete variable to Yes, and the loop ends.
The Regular Expression action will strip the domain name from the username stored in the Current Approver variable, so it is ready for use in the Query LDAP action.
The LDAP will query using the user name stored in the Current Approver variable, and the result stored in the variable Manager DN.
The next action is Set a Condition. This will check if the Manager DN variable is empty. Once the Manager DN variable is set to Yes, the loop will end, and the rest of the workflow will run.
We now need to add another Query LDAP action. This action will convert the distinguished name, created in the previous action, to a standard "domain/username" format, which will be stored in the Current Approver variable.
Add a Set Variable action
If the variable is not empty, the loop continues. We can set the Approval Process Complete variable to Yes, and the loop ends.
The workflow should look like this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.