<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to stop flow designer from business rule in ITSM forum</title>
    <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869792#M441571</link>
    <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="19525629dbd81fc09c9ffb651f961989"&gt;@Ankur Bawiskar&lt;/SN-MENTION&gt;&amp;nbsp;I guess we need to go each flow designer and change the condition as when sctask is closed incomplete update the req as closed incomplete.&lt;/P&gt;</description>
    <pubDate>Tue, 06 Jul 2021 07:30:42 GMT</pubDate>
    <dc:creator>Community Alums</dc:creator>
    <dc:date>2021-07-06T07:30:42Z</dc:date>
    <item>
      <title>How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869782#M441561</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I want to stop flow designer from the Business rule. We have a requirement to copy the state of SCTASK on the RITM. In some catalog items there are more than 1 SCTASKs. I write the below business rule on after , state changes to closed incomplete or state changes to closed skipped&lt;/P&gt;
&lt;P&gt;var gr = new GlideRecord('sc_req_item');&lt;BR /&gt; gr.get(current.request_item);&lt;BR /&gt; //gr.addQuery('sys_id', current.parent);&lt;BR /&gt; gr.state = current.state;&lt;BR /&gt; gr.stage = 'Request Cancelled';&lt;BR /&gt; //gr.setWorkflow(false);&lt;BR /&gt;gr.update();&lt;/P&gt;
&lt;P&gt;But because of OOTB br(cancel flow on request cancelled) all the sctasks are changing to closed Incomplete.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please help in this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks!!&lt;/P&gt;
&lt;P&gt;Saloni&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:28:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869782#M441561</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2021-07-06T05:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869783#M441562</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;why not update the flow condition?&lt;/P&gt;
&lt;P&gt;is flow not stopping from triggering when you use setWorkflow(false)&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:37:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869783#M441562</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-07-06T05:37:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869784#M441563</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you can use this script to cancel the flow which started&lt;/P&gt;
&lt;PRE class="language-javascript"&gt;&lt;CODE&gt;var flow = new GlideRecord("sys_flow_context");
flow.addQuery('name', 'Your Flow Name');
flow.addQuery('source_record', current.getUniqueValue());
flow.query();

if (flow.next()) {

	//get your flow's context
	var gpa = new sn_ph.GlideProcessAutomation(flow.getValue('sys_id'));

	//if the flow isn't terminated (see UI Action condition)
	if (!gpa.isTerminated()) {
		//cancel the flow and provide the reason
		gpa.cancel('Cancelling this flow');
	}
}&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:39:58 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869784#M441563</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-07-06T05:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869785#M441564</link>
      <description>&lt;P&gt;No &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="19525629dbd81fc09c9ffb651f961989"&gt;@Ankur Bawiskar&lt;/SN-MENTION&gt;&amp;nbsp;setWorkflow(false) is not working.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:45:10 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869785#M441564</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2021-07-06T05:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869786#M441565</link>
      <description>&lt;P&gt;Thank you but this is for specific flow. I want for all flow designer.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 05:45:55 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869786#M441565</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2021-07-06T05:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869787#M441566</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;what do you mean by all flow?&lt;/P&gt;
&lt;P&gt;your OOB or defined flows will run based on flow trigger condition&lt;/P&gt;
&lt;P&gt;when RITM is updated not all flows in instance will run right&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 06:36:52 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869787#M441566</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-07-06T06:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869788#M441567</link>
      <description>&lt;P&gt;When STASK is incomplete and skipped RITM state will skipped or incomplete. But in my case all if there are 2 sctasks created one after one, if im changing sctsk state to closed complete and other as closed incomplete then the previous sctask is also changed to closed incomplete&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 06:55:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869788#M441567</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2021-07-06T06:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869789#M441568</link>
      <description>&lt;P&gt;the update is triggering this &lt;SPAN class="ng-scope"&gt;OOTB br(cancel flow on request cancelled)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Then setWorkflow(false) should stop this BR from executing with RITM gets updated&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:07:01 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869789#M441568</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-07-06T07:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869790#M441569</link>
      <description>&lt;P&gt;setWorkflow(false) is not working. I am not sure what to do.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:16:40 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869790#M441569</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2021-07-06T07:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869791#M441570</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;setWorkflow(false) should stop the BRs from executing&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:26:53 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869791#M441570</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-07-06T07:26:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869792#M441571</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="19525629dbd81fc09c9ffb651f961989"&gt;@Ankur Bawiskar&lt;/SN-MENTION&gt;&amp;nbsp;I guess we need to go each flow designer and change the condition as when sctask is closed incomplete update the req as closed incomplete.&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:30:42 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869792#M441571</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2021-07-06T07:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869793#M441572</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="60038f541be594107a5933f2cd4bcbe8"&gt;@Saloni&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can either update the flow trigger condition&lt;/P&gt;
&lt;P&gt;OR&lt;/P&gt;
&lt;P&gt;Let the flow trigger the context; you cancel it with the script I shared above.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:35:02 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869793#M441572</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-07-06T07:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869794#M441573</link>
      <description>&lt;P&gt;Yes &lt;SN-MENTION class="sn-mention" table="live_profile" sysid="19525629dbd81fc09c9ffb651f961989"&gt;@Ankur Bawiskar&lt;/SN-MENTION&gt;&amp;nbsp;I will try that script&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:48:06 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869794#M441573</guid>
      <dc:creator>Community Alums</dc:creator>
      <dc:date>2021-07-06T07:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869795#M441574</link>
      <description>&lt;P&gt;&lt;SN-MENTION class="sn-mention" table="live_profile" sysid="60038f541be594107a5933f2cd4bcbe8"&gt;@Saloni&lt;/SN-MENTION&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know if I have answered your question.&lt;BR /&gt;&lt;BR /&gt;If so, please mark appropriate response as correct &amp;amp; helpful so that this thread can be closed and others can be benefited by this.&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Ankur&lt;/P&gt;</description>
      <pubDate>Tue, 06 Jul 2021 07:59:39 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/869795#M441574</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2021-07-06T07:59:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/2439052#M483207</link>
      <description>&lt;P&gt;Hi Ankur,&lt;/P&gt;&lt;P&gt;I have similar kind of requirement. Need to create business rule to close RITM and REQ when the first task in RITM is closed rejected. Please assist.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 16:47:35 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/2439052#M483207</guid>
      <dc:creator>sath</dc:creator>
      <dc:date>2023-01-10T16:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop flow designer from business rule</title>
      <link>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/2476454#M486497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A id="link_25" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://www.servicenow.com/community/user/viewprofilepage/user-id/265966" target="_self" aria-label="View Profile of Ankur Bawiskar"&gt;&lt;SPAN class="login-bold"&gt;Ankur Bawiskar&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do we have any method to stop flow execution via the GlideRecord update?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2023 17:31:25 GMT</pubDate>
      <guid>https://www.servicenow.com/community/itsm-forum/how-to-stop-flow-designer-from-business-rule/m-p/2476454#M486497</guid>
      <dc:creator>Rama Krishna G</dc:creator>
      <dc:date>2023-02-13T17:31:25Z</dc:date>
    </item>
  </channel>
</rss>

