Rule always dynamic if "If BO IS NEW" is used

If you think that something doesn't work in Aware IM post your message here
Post Reply
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Rule always dynamic if "If BO IS NEW" is used

Post by Rennur »

If I have the 'IS NEW' in the rule when creating a new BO the system always treats it as dynamic.

It is executed dynamically even if 'Do not use rule during initialisation' is selected.

Cheers
aware_support
Posts: 7525
Joined: Sun Apr 24, 2005 12:36 am
Contact:

Post by aware_support »

Are you sure? I cannot see how this is possible.
Aware IM Support Team
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Post by Rennur »

Tried to create a sample BSV to demonstrate but I'm not getting the same thing as in my app.
Not sure what is causing this in my app.

My rule is for the system define a 'Project name' if its not defined when creating a new BO. Straightforward.

RULE:
If Jobsite IS NEW AND Jobsite.Name IS UNDEFINED Then Jobsite.Name=Jobsite.Suburb.Name+' - '+Jobsite.Address+' - '+Jobsite.LocationType

Non-Dynamic + Do not use during initialisation

LOG:
After a number of Checking Choice list & Initial value rules are executed, even though it is not dynamic, this rule is executed in the next step (Started re-calculating business object Jobsite)
  • Image
What can cause this RULE to execute even though it is not dynamic.
None of the attributes have 'Save Form when selection changes'
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Post by Rennur »

Support,

I have found what causes this rule (possibly others) to execute.

BSV sent.
aware_admin
Site Admin
Posts: 65
Joined: Sun Jan 02, 2005 4:36 am
Contact:

Post by aware_admin »

This is not a bug. There is one rule in your BSV that is dynamic. Once it executes, ALL rules of the object are evaluated and executed if necessary. So the dynamic rule triggers another rule to fire.
Rennur
Posts: 1191
Joined: Thu Mar 01, 2012 5:13 am
Location: Sydney, Australia

Post by Rennur »

Fair enough, thanks for the explanation
Post Reply