<?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>How to update process variable after a node in process model?</title><link>https://community.appian.com/discussions/f/general/20048/how-to-update-process-variable-after-a-node-in-process-model</link><description>Suppose I have a process variable with a value at the Starting of the process model as 
 pv!variable: ER which returns some list of dict. coming from database table . 
 
 now after I complete a task the db table gets updated, now I want pv!variable to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: How to update process variable after a node in process model?</title><link>https://community.appian.com/thread/78468?ContentTypeID=1</link><pubDate>Mon, 14 Dec 2020 15:20:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9e6e465-8867-44a5-91ae-155e9fa3b643</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Yes, apologies on my delayed response. Rohito0002&amp;#39;s answer is clear&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update process variable after a node in process model?</title><link>https://community.appian.com/thread/78451?ContentTypeID=1</link><pubDate>Sat, 12 Dec 2020 09:00:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0c95927c-a8c2-44b6-be9a-a04c6cbe2063</guid><dc:creator>rohito498543</dc:creator><description>&lt;p&gt;I assume for storing the values into the db you must be using the write to data store entity smart service.&lt;br /&gt;If yes , then in the output tab of this write to data store entity smart service you will have an activity class parameter named StoredValues .You can save the value of this parameter in your process variable to get the updated values which are stored in your db table&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1607763662031v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If not you can add a new script node which fetches data from the db using a!queryEntity and stores the output into your process variable&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update process variable after a node in process model?</title><link>https://community.appian.com/thread/78392?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 16:07:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7fdfde7d-242d-490e-aef7-4a62a89b659c</guid><dc:creator>arshbirs0001</dc:creator><description>&lt;p&gt;Sorry, but I didn&amp;#39;t get you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update process variable after a node in process model?</title><link>https://community.appian.com/thread/78386?ContentTypeID=1</link><pubDate>Wed, 09 Dec 2020 14:48:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eeb881d6-b788-4e8f-b323-4089a0ba2146</guid><dc:creator>Joe</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In your W2DSE, You can access the new (updated) value via ac!StoredValue.[property] such as&amp;nbsp;&lt;span&gt;ac!StoredValue.jobId which would save into&amp;nbsp;job id&amp;nbsp;field of the process variable.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>