<?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>Fetching data via event</title><link>https://community.appian.com/discussions/f/process/18360/fetching-data-via-event</link><description>Hi All, 
 I have a query. I am saving some details to the data store in one process and a task is assigned to someone. In other process the person is supposed to see that saved information in read only format. I have created both the PM but not able to</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Fetching data via event</title><link>https://community.appian.com/thread/72304?ContentTypeID=1</link><pubDate>Mon, 24 Feb 2020 06:15:46 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:201eb07b-cf84-479c-bfbe-07267dbf0495</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;In that case, say process A is the process that saves leave request data to DB and status as Pending. Then Process B be the process where task is generated for supervisor to accept/reject the task.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I understood your scenario correctly,in order to achieve the expected functionality you need to have the primary key (that you get after saving the data in process A) or the entire cdt containing data of the request passed in to the process B. Using this requestId you can query the db data in process B and pass that data to the UI node. On click of approve or reject button by the supervisor, save appropriate data in the status field of the request cdt. After the node, add write to db node with same primary key value, so that it updates the existing record with correct status.&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: Fetching data via event</title><link>https://community.appian.com/thread/72294?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 19:12:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b7fbccd9-2b4f-49bf-9e86-ba2df700f4af</guid><dc:creator>rahulm</dc:creator><description>&lt;p&gt;I am saving information for the request leave in DB with status field pending. So when user see in record he can see status pending. &amp;nbsp;when supervisor log-in and see the task for approval or reject along with request info.When he approves/rejects it ,it&amp;#39;s again saved with status approved. It is done to separate a single process in two different processes as single process might not end if supervisor delays his action.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Fetching data via event</title><link>https://community.appian.com/thread/72293?ContentTypeID=1</link><pubDate>Fri, 21 Feb 2020 19:03:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:36bc2273-23db-402c-ba31-4ebe2456f892</guid><dc:creator>Harsha Sharma</dc:creator><description>&lt;p&gt;Can you help me understand your case better as in why wait to save the data until user clicks on task? You can simply write the required data to db as and when you have data. Then query that and display on the task UI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>