Exclude one business rule from execution

leech10
Tera Contributor

Hi

 

I have business rule Close Item which closes items after some time. During running update other business rules are fired. I want to disable one particular BR during execution of Close Item BR. Option setWorkflow(false) cannot be taken into account as it will block all BRs. I also dont want to disable BR on 'sys_script' table within code. Could you please advise me what can be done more to omit execution of the BR

 

Regards

Piotr

1 ACCEPTED SOLUTION

Zach Koch
Giga Sage
Giga Sage

The only way you could exclude one in particular BR in certain circumstances would be to either, build conditions in the BR to prevent it from running under the specified condition, or to script a condition, or do something in the script to decide whether to allow it or use current.setAbortAction(true)

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

View solution in original post

2 REPLIES 2

Zach Koch
Giga Sage
Giga Sage

The only way you could exclude one in particular BR in certain circumstances would be to either, build conditions in the BR to prevent it from running under the specified condition, or to script a condition, or do something in the script to decide whether to allow it or use current.setAbortAction(true)

If this information helped resolve your issue, please remember to mark response correct and thumbs up to help future community members on this information, thanks!

Gaspy
Tera Contributor

Are you running code to close out the items via the advance scripting field? If so, what does your code look like?