<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to skip remain processes on casemap after condition is failed</title><link>https://answers.axonivy.com/questions/3045/how-to-skip-remain-processes-on-casemap-after-condition-is-failed</link><description>&lt;p&gt;Hi ivy team&lt;/p&gt;
&lt;p&gt;I'm using ivy 7.0.1 and i have a example like this:
&lt;img alt="alt text" src="https://answers.axonivy.com/upfiles/yy_VS2sF4N.png"&gt;
As you see in &lt;em&gt;Chatting&lt;/em&gt; i have a condition that in user can get contact of girl, then that process can be triggered, otherwise it should be skipped.&lt;/p&gt;
&lt;p&gt;It's working fine as my expectation, but now the requirement expand, my customer want that not only &lt;em&gt;chatting&lt;/em&gt; but also all remaining processes should be skipped. but with current implementation,  &lt;em&gt;Datting&lt;/em&gt;, &lt;em&gt;Express love&lt;/em&gt; still run even &lt;em&gt;Chatting&lt;/em&gt; was skipped.&lt;/p&gt;
&lt;p&gt;If i want to archive that requirement, i need to put condition &lt;em&gt;is contact available&lt;/em&gt; for all remaining processes(after &lt;em&gt;chatting&lt;/em&gt;), For me this is not a good solution because if we have several similar conditions like this, we need to apply it for all remaining processes.&lt;/p&gt;
&lt;p&gt;My question is: Whether i can skip the remaining process by API? After &lt;em&gt;chatting&lt;/em&gt; is skipped, i want the process is end programmatically. &lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3045/how-to-skip-remain-processes-on-casemap-after-condition-is-failed" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 27 Dec 2017 01:51:24 -0500</lastBuildDate><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/3045/how-to-skip-remain-processes-on-casemap-after-condition-is-failed/3050</link><description>&lt;p&gt;Hello &lt;a href="https://answers.axonivy.com/users/118/trungdv"&gt;&lt;a href="https://answers.axonivy.com/users/118/trungdv"&gt;@trungdv&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you already have mentioned, you can solve this with &lt;strong&gt;Case Map Conditions&lt;/strong&gt;. There is another way to control the flow of the &lt;strong&gt;Case Map&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;We support jumping to another &lt;strong&gt;Stage&lt;/strong&gt; by API:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ch.ivyteam.ivy.workflow.businesscase.IBusinessCase.setStageId(String)
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Call this API in a script step at the end "Get notice &amp;amp; contact". You can directly jump to the &lt;strong&gt;Stage&lt;/strong&gt; "Be Boyfriend". &lt;/p&gt;
&lt;p&gt;In future versions of the &lt;strong&gt;Case Map&lt;/strong&gt; we want to introduce new flow control mechanisms. We are thinking about to jump directly to a certain process, to set (so called) &lt;strong&gt;Milestones&lt;/strong&gt; and query them in conditions.&lt;/p&gt;
&lt;p&gt;P. S. Good luck on the date.&lt;/p&gt;
&lt;p&gt;Alex&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Wed, 27 Dec 2017 01:51:24 -0500</pubDate><guid>https://answers.axonivy.com/questions/3045/how-to-skip-remain-processes-on-casemap-after-condition-is-failed/3050</guid></item></channel></rss>