Order of execution of business rules, ui policy, ui action and script action

amaneet
Kilo Contributor

Hi Folks,

May i know which gets order business rules, ui policy, ui action and script action run? wiki does not mention about ui action,ui policy and script action

Thanks

12 REPLIES 12

Exactly what i was looking for.



Thanks



On Sun, 2 Jul 2017 at 5:45 AM, sachin.namjoshi <


kemmy1
Tera Guru

So I have a server side UI Action that's setting the state of my Change Request.  I have a Business rule that checks for certain fields to be filled out before it can be changed, but the UI Action blows right past my Business Rule.  Actually my Business Rule then runs after the state it changed (from the UI Action).  Why is that?

Here's a little more detail:

I have a simple UI Action that is a form button that closes a change record:

moveToClosedUnAuth();
function moveToClosedUnAuth(){
current.state = 3;
current.update(); 
action.setRedirectURL(current); / 
}

I have a before Business Rule that checks some things and if they don't check out, gives an error and sets the state back to the previous state:

gs.addErrorMessage('This is a message);
current.state = previous.state;

The problem is the UI Action closes the change (sets the state to "3") and THEN my business rule seems to kick off and give the user and error (that's too late).

Why isn't the business rule kicking off at the time of the UI Action update an sending it to the previous state?

Lisa

Hi Lisa, 

Have you had any luck with this order? I also ran into the same issue. Have a UI action client side script which changes the state value and have a Before business rule to validate the state when it's set by the UI action but for some reason my BR is not getting fired.

Naresh1
Kilo Explorer

Please shre the this Question Information .

1)Order Of Execution Bussiness Rules..

2)What Is The Diff B/W GetRefference and g_scratchPad 

3)diff b/w Assncronous and After Business Rules

4)What is the Approval Cordinator

5)Rollback in Workflow?

Please Send Real time Scenarios Examples......