<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Dynamically Adaptation in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6251#M3034</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right it was a mistake from me saying UserTask definitely I should have used the term ServiceTask. Thank you for the links they were really helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Alexander.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2018 15:57:47 GMT</pubDate>
    <dc:creator>zaridak</dc:creator>
    <dc:date>2018-02-23T15:57:47Z</dc:date>
    <item>
      <title>Dynamically Adaptation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6247#M3030</link>
      <description>Hello all,I would like your help about&amp;nbsp;whether  there is a known way to add dynamically a task to a process instance after the deployment using java code. Specifically, I start by reading the XML file then I deploy the process and afterwards I want to add for instance a user task. Is this possible?</description>
      <pubDate>Mon, 19 Feb 2018 23:38:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6247#M3030</guid>
      <dc:creator>zaridak</dc:creator>
      <dc:date>2018-02-19T23:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adaptation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6248#M3031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This can be a complicated question as there is often more than one way to achieve this kind of behaviour and which is best really depends on your specific situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interesting threads on this are&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/218750"&gt;Adding a dynamic step while the instance is in flight&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/224061"&gt;Dynamic subtasks&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some options are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Include all the steps you'll want in the definition and use variables to have ways to skip them under certain conditions - this was raised in one of the threads above but see also&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/thread/235681"&gt;Activiti is ineffective in China, and hopes to attract official attention.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) Dynamically add a subtask to a process instance.&lt;/P&gt;&lt;P&gt;3) Dynamically choose a sub-process.&lt;/P&gt;&lt;P&gt;4) Dynamically set the implementation of a service task or other expression.&lt;/P&gt;&lt;P&gt;5) Programmatically changing the running version of the process definition (note this will apply for all process instances using the version when you make that change).&lt;/P&gt;&lt;P&gt;6) Adding additional conditional logic in a listener.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think there are more. Not all of them will necessarily address your particular use-case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are limitations. If you need to&amp;nbsp;make a change that depends upon a java class that hasn't been deployed yet then you'll get an error at execution time when you hit that task. You can try to do clever things with the java classloader to avoid a restart but that's tricky ground.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The difficulty might be less whether there is a way and more understanding all of the techniques that are available and fitting them to your case. Personally I would tend to try and go for something that retains as much of a connection to the original process diagram as possible in order to&amp;nbsp;retain visibility of what it is that is running (which in your case sounds to me like 1). But there may be circumstances where that isn't adequate and yours might be such a circumstance as I don't know how much flexibility you need. It would be good if you can share as much as possible as it is a tricky area and your experiences could help the community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2018 09:41:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6248#M3031</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-20T09:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adaptation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6249#M3032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-userid="168491" data-username="ryandawson" href="https://community.alfresco.com/people/ryandawson" rel="nofollow noopener noreferrer"&gt;Ryan Dawson&lt;/A&gt;&lt;/SPAN&gt; and thank you for the fast reply,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, from your suggestions the one that matches my aims is number 4(Dynamically set the implementation of a service task or other expression). If I understood correctly from the other threads in case that I have:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;start Event --&amp;gt; UserTask1 –&amp;gt; UserTask2 –&amp;gt; UserTask3 ---&amp;gt; end Event&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and after the deployment my currently state is at userTask1 and waiting. The only way to add dynamically a userTask2.5 ( UserTask2 –&amp;gt; UserTask2.5 --&amp;gt; UserTask3 –&amp;gt;) is to redefine the BpmnModel creating it from the beginning (copying the existed one and adding the userTask2.5) and redeploy using the new BpmnModel? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you again,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alexander.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 11:11:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6249#M3032</guid>
      <dc:creator>zaridak</dc:creator>
      <dc:date>2018-02-21T11:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adaptation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6250#M3033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm a bit confused that you say UserTask here as a task with a custom java implementation in Activiti is normally called a Service Task. See&amp;nbsp;&lt;A class="link-titled" href="https://docs.alfresco.com/process-services1.6/topics/activities.html" title="https://docs.alfresco.com/process-services1.6/topics/activities.html" rel="nofollow noopener noreferrer"&gt;Activities | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&amp;nbsp;for the terminology. It sounds like what you&amp;nbsp;are trying to do is to deploy a new version of the process and migrate the instances to the new version. For the options on that see&amp;nbsp;&lt;A __default_attr="235809" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/235809-versioning-web-application-code-and-bpmn" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2018 11:23:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6250#M3033</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2018-02-21T11:23:22Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Adaptation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6251#M3034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you are right it was a mistake from me saying UserTask definitely I should have used the term ServiceTask. Thank you for the links they were really helpful!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Alexander.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 15:57:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-adaptation/m-p/6251#M3034</guid>
      <dc:creator>zaridak</dc:creator>
      <dc:date>2018-02-23T15:57:47Z</dc:date>
    </item>
  </channel>
</rss>

