<?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>Best way to call process models in changing sequences</title><link>https://community.appian.com/discussions/f/process/23693/best-way-to-call-process-models-in-changing-sequences</link><description>I would like to know if the following scenario is possible within Appian, and if so how to accomplish it efficiently: 
 
 I would like to establish a set of process models that each perform a certain function. 
 I would like to make an interface that</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Best way to call process models in changing sequences</title><link>https://community.appian.com/thread/91009?ContentTypeID=1</link><pubDate>Mon, 14 Feb 2022 09:44:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a67881ce-79d8-4aff-b7ab-d5f27789fbe9</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;For both the running order and tracking the state I&amp;#39;d use a&amp;nbsp;CDT as an array:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;running order - you&amp;#39;d need to capture a token that represents a process (which you can then pass to the Decision Rule to return a handle to the process you want to run). It would also tag the selected process as requiring pre- or post- dependencies on other process models (or not, as required)&lt;/li&gt;
&lt;li&gt;tracking the state - you&amp;#39;d need to simply track that a process has been started and/or completed, the state of which can be used to control the next process to be started.&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;...but this is all &amp;quot;back of a beer mat&amp;quot; design...i.e. I haven&amp;#39;t formally thought it through end-to-end so it may have gaps.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best way to call process models in changing sequences</title><link>https://community.appian.com/thread/90980?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 15:37:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e5ea699f-c6b0-469d-986d-526300d4ef94</guid><dc:creator>Rebecca Lacoste</dc:creator><description>&lt;p&gt;To clarify for my understanding, you are suggesting that we could create a master process that will loop through and run sub processes included based on the input from a department (i.e., sequence) and requirements set by the user (i.e., don&amp;#39;t start subprocess B until subprocess A has completed, or run A B C in parallel)? Now that you&amp;#39;ve explained that way I think this might suit us perfectly as each subprocess would have a chance to define and receive its own set of rule inputs.&lt;br /&gt;&lt;br /&gt;What would you suggest for the &amp;#39;something&amp;#39; mechanism to determine the order and/or track the state?&amp;nbsp;&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: Best way to call process models in changing sequences</title><link>https://community.appian.com/thread/90979?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 15:14:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3dbf562b-6fc8-4728-9149-20ded1a6bd7b</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;For me the example suggests that order doesn&amp;#39;t really matter, but that all 3 need to be completed before the next step (which I presume is the actual Employee Review meeting)&lt;/p&gt;
&lt;p&gt;To answer the actual question: for a relatively trivial example like this you could&amp;nbsp;implement a parent process that takes as input the order that the processes need to be run, and a gateway (XOR) that routes through to the next sub-process depending on a) the order and b) the completion of any previous sub-process. So you&amp;#39;d need something to determine the order, and something to track the current state.&lt;/p&gt;
&lt;p&gt;It might also be feasible to use a Decision Rule that takes a token that represents a process model and returns that model. You can then call the model using the Start Process smart service (it gets a bit hairy when each model has different rule inputs that you need to account for). You&amp;#39;d still need your parent model to know where in the sequence you are AND you need any given called model to tell the parent model that it has completed (tricky when it&amp;#39;s called asynchronously, but not impossible - you could use process messaging to implement such a control)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best way to call process models in changing sequences</title><link>https://community.appian.com/thread/90967?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 14:12:26 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:dd8fd473-b2a0-4fa8-8801-42b96eda1012</guid><dc:creator>Rebecca Lacoste</dc:creator><description>&lt;p&gt;Thanks for the quick response! As an example, please consider the simplified process of performing an employee review:&lt;br /&gt;&lt;br /&gt;Department A would like this sequence:&lt;br /&gt;&lt;br /&gt;1. Employee will receive a self-evaluation to&amp;nbsp;complete&lt;br /&gt;2. A department specialist reviews average salaries for the employee&amp;#39;s position and turns in a report&lt;br /&gt;3.&amp;nbsp;The supervisor turns in an employee evaluation&lt;br /&gt;&lt;br /&gt;Department B would like the same tasks in order 2, 1, 3, Department C would like the same tasks in order 3, 1, 2 and Department D says all three can happen in parallel. Each task is independently completed by a process model - I&amp;#39;m looking for the best way to call them in a sequence (or in parallel) as dictated by the user.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Best way to call process models in changing sequences</title><link>https://community.appian.com/thread/90965?ContentTypeID=1</link><pubDate>Fri, 11 Feb 2022 14:00:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:39461ad3-9d87-43f2-bdec-919ac9abb8ea</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Whilst the community digest this and think of ways to approach it, what&amp;#39;s the actual business use case here? I ask because it maybe that there are alternate approaches to the problem or, possibly, that it&amp;#39;[s not even a problem to solve e.g. it may not actually matter what order the processes are executed in and therefore it&amp;#39;s not a problem that needs to be solved. But&amp;nbsp;without the actual context it&amp;#39;s hard to appraise. (btw - I can think of some options already but would need further information such as do all/any/none of the process models need to run synchronously for the user to interact with?)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>