<?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>when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/discussions/f/user-interface/24998/when-calling-a-startprocess-function-in-save-into-variables-declared-inside-the-save-into-are-not-updating</link><description>Hi Team, 
 I have a requirement to call a process model inside the button saveInto using a!startprocess function. But when i am using the function the variables declared inside the button saveInto are not updating. 
 Any Idea on how to fix this issue</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96793?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 12:44:55 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b7e8596-26c9-4af2-a68d-65b6665faab7</guid><dc:creator>krishnad50</dc:creator><description>&lt;p&gt;No. But the process is triggered and completed without any errors when i check the instances.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96792?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 12:40:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1ebe6a57-8a50-4940-beca-d3ae04bf9c0d</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Did you try to put the a!save following the a!startProcess() into the onSuccess parameter of a!startProces()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96791?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 12:36:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:9b9cecba-b38f-482b-af68-a3869b3d52da</guid><dc:creator>krishnad50</dc:creator><description>&lt;p&gt;Actually the a!save(ri!lockScreenDetails, type!SK_case()) is added in the expression rule(SK_UpdateCaseData). Actually the problem is not with the expression rule it is with the start process. I can remove the&amp;nbsp;SK_UpdateCaseData but the issue still exist with the code. I feel like since the process is making integration calls it might be the reason but not completely sure&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96790?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 12:23:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:1e9f4099-a5a1-4704-bd62-2de3ecf47160</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;The way you use this expression seems weird. I would expect something like:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;saveInto: {
ri!buttonAction,
a!save(
  target: ri!lockScreenDetails,
  value: rule!SK_UpdateCaseData(
    caseDataControls: ri!lockScreenDetails
  )
),
a!startProcess(
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96789?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 12:18:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c174f2ca-546f-4020-b457-45395f1e4e5f</guid><dc:creator>krishnad50</dc:creator><description>&lt;p&gt;It is updating the status, updatedBy, updatedDate and some other fields inside the CDT. Actually if i comment only the startprocess function and keep rest all other logic as it is the code works fine.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96788?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 11:20:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f7b63170-7f67-488f-9256-7dbba191f7f8</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;What is this&amp;nbsp;&lt;span&gt;SK_UpdateCaseData expression doing?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96787?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 09:35:52 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2a55850b-8996-476b-a573-da350299d552</guid><dc:creator>krishnad50</dc:creator><description>&lt;p&gt;If i comment the startprocess function inside the button saveInto then the value is updating to null as per the code.&lt;/p&gt;
&lt;p&gt;I am facing the issue whenever the a!startprocess function is added inside the button saveInto.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96786?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 09:32:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ef2cfedd-2878-4ba4-99ce-01321267b54a</guid><dc:creator>krishnad50</dc:creator><description>&lt;p&gt;Before clicking on the button the value is &amp;quot;NEXT&amp;quot; and it is still holding the same value &amp;quot;NEXT&amp;quot; after clicking on the button as well. The value is not updating to &amp;quot;SUBMIT&amp;quot; or null.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96785?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 09:14:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75637fb8-32a4-488b-839f-dd96c6ac9aa2</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Jepp ... you are overwriting the value.&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1656234840493v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Next time, please ...&lt;/p&gt;
&lt;p&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/13/pastedimage1656234911917v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96784?ContentTypeID=1</link><pubDate>Sun, 26 Jun 2022 08:12:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:26523f62-37f5-4ce7-8e3c-eadcda79177f</guid><dc:creator>krishnad50</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Please find the below sample code. Actually the issue is happening whenever is interface is called from top parent rule.&lt;/p&gt;
&lt;p&gt;Actually in the start process we are passing the document data to some external system.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But when the start process is using inside the button save Into then the button value&amp;nbsp;(ri!buttonAction) is not getting updated but whenever i try to test the same interface by commenting the start process function the button saveInto are updating properly&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please let me know if any other extra information is required&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a!buttonWidget(&lt;br /&gt; label: &amp;quot;SUBMIT&amp;quot;,&lt;br /&gt; value: &amp;quot;SUBMIT&amp;quot;,&lt;br /&gt; saveInto: {&lt;br /&gt; ri!buttonAction,&lt;br /&gt; rule!SK_UpdateCaseData(&lt;br /&gt; caseDataControls: ri!lockScreenDetails&lt;br /&gt; ),&lt;br /&gt; a!startProcess(&lt;br /&gt; processModel: cons!SK_PM_LOCK_SCREEN_DETAILS,&lt;br /&gt; processParameters: {&lt;br /&gt; lockScreenDetails: ri!lockScreenDetails,&lt;br /&gt; lockScreenId: ri!lockScreenId&lt;br /&gt; }&lt;br /&gt; ),&lt;br /&gt; a!save(&lt;br /&gt; target: {&lt;br /&gt; ri!buttonAction,&lt;br /&gt; ri!lockScreenDetails,&lt;br /&gt; ri!lockScreenId&lt;br /&gt; },&lt;br /&gt; value: null&lt;br /&gt; )&lt;br /&gt; &lt;br /&gt; }&lt;br /&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96772?ContentTypeID=1</link><pubDate>Sat, 25 Jun 2022 06:59:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6d335c76-6614-4815-be27-8bc56eacb736</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Can you share your code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: when calling a!startprocess function in save Into, variables declared inside the save Into are not updating</title><link>https://community.appian.com/thread/96770?ContentTypeID=1</link><pubDate>Fri, 24 Jun 2022 20:31:01 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3b733b8d-1298-4465-b999-94feb16ebfec</guid><dc:creator>Mike Schmitt</dc:creator><description>[quote userid="63716" url="~/discussions/f/user-interface/24998/when-calling-a-startprocess-function-in-save-into-variables-declared-inside-the-save-into-are-not-updating"]the variables declared inside the button saveInto are not updating[/quote]
&lt;p&gt;Can you clarify what you mean by this?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What are you expecting these variables to do, and what are you using to judge whether they&amp;#39;re updating?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>