<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Process model getting launched itself</title><link>https://community.appian.com/discussions/f/process/11800/process-model-getting-launched-itself</link><description>Hello, 
 I&amp;#39;m recently facing an issue where process model is getting launched automatically whenever I click on button. The overall scenario is something like I have an interface form where there is a link as well as button for different purpose. When</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52359?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 12:22:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3819f75f-06a0-4f21-b7c1-ddc3ea819b52</guid><dc:creator>viveku3486</dc:creator><description>Hey Abhay,&lt;br /&gt;
&lt;br /&gt;
Below is the code i&amp;#39;m using on link&lt;br /&gt;
&lt;br /&gt;
          links: a!forEach(&lt;br /&gt;
            items:index(local!datasubset.data,&amp;quot;TextBetweenTags&amp;quot;,{}),&lt;br /&gt;
            expression: a!startProcessLink(&lt;br /&gt;
              label:fv!item,&lt;br /&gt;
              processModel:cons!WebJobLaunchConst,&lt;br /&gt;
              processParameters:{&lt;br /&gt;
                KeyProcessStream_int:cast(3,index(local!KeyProcessStream_int,fv!index,null)),&lt;br /&gt;
                definitionalData_cdt:ri!definitionalData_cdt,&lt;br /&gt;
                defDataHelper_cdt:ri!defDataHelper_cdt,&lt;br /&gt;
                VD_Datasubset:apply(rule!KeyValueProcessStream(&lt;br /&gt;
                  dataValue:_&lt;br /&gt;
                ),&lt;br /&gt;
                rule!splitArray(&lt;br /&gt;
                  splitArray:index(local!splitArray,fv!index,{})&lt;br /&gt;
                )&lt;br /&gt;
                )&lt;br /&gt;
              }&lt;br /&gt;
            )&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52358?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 12:15:24 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3953b9c1-c445-4e3d-90ba-8908af31a9ea</guid><dc:creator>Abhay Giri</dc:creator><description>Hi vivek,&lt;br /&gt;
if possible please share the code.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52353?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 11:10:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b87f490f-959e-4e6f-965f-4cc61c6aecda</guid><dc:creator>viveku3486</dc:creator><description>I&amp;#39;m already using terminate event. After closing that form which is opening after clicking on the link, Its process model is also getting terminated but if we click any other action items it starts again.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52352?ContentTypeID=1</link><pubDate>Wed, 07 Feb 2018 09:46:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e4b19552-6523-4ec2-9302-39b05630972b</guid><dc:creator>Jasmin</dc:creator><description>HI Vivek,&lt;br /&gt;
&lt;br /&gt;
Which event you have used to end you process, is it terminate or End event , try using terminate event or could you please share your code.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52268?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 08:39:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e8ba2720-91d9-4448-bc3c-68f9e8f1f9af</guid><dc:creator>viveku3486</dc:creator><description>Hello Thoufiq and Harsha, Thanks for your reply but as I said button is totally different with link. When I say different, It means that logic for both button and link is written under separate rule. Also, there is no common variable used between these two. Now lets assume if there is any common functionality exist between button and link then why the form is only getting launched after clicking link? I mean when I click link a form is getting opened(Which is expected behavior) and at the same time after closing that opened form if I click a button the same form again gets opened but if I didn&amp;#39;t click the link in that case no form is getting opened after clicking on button. So my question is if anything is common between button and link then the form should be opened everytime when I click on button right?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52267?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 08:26:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:899bdad3-baa1-455e-9613-c2c2d77bba6c</guid><dc:creator>Harsha Sharma</dc:creator><description>Are you using the same variable to store button as well as link action? It seems the value stored in the variable when link is clicked is the same when button is clicked. Please check the same.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52266?ContentTypeID=1</link><pubDate>Mon, 05 Feb 2018 08:18:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:983d3b7b-dcb5-4934-a14b-72b2261d89ef</guid><dc:creator>mohamedt808</dc:creator><description>Hi Vivek, &lt;br /&gt;
&lt;br /&gt;
Can you share the code , Also check if you have any start process function used in save into section of button.&lt;br /&gt;
&lt;br /&gt;
Regards,&lt;br /&gt;
Thoufiq.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52151?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 08:43:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:506e6aa2-ea5c-4bf9-97ac-5611709dac59</guid><dc:creator>viveku3486</dc:creator><description>Hi Jasmin,&lt;br /&gt;
&lt;br /&gt;
Inside Link I&amp;#39;m using a!startProcessLink() function to execute the process model. One another thing I checked yesterday and found that its not just the one button, Its any button when we click opens the previous form which was opened by the link&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52147?ContentTypeID=1</link><pubDate>Thu, 01 Feb 2018 07:19:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:37a3b305-e74a-4427-ba62-83cbd12f1931</guid><dc:creator>Jasmin</dc:creator><description> have you checked ,what logic you have added on link click or you are not resetting the value which is required to open different form .&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Process model getting launched itself</title><link>https://community.appian.com/thread/52124?ContentTypeID=1</link><pubDate>Wed, 31 Jan 2018 16:51:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ffa187d7-eede-45bb-b023-8e2569849a61</guid><dc:creator>rajats246</dc:creator><description>can you just share the code for both link and button ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>