<?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: Changing control flow during execution in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4791#M2234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;If I would like to modify anyways the activityId associated with the execution (even if it is a bad practice), how can I do that? I mean, it can only be done from an &lt;EM&gt;ActivityBehavior&lt;/EM&gt; class or also from my main class?&lt;/P&gt;&lt;P&gt;Also, if it is possible to do it from the main class, how can I access the execution variable associated with the current process?&lt;/P&gt;&lt;P&gt;In both cases, which method I should call on the execution variable?&lt;/P&gt;&lt;P&gt;I apologize if I am asking too many questions, but I'm a novice with Activiti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Jan 2017 22:48:47 GMT</pubDate>
    <dc:creator>ajeje93</dc:creator>
    <dc:date>2017-01-31T22:48:47Z</dc:date>
    <item>
      <title>Changing control flow during execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4789#M2232</link>
      <description>I would like to know if it is possible to change the control flow of a process during execution.For example in the following process:It is possible to jump form "Service Task 2" directly to "User Task 4" or maybe going back to "User Task 1"?I read in documentation about ActivityBehavior class that c</description>
      <pubDate>Tue, 31 Jan 2017 22:11:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4789#M2232</guid>
      <dc:creator>ajeje93</dc:creator>
      <dc:date>2017-01-31T22:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Changing control flow during execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4790#M2233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible but one needs to be very careful.&lt;BR /&gt;Every execution has an activityId associated with it, you can update the activity Id of an execution and the task will effectively move from one step to another.&lt;BR /&gt;Where this can become complex is the data dependencies associated with the process. If you skip a step, then perhaps the data enrichment associated with that step doesnt happen, then if a subsequent step relies on this data being populated you will get a failure.&lt;/P&gt;&lt;P&gt;Going backward in a process can cause the same sort of problem, as forms or services that are called assume a current state and jumping around breaks that paradigm.&lt;BR /&gt;&lt;BR /&gt;The entire reason for having a defined process is to enforce specific paths of execution. If you need to move between different states, then model your process accordingly (i.e. not in a straight line),&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 22:25:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4790#M2233</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-31T22:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: Changing control flow during execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4791#M2234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;If I would like to modify anyways the activityId associated with the execution (even if it is a bad practice), how can I do that? I mean, it can only be done from an &lt;EM&gt;ActivityBehavior&lt;/EM&gt; class or also from my main class?&lt;/P&gt;&lt;P&gt;Also, if it is possible to do it from the main class, how can I access the execution variable associated with the current process?&lt;/P&gt;&lt;P&gt;In both cases, which method I should call on the execution variable?&lt;/P&gt;&lt;P&gt;I apologize if I am asking too many questions, but I'm a novice with Activiti.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 22:48:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4791#M2234</guid>
      <dc:creator>ajeje93</dc:creator>
      <dc:date>2017-01-31T22:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Changing control flow during execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4792#M2235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The following thread is a little old, &amp;nbsp;but should answer all of your questions.&lt;BR /&gt;I believe Martin also added a github project that demonstrates the mechanism.&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.alfresco.com/message/794649-re-whats-the-best-way-to-design-a-process-which-allows-user-to-recall-back-to-his-task?commentID=794649#comment-794649" title="https://community.alfresco.com/message/794649-re-whats-the-best-way-to-design-a-process-which-allows-user-to-recall-back-to-his-task?commentID=794649#comment-794649" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/message/794649-re-whats-the-best-way-to-design-a-process-which-allows-user-to-recall-back…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;P&gt;bp3‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jan 2017 22:54:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4792#M2235</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-01-31T22:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: Changing control flow during execution</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4793#M2236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved as described here &lt;A __default_attr="228087" __jive_macro_name="thread" _jive_internal="true" class="jive_macro_thread jive_macro link-titled" href="https://community.alfresco.com/thread/228087-link-newtask-to-process-instance" rel="nofollow noopener noreferrer"&gt;&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 25 Feb 2017 11:55:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/changing-control-flow-during-execution/m-p/4793#M2236</guid>
      <dc:creator>ajeje93</dc:creator>
      <dc:date>2017-02-25T11:55:26Z</dc:date>
    </item>
  </channel>
</rss>

