Change- CAB Approval Workflow

sonita
Giga Guru

This is my requirement :

User Submits (Clicks the request button) —> CAB Group Approves -> Change is marked approved.

If Rejected -> Change marked rejected.

and this is the workflow.   but when the change is approved by CAB members , the state doesn't go to completed ! but in the workflow , I have set that up. Any ideas?

find_real_file.png

1 ACCEPTED SOLUTION

I used wait for condition activity in my workflow and it's working perfectly!!!!!!!!



find_real_file.png


View solution in original post

35 REPLIES 35

Actually I did ; I have changed the workflow to :



find_real_file.png


There is an OOB UI Action called request approval:


when we push the 'request approval' button, the approval changes to 'requested' which is good , but the state remains 'Open' ; actually the state should change to 'approval' --> I updated the UI Action , and added the following line to the code: current.state='8';   but when updating the form it shows invalid update. but it actually changes the state to approval!   But not sure why it says invalid update!! any ideas?



Pictures did not come through. Can you attach screenshot again. And as I told you earlier in my responses, there must be a business rule which is preventing it. Invalid Update means the same thing that there is a before business rule which is aborting the action. Search in the before business rules and script contains setAbortAction


You were right as always! I found that business rule!


My other problems are:


Once you save or submit the form , the state changes to Open and the process flow shows creation and planning   and approval is 'not yet requested ' which is good!



BUT , it also shows the CAB approval members in the approvers tab, even we haven't push the request approval button ; I believe the approvers should show when we push the button. this is my first problem



the other problem:



After CAB approval , although the workflow goes till the end   , the approval is still 'requested' and state is still approval!



find_real_file.png