Stop a Business Rule from executing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 07:21 AM
Hi,
I have a setup where i am receiving REST request from 3rd party, i have used scripted REST API, and in response to incoming request i create/update a Demand ticket. So far so good. For send back updates i have created an update BR and using REST Message to send the updates back to 3rd party.
The problem is when the 3rd party sends an update request the BR is also triggered which should only be triggering when the updates are made in my instance. I have tried using
gr.setWorkFlow(false);
in the script to update the ticket from 3rd party, but that stops the additional comments and all the journal input fields to be updated, because i guess the journal fields are populated using a BR too. So my question is how can i make the BR to fire only when the update is made directly from the form NOT from the scripted REST API script?
Any help in this regards is appreciated. Kindly let me know if you need any additional information.
Regards,
JS
- Labels:
-
Integrations
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 01:56 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 02:06 PM
John, that is a server side java class. What exactly are you trying to accomplish? I am not sure I follow your question.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-16-2017 09:55 PM
Is there an onComplete method of this java class? I am trying to insert data in the staging table (that extends Import Set Row) and then runing the transform map. I want to get the response of the transform map run. I that possible using GlideImportSetTransformerWorker class?
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 06:35 AM
John, I honestly don't know. I found this code on the community in the past and have leveraged it for several solutions. The class does have "setBackground" and in your snippet it is flagged as true so maybe try not setting that to see if it will work for you. You may also try creating a new post on the community specific to this question and maybe others know.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-17-2017 11:23 AM
will do so, thanks for your time
Regards