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

In a business rule, I'd like to pass Adaxes variables into a powershell script that I'll run. For example, pass %username% into the script so it can be used inside the script.

asked Sep 5 by P-Sysadmin (20 points)
0 votes
1 answer

The closest operation I figure is "modfying exchange properties" of a user but not sure how I can filter the conditions to match. It's possible I could ... ? Was also looking at adm-MsExchMailboxCalendarPermissions but havent played around with that yet.

asked May 17 by ZoomGhost (280 points)
0 votes
1 answer

Rule 1. we have a business rule which disables a user account after updating a user. It then does some other actions. Rule 2. we have a business rule which performs ... 2 then triggered immediately and the flow of control handed back to rule 1 to continue?

asked Apr 3 by i*windows (280 points)
3,549 questions
3,240 answers
8,232 comments
547,814 users