<?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 Is it possible to override State Model transitions through a script (e.g., BR or FS) in Product Launch forum</title>
    <link>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512333#M5807</link>
    <description>&lt;P&gt;We are currently using a State Model to control state transitions on the Problem table.&lt;/P&gt;&lt;P&gt;However, we have a requirement where we are updating the State&amp;nbsp;using a Fix Script / Business Rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to the configured State Model, the update is being restricted and the record is not moving to the intended state.&lt;/P&gt;&lt;P&gt;So, I want to understand:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it possible to bypass or override State Model restrictions through scripting?&lt;/LI&gt;&lt;LI&gt;If yes, what is the recommended approach to achieve this?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;setWorkFlow(false) - This is not working,&lt;/P&gt;&lt;P&gt;Any guidance or best practices would be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 22 Mar 2026 15:18:30 GMT</pubDate>
    <dc:creator>Sathwik1</dc:creator>
    <dc:date>2026-03-22T15:18:30Z</dc:date>
    <item>
      <title>Is it possible to override State Model transitions through a script (e.g., BR or FS)</title>
      <link>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512333#M5807</link>
      <description>&lt;P&gt;We are currently using a State Model to control state transitions on the Problem table.&lt;/P&gt;&lt;P&gt;However, we have a requirement where we are updating the State&amp;nbsp;using a Fix Script / Business Rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Due to the configured State Model, the update is being restricted and the record is not moving to the intended state.&lt;/P&gt;&lt;P&gt;So, I want to understand:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is it possible to bypass or override State Model restrictions through scripting?&lt;/LI&gt;&lt;LI&gt;If yes, what is the recommended approach to achieve this?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;setWorkFlow(false) - This is not working,&lt;/P&gt;&lt;P&gt;Any guidance or best practices would be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2026 15:18:30 GMT</pubDate>
      <guid>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512333#M5807</guid>
      <dc:creator>Sathwik1</dc:creator>
      <dc:date>2026-03-22T15:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override State Model transitions through a script (e.g., BR or FS)</title>
      <link>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512335#M5808</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2026 15:22:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512335#M5808</guid>
      <dc:creator>Sathwik1</dc:creator>
      <dc:date>2026-03-22T15:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override State Model transitions through a script (e.g., BR or FS)</title>
      <link>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512339#M5809</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/168144"&gt;@Sathwik1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try adding :&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;gr.setUseEngines(false);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as per my understanding when updating a record via GlideRecord, you can use this to bypass data policies, and in some contexts, it can allow bypassing state validation by skipping the business rules that enforce the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if this is a one-time data fix, use StateModel.forceUpdate().&lt;/P&gt;&lt;P&gt;If this is a recurring requirement (an integration updating the problem), you should actually update the State Model to allow that transition, but add a condition so it only triggers when the user is "System Administrator".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Also have a look on this :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0861927#:~:text=Issue,Scheduled%22%20State%20in%20one%20transaction." target="_self"&gt;https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0861927#:~:text=Issue,Scheduled%22%20State%20in%20one%20transaction.&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;If my response helped mark as helpful and accept the solution.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2026 15:49:50 GMT</pubDate>
      <guid>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512339#M5809</guid>
      <dc:creator>yashkamde</dc:creator>
      <dc:date>2026-03-22T15:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override State Model transitions through a script (e.g., BR or FS)</title>
      <link>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512344#M5810</link>
      <description>&lt;P&gt;&lt;FONT size="4"&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/168144"&gt;@Sathwik1&lt;/a&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Refer&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;FONT size="4"&gt;&lt;SPAN class=""&gt;KB0759295&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp; :&lt;/SPAN&gt;&lt;A href="https://support.servicenow.com/kb?id=kb_article_view&amp;amp;sysparm_article=KB0759295#:~:text=Resolution,The%20world%20works%20with%20ServiceNow." target="_self"&gt;&lt;SPAN&gt;System enforces the state transition (through com.snc.state_model.StateTransitionValidator) and does not allow transition of state through Business Rule / Script if it does not validate against existing model.&lt;/SPAN&gt;&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="4"&gt;Issue&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="4"&gt;When the State Model and Transitions are enabled on a table ,System enforces the state transition (through com.snc.state_model.StateTransitionValidator) and does not allow transition of state through Business Rule / Script,&amp;nbsp; if it does not validate against existing model transition.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="4"&gt;Cause&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="4"&gt;This is an expected behavior as designed, The state transition will be enforced as configured for the table. System will not allow any invalid state transition on the record through the UI or script.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="4"&gt;Please review &amp;gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A title="Add a state model and transitions" href="https://docs.servicenow.com/csh?topicname=add-state-model.html&amp;amp;version=latest" target="_blank" rel="noopener noreferrer nofollow"&gt;Add a state model and transitions&lt;/A&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;H3&gt;&lt;FONT size="4"&gt;Resolution&lt;/FONT&gt;&lt;/H3&gt;&lt;P&gt;&lt;FONT size="4"&gt;If you want to allow the update on the state , through Business Rule / API Script, the following System property can be used to disable the "StateTransitionValidator" &amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="4"&gt;&lt;CODE&gt;com.glide.record.state.validation = false&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the property above is disabled system will not validate and allow transition to any state on the record that is done through the script / business rule.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 22 Mar 2026 16:03:34 GMT</pubDate>
      <guid>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512344#M5810</guid>
      <dc:creator>Tanushree Maiti</dc:creator>
      <dc:date>2026-03-22T16:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override State Model transitions through a script (e.g., BR or FS)</title>
      <link>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512430#M5813</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/287542"&gt;@Tanushree Maiti&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for your response.. I don't see the property to set it's value to FALSE, so should I create one property with that name and set it to false?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, data policies also can be excluded?&amp;nbsp; or to exclude data policy we have to use setWorkflow? or any other thing is there?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 02:01:05 GMT</pubDate>
      <guid>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512430#M5813</guid>
      <dc:creator>Sathwik1</dc:creator>
      <dc:date>2026-03-23T02:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to override State Model transitions through a script (e.g., BR or FS)</title>
      <link>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512441#M5814</link>
      <description>&lt;P&gt;&lt;a href="https://www.servicenow.com/community/user/viewprofilepage/user-id/168144"&gt;@Sathwik1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can override that but I won't recommend doing that.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 03:20:07 GMT</pubDate>
      <guid>https://www.servicenow.com/community/product-launch-forum/is-it-possible-to-override-state-model-transitions-through-a/m-p/3512441#M5814</guid>
      <dc:creator>Ankur Bawiskar</dc:creator>
      <dc:date>2026-03-23T03:20:07Z</dc:date>
    </item>
  </channel>
</rss>

