Might be silly question but someone can explain how to use BPM condition OR AND correctly?
So the point is if Inactive field has changed from true to false and method is not called by user 1 or 2 or 3 in my opinion this should sound like this if field changed to False AND(not called by 1 OR not called by 2 OR not called by 3) so I did like this but it does not work:
It’s the “Not” that is messing you up. Not called is almost always true, and if you NOT called by and and Not called by B that will always pass with or
Called A
not called by A = false
not called by B = true
Called B
not called by A = true
not called by B = false
if you use OR, that ends up being true. It will always be true, since it’s always called by 1 thing, so it’s always NOT called by something
if you use AND that ends up being false. (both would have to be true.)
And you can simplify this by using Security Groups and use the name of the group instead of individuals. So much easier to maintain. The test allows you to check for group membership.
Works like any other AND/OR in coding nothing special. And if you are trying to block those 3 from activating vendors then your second current example is what you want. Otherwise if the “An” person calls the method, that will be FALSE, but your other 2 conditions will be TRUE. True wins.
Also you really should create a group of people that can activate users and check to see if individuals are in that group. Avoid trying to do explicit exclusions per person always implicit exclusion with explicit allow when possible.