0 votes

Hello *,

we are struggling with a behavior with action groups in business rules.

For example:

So my questions are:
1. In what order will the groups be executed? Really the order I'm choosing with the "up/down" buttons?
2. What if I place more than on group with "If the operations succeeds"?
3. What if I change some field in the first group and use that in the secons group? Variables are replaced on triggering completey for the rule, aren't they?

Thanks in advance for your help!

by (200 points)

1 Answer

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

Hello,

In what order will the groups be executed? Really the order I'm choosing with the "up/down" buttons?

Yes, that is correct.

What if I place more than on group with "If the operations succeeds"?

You can have as many action sets in a Business Rule, Custom Command or Scheduled Task as you need. For Business Rules triggering after an operation (e.g. After creating a user) it is recommended to keep the If operation succeeded condition to avoid triggering the rule if the operation fails or gets suspended.

What if I change some field in the first group and use that in the secons group? Variables are replaced on triggering completey for the rule, aren't they?

If you update a specific property value in one action set and then try to use it in another set, the second set will get the old value of the property. To get the new value in the second action set, you can use PowerShell scripts.

Related questions

0 votes
1 answer

I have created a Business Rule (call it BR1) that occurs After adding or removing a member from a group . For testing purposes, it currently runs a PowerShell script ... the Business Rule I created. Is this expected behavior? Or am I doing something wrong?

asked Apr 12, 2023 by alex.vanderwoude (60 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.5k points)
0 votes
1 answer

Hi team, I need to update users extensionAttribute6 after adding or removing them from a specific group. This is my setup: Group is updated based on rule set within Adaxes ... would like to update users after they were added or removed from this group. Thanks!

asked Sep 25, 2023 by wintec01 (1.5k points)
0 votes
1 answer

Hello, I am attempting to configure a business rule that adjusts an adaxes custom property of a user, upon that user being added/removed from a group. I cannot seem to ... (like username, office, description, email, etc.) but not so much on custom attributes.

asked Jul 14, 2023 by NKB#2772 (70 points)
0 votes
1 answer

I need a way of triggering a business rule based on the user (and not the group) being added or removed from a group. The reason I would like this triggered on the user is so ... prefer not to do that. I am checking to see if there is another way to do this.

asked May 16, 2023 by mark.it.admin (2.3k points)
3,552 questions
3,242 answers
8,243 comments
547,828 users