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 (215k 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

Let's say I have a Business Rule that is fired prior to adding members to a group. Is it possible to get the number of objects being added to that group as ... that tells me that 6 objects will be added or is each added user treated completely independently?

asked Apr 20 by ngb (90 points)
0 votes
1 answer

Hi Adaxes Team I have created a business rule which sends a mail to our helpdesk staff after a user sets a new pw with the self password reset function. The user should ... . If this is not possible yet, please forward it as a suggestion :) regards pudong

asked Feb 4 by pudong (410 points)
0 votes
1 answer

Every time when I try to save a change for a business rule in Adaxes Console, I got the error "An error occurred while saving the custom command. Requested Service not found" I close and open the console again but doesn't help.

asked Aug 9, 2021 by kfung00 (20 points)
2,740 questions
2,474 answers
6,475 comments
1,366,967 users