<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Can we invoke Exit element programmatically?</title><link>https://answers.axonivy.com/questions/2553/can-we-invoke-exit-element-programmatically</link><description>&lt;p&gt;hi all&lt;/p&gt;
&lt;p&gt;I have html dialog and an event as below:
&lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/Untitled_8UWSnHt.png"&gt;
It look quite simple because normally we don't put much code on ivy script, we handle most of them on java class (able to test, less confliction) 
But because of our business we need to reach Process End or Exit element by some conditions in order to continue workflow. Somehow in java class i need to produce this condition value and return it back to ivy data class in order to use on Alternative element. &lt;/p&gt;
&lt;p&gt;So my question is can we call process End or Exit element in java? or maybe just Exit element or should we do that?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2553/can-we-invoke-exit-element-programmatically" rel="self"></atom:link><language>en</language><lastBuildDate>Thu, 30 Mar 2017 16:51:18 -0400</lastBuildDate><item><title>Answer by Alex Suter</title><link>https://answers.axonivy.com/questions/2553/can-we-invoke-exit-element-programmatically/2555</link><description>&lt;p&gt;We do not provide any API to call &lt;em&gt;Process End&lt;/em&gt; or &lt;em&gt;Exit End&lt;/em&gt; programmatically.&lt;/p&gt;
&lt;p&gt;What's in your point of view wrong with the &lt;em&gt;Alternative Element&lt;/em&gt;? Personally, I think you should see the &lt;em&gt;flow of the process&lt;/em&gt; in a BPM diagramm. Your approach would hide such important information.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Alex Suter</dc:creator><pubDate>Thu, 30 Mar 2017 16:51:18 -0400</pubDate><guid>https://answers.axonivy.com/questions/2553/can-we-invoke-exit-element-programmatically/2555</guid></item></channel></rss>