ramanjjilunaidu
Nintex Newbie

How to create state machine workflow in nintex workflow

Jump to solution

Dear All,

I have a form submits by the user, now his/her manager gets mail for the approval, if the manager approves, it goes to audit approver, if audit approver approves, it goes to quality dept, if quality approves, the process completes. If manager requires more info, it has to go back to the user for correction, again comes back to manager, this applies in every approval step.

How do i create a workflow to achieve this.

I have created a workflow like below but here when auditor rejects, the request goes back to the initiator, once initiator do some correction, it should directly come to auditor inbox, should not go to his manager.

 

0 Kudos
Reply
11 Replies
ramanjjilunaidu
Nintex Newbie

Re: How to create state machine workflow in nintex workflow

Jump to solution

Dear All,

I have done some changes to my workflow, please find the attachment. but don't know how to run different states.

 

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: How to create state machine workflow in nintex workflow

Jump to solution

Hi,

You were more on the right track on your first attempt I think.

I would do it like this.

StaeMPic.png

 

Attached sample workflow.

View solution in original post

0 Kudos
Reply
ramanjjilunaidu
Nintex Newbie

Re: How to create state machine workflow in nintex workflow

Jump to solution

Dear Simon,

sorry for the delay in response,

We have to assign a task to the manager instead of sending a mail in the first step, i see there is an email that goes to the manger in your workflow.

Regards,

Ram

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: How to create state machine workflow in nintex workflow

Jump to solution
Hi,
Remove the send notification action then if it’s not required.
The workflow will then hit the state machine and go down the manager branch and they will get a task.
0 Kudos
Reply
ramanjjilunaidu
Nintex Newbie

Re: How to create state machine workflow in nintex workflow

Jump to solution
is workflow to be set to run even if the item is updated right Simon.
0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: How to create state machine workflow in nintex workflow

Jump to solution
Hi,
I dont recommend configuring the workflow to run if the item is updated.
The reason being is that this workflow could take time to run due to the amount of steps involved and if you start the same workflow on the item which already has the workflow running it will fail.
0 Kudos
Reply
ramanjjilunaidu
Nintex Newbie

Re: How to create state machine workflow in nintex workflow

Jump to solution

if i don't configure the workflow to run if the item is updated, when manager is rejected, the email is triggering back to initiator but when author is done some correction and resubmits, again manager should get email notification for the approval which is not happening....

0 Kudos
Reply
ramanjjilunaidu
Nintex Newbie

Re: How to create state machine workflow in nintex workflow

Jump to solution

Dear Simon,

I am trying to send edit item url to the initiator when manager is reversed/rejected for more clarification, i have tried with below line of syntax as i have spaces in the list name - Clinical Audit Proposal Form.

 

{Common:WebUrl}//Lists/{Common:ListName}/Item/editifs.aspx?ID={ItemProperty:ID}

{Common:WebUrl}//Lists/fn-replace({Common:ListName}," ","%20")/Item/editifs.aspx?ID={ItemProperty:ID}

both did not work for me, please suggest me.

0 Kudos
Reply
SimonMuntz
Nintex Employee
Nintex Employee

Re: How to create state machine workflow in nintex workflow

Jump to solution
When the Manager rejects the Task there is no update done to the Item.
The State Machine should change state to the Initiator and a task run and the initator emailed about the task.
If the State Machine is not changing State this would indicate an issue with the timer service in the environment.
0 Kudos
Reply