0 votes

Hi

In which sequence are Business Rules executed, when an object is covered by more than one Business Rule Scope ?
I have done some tests, which indikated a top-down approach - but it could be a coincidence, or ?

Example:

- MyOU
-- MySubOU
--- MySecurityGroupX

Group Business Rule 1 scope = MyOU (sub-tree level).
Group Business Rule 2 scope = MySubOU (sub-tree level).
Group Business Rule 3 scope = MySecurityGroupX (The group object or Members of the group).

Expected sequence = Business Rule 1 (then) Business Rule 2 (then) Business Rule 3

- Thanks and Merry Christmas

by (2.6k points)

1 Answer

0 votes
by (216k points)
selected by
Best answer

Hello,

Execution order can be specified only for Business Rules configured for the same triggering operation (e.g. After Creating a User). To change the order:

  1. Launch Adaxes Administration Console.
  2. In the Console Tree, expand your service node.
  3. Navigate to Configuration\Business Rules.
  4. Right-click a Business Rule configured for the triggering operation you need.
  5. In the context menu, navigate to All Tasks and click Change Execution Order.
  6. Update the order the way you need and click OK.
0

Hi

Thanks, but it's not the Business Rule executing order it-self I was asking about, but the affected scopes.

Example:

I have 3 Business Rules, all (After adding a member to the group), but each rule covers different scopes within the same hierarchy:

- MyOU
-- MySubOU
--- MySecurityGroupX

- Business Rule 1 will fire when the target group is placed in MyOU or below.
- Business Rule 2 will fire when the target group is placed in MySubOU or below.
- Business Rule 3 will fire on MySecurityGroupX (if targeted).

I just need to be confirmed, when a member is added to MySecurityGroupX, Adaxes will always fire the Business Rules in a Top-Down order (1 > 2 > 3) and not in a randomly order:

1 - Business Rule 1 will fire because MySecurityGroupX is a part of the scope.
2 - Business Rule 2 will fire because MySecurityGroupX is a part of the scope.
3 - Business Rule 2 will fire because MySecurityGroupX it is the scope.

- Thanks

0

Hello,

Execution order of Business Rules is not related to the hierarchy of the objects the rules are effective for. Starting with Adaxes 2018.1, the execution order of the Business Rules configured for the same triggering operation is defined as described in the previous post.
In your case, when a member is added to group MySecurityGroupX, the Business Rules will be executed in the order defined by the Execution Order for Business Rules triggering After Adding a member to a group. If the order is like in the screenshot below, the Business Rules will run in the following order:
Business Rule 1;
Business Rule 2;
Business Rule 3.

If a member is added to another group located in MySubOU or its child OUs, there will run Business Rule 1 and then Business Rule 2 will be executed.

Related questions

0 votes
1 answer

I would like to add the following logic into a Powershell script that will be triggered on 'After Create User'. Read the value of the 'title' property of the user just created ... 'True' or 'False'. Could you assist with how to script this please? Many thanks.

asked May 1, 2020 by Bernie (310 points)
0 votes
1 answer

How can I execute a Business Rule through PowerShell? I have a Business Rule that fires when a User is created. I have a custom field on the User that can be updated though ... based on the value in this custom field, when the User is updated. Is it possible?

asked Feb 10, 2014 by sdavidson (730 points)
0 votes
1 answer

Hi team, I have a follow up to this question https://www.adaxes.com/questions/14234/business-after-adding-members-powershell-script-executed Let me explain my setup A rule- ... area% failed due to the following exception: $($_.Exception.Message)", "Error") }

asked Feb 13 by wintec01 (1.1k points)
0 votes
1 answer

Hi, I have a business rule setup to perform actions after user creation. First action is to run a powershell script which works and it sets a required AD attribute ( ... new user sits in the original OU and does not move Am i missing something here?

asked Feb 6 by Lewis (40 points)
0 votes
1 answer

Hi, I need to retreive a secret from a Azure Keyvault in a business rule. I have a powershell script that works if i run a external command. But it fails if ... at <ScriptBlock>, <No file>: line 20 Any sugestion? Kind regards Reidar Dick-Henriksen

asked Dec 6, 2023 by reidardh (20 points)
3,326 questions
3,026 answers
7,727 comments
544,678 users