# Skip some nodes execution

**URL:** <https://forum.flowable.org/t/skip-some-nodes-execution/1557>\
**Category:** Flowable Engine\
**Created:** [January 31, 2018, 6:34am UTC](https://forum.flowable.org/t/skip-some-nodes-execution/1557 "2018-01-31T06:34:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ganil.89](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/ganil.89/32/520_2.png) [@ganil.89](https://forum.flowable.org/u/ganil.89)\
**Post date:** [January 31, 2018, 6:34am UTC](https://forum.flowable.org/t/skip-some-nodes-execution/1557/1 "2018-01-31T06:34:51Z")

</div>

While journey is at a particular node, skip some of the succeeding nodes in the flow and directly jump the flow of execution to another node

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [January 31, 2018, 7:08pm UTC](https://forum.flowable.org/t/skip-some-nodes-execution/1557/2 "2018-01-31T19:08:43Z")

</div>

This is possible by using a ‘skip expression’, see an example here:

- [https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine/src/test/java/org/flowable/examples/bpmn/usertask/SkipExpressionUserTaskTest.java](https://github.com/flowable/flowable-engine/blob/master/modules/flowable-engine/src/test/java/org/flowable/examples/bpmn/usertask/SkipExpressionUserTaskTest.java)

Which can be set using skipExpression="${execution.getVariable(‘someVariable’)}" on for example a user task.

---

<div class="post-metadata">

**Author:** ![Param](https://avatars.discourse-cdn.com/v4/letter/p/bb73d2/32.png) [@Param](https://forum.flowable.org/u/Param)\
**Post date:** [October 11, 2019, 1:29am UTC](https://forum.flowable.org/t/skip-some-nodes-execution/1557/3 "2019-10-11T01:29:50Z")

</div>

Hello joram, i am trying to set the skip expression in flowable modeler ui.  
My scenario, i have a variable “MODE” which has some value. Now when i reach the particular service task, i would like to check this variable “MODE” and see if it is equating to a some string, i.e in the skip expression attribute of the service task i would give the expression as:  
${MODE == “simulation”}  
Additionally, according to the documentation, i have also set the process variable  
\_ACTIVITI\_SKIP\_EXPRESSION\_ENABLED to boolean value “true”.  
How-ever, i tried executing the process, but the service task gets executed as before without a skip expression, where-as with this definition of skip expression defined in the flowable modeler ui for a service task, i would have expected the service task to be skipped.

Could you kindly let me know where am i going wrong here ? (answer preferably from flowable modeler ui perspecive please).

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [October 15, 2019, 8:03am UTC](https://forum.flowable.org/t/skip-some-nodes-execution/1557/4 "2019-10-15T08:03:10Z")

</div>

What kind of service task are you using? A default one or one with a class/expression/something else?

---

<div class="post-metadata">

**Author:** ![JimMoriarty](https://avatars.discourse-cdn.com/v4/letter/j/9dc877/32.png) [@JimMoriarty](https://forum.flowable.org/u/JimMoriarty)\
**Post date:** [October 13, 2022, 5:44am UTC](https://forum.flowable.org/t/skip-some-nodes-execution/1557/5 "2022-10-13T05:44:40Z")

</div>

@joram , I have the same problem. I set execution.setVariable(“\_FLOWABLE\_SKIP\_EXPRESSION\_ENABLED”, true); and the serviceTask is not getting skipped even if I write flowable:skipExpression=“${1==1}”. Did I do something wrong ?
