This article applies to both Nintex Workflow 2013 and Nintex Workflow 2010 and is targeted to beginner users of Nintex Workflow.
A State Machine Workflow is used when actions within a workflow need to be repeated by multiple parties and workflow advancement is dependent on the outcome.
The Graphics team needs to approve the artwork, the Marketing department needs to approve the artwork and content and the CEO needs to approve the entire advertisement. If the Marketing department rejects the artwork, the artwork returns to the Graphics department. If the CEO rejects the advertisement then it returns to the Marketing department.
To end a state machine, you will need to use the Change State action. Using any other action, e.g. the End Workflow action, can cause any number of fun/ random errors!
Your workflow should appear as it does below.
Select and place a Request Approval workflow action below each state and configure the action with relevant user information from your environment.
If the advertisement is rejected from the Graphics Team, an email is sent to the initiator to end the workflow.
Note: To end a state machine, you will need to use the Change State action. Using any other action, e.g. the End Workflow action, can cause any number of fun/ random errors!
If the advertisement is approved, a Change State workflow action will direct the workflow to the Marketing Department state.
Note: You can change to a state from any other – states do not have to be directly next to each other.
If the advertisement is approved by the CEO, an email will be sent to the initiator of the workflow and the state machine will be ended.
Note: If required, the workflow can continue on to other actions after the state machine is ended. The completed state machine as shown.
Hi, created the same exactly, but constantly getting the error message:
Status: failed on start > retrying.
Note: Due to heavy load, the latest workflow operation has been queued. It will attempt to resume at a later time.
Appreciate your help on what's wrong.
I have a similar question here.
I am working on "Leave Management System" and I have a scenario where approver can send the request to the user back and ask for "More Information"
I have used the State Action, but it is working as expected.
Attached is the screenshot of the workflow. Can you please help?
Great article Emily !
I'd like to add a precision that I learned few times ago : the "Change state" action should be the last one on a branch otherwise other actions under this one will be executed before changing the state. For example, if you add a "Run if" action and inside this action you add a "Change state" action, this action will be executed (if the condition of the "Run if" action is validated of course) but before changing the state of the state machine, actions after the "Run if" will be executed.
Hope it will help others