Status approvals changes with workflow

gabriel_terra
Kilo Expert

Hi all,

I have a problem where a User approves a change. When requested other approval, the first returns to be requested again.

I will explain the process of approval:

I have the first phase of approval, where I have 3 users that must approves before proceeding to the next step of the workflow. (all 3 must approve before proceeding)

Screen Shot 2015-03-09 at 18.50.35.png

Screen Shot 2015-03-09 at 21.55.49.png

Screen Shot 2015-03-09 at 21.57.05.png

After the approval of three users, the status changes and goes to a second approval of the CAB manager. After manager approval follows the flow and creates jobs and changes the status as necessary.

But my problem is when the flow arrives at the manager's approval (second approval), instead of creating just another approval to the manager, the status of the first phase approvals returns to status requested.

Screen Shot 2015-03-09 at 22.09.36.png

After Rodrigo approve, should be created one more approval (manager), but in addition to create a new approval, but in addition to create a new approval, the records of previous approvals come back to status "Requested"

Screen Shot 2015-03-09 at 22.10.01.png

Think there should be just one more approval as required (manager approval).

Someone with same problem?

I can be doing something wrong?

Thanks,

Gabriel

1 ACCEPTED SOLUTION

gabriel_terra
Kilo Expert

Hi Michael and Kalaiarasan,



Sorry for respond too late.



I resolved it.




Kalaiarasan,




I did it.



When pass for the First Approval, workflow executes a script "Status - CAB", where has the code:


"current.approval = 'approve' ", so when workflow goes to the Second approval there a business rule on sys_approvals reset the all approvals.



So I removed the code "current.approval = 'approve' " after the First Approval and works.



Michael,


I try use the Approval Coordinator, but not on second approval. I will try putting as you said.



Thanks you both.


View solution in original post

3 REPLIES 3

Michael Fry1
Kilo Patron

Did you try putting your two Approval - Users in an Approval Coordinator? Let the AC control the approvals.


Kalaiarasan Pus
Giga Sage

I don't see any reason why the already approved approvals are changing back to 'Requested'.. I would suggest you to debug the business rules and you would be able to find something,,,


gabriel_terra
Kilo Expert

Hi Michael and Kalaiarasan,



Sorry for respond too late.



I resolved it.




Kalaiarasan,




I did it.



When pass for the First Approval, workflow executes a script "Status - CAB", where has the code:


"current.approval = 'approve' ", so when workflow goes to the Second approval there a business rule on sys_approvals reset the all approvals.



So I removed the code "current.approval = 'approve' " after the First Approval and works.



Michael,


I try use the Approval Coordinator, but not on second approval. I will try putting as you said.



Thanks you both.