<?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: Adding a dynamic step while the instance is in flight in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81688#M54691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dilipl and croc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Consider that the process definition is static and we literally reuse the same instance of a process definition object for each instance at runtime (see DeploymentCache).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you modify the PD, the modification will be propagated to *all* running instances in that process engine instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can already do is, if you have a UserTask, you can add dynamic subtasks at runtime. These will be properly linked&amp;nbsp; to the given "parent" task in the process definition. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than that what you could do is add a set of tasks to the process definition which are not related to the "main" flow of the process (have no incoming / outgoing sequence flows, and then in a custom ActivityBehavior you set the execution to one of these tasks and continue there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So that would look somewhat like this: (warning: untested pseudo-code):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;String dynamicActivityId = "myDynamiyAct";&lt;BR /&gt;ActivityImpl dynamicActivity = processDefinition.findActivityById(dynamicActivityID);&lt;BR /&gt;execution.setActivity(dynamicActivity);&lt;BR /&gt;AtomicOperation.ACTIVITY_START.execute(execution);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;This will get you to the activity. Note that if the activiti is a scope, this will not create a new scope execution. Also in other respects, it is a very dirty hack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess It is always possible to do something like this, but you have to weigh whether you are willing to pay the price. I would advise against, in most cases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2012 05:41:18 GMT</pubDate>
    <dc:creator>meyerd</dc:creator>
    <dc:date>2012-04-27T05:41:18Z</dc:date>
    <item>
      <title>Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81685#M54688</link>
      <description>I have been evaluating Activitii to see if it helps us achieve what we are trying to accomplish.Essentially we want the ability to add a dynamic step (available to be picked up from a list of steps) at any point in the process thereby affecting the instance in flight. The step can be added anywhere</description>
      <pubDate>Wed, 25 Apr 2012 20:48:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81685#M54688</guid>
      <dc:creator>dilipl1</dc:creator>
      <dc:date>2012-04-25T20:48:26Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81686#M54689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Like, illustrated in this blog. Is this possible with activiti 5.9? Really appreciate if the stalwarts here respond. We are trying to see if we need to build our own workflow engine or if activiti will satisfy this crucial requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://mauricedechateau.blogspot.com/2010/07/adding-task-nodes-dynamically-at.html" rel="nofollow noopener noreferrer"&gt;http://mauricedechateau.blogspot.com/2010/07/adding-task-nodes-dynamically-at.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mainly we want to add a dynamic step (out of a step library) at any point of the process for the current instance. This will happen not too often in production but is a crucial requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you guys.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Apr 2012 21:08:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81686#M54689</guid>
      <dc:creator>dilipl1</dc:creator>
      <dc:date>2012-04-26T21:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81687#M54690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I want to ask this question too!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 00:49:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81687#M54690</guid>
      <dc:creator>croc1</dc:creator>
      <dc:date>2012-04-27T00:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81688#M54691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi dilipl and croc,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Consider that the process definition is static and we literally reuse the same instance of a process definition object for each instance at runtime (see DeploymentCache).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So if you modify the PD, the modification will be propagated to *all* running instances in that process engine instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What you can already do is, if you have a UserTask, you can add dynamic subtasks at runtime. These will be properly linked&amp;nbsp; to the given "parent" task in the process definition. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other than that what you could do is add a set of tasks to the process definition which are not related to the "main" flow of the process (have no incoming / outgoing sequence flows, and then in a custom ActivityBehavior you set the execution to one of these tasks and continue there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So that would look somewhat like this: (warning: untested pseudo-code):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;String dynamicActivityId = "myDynamiyAct";&lt;BR /&gt;ActivityImpl dynamicActivity = processDefinition.findActivityById(dynamicActivityID);&lt;BR /&gt;execution.setActivity(dynamicActivity);&lt;BR /&gt;AtomicOperation.ACTIVITY_START.execute(execution);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;This will get you to the activity. Note that if the activiti is a scope, this will not create a new scope execution. Also in other respects, it is a very dirty hack.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess It is always possible to do something like this, but you have to weigh whether you are willing to pay the price. I would advise against, in most cases.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2012 05:41:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81688#M54691</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2012-04-27T05:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81689#M54692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your response meyerd.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am going to try both these approaches and do a demo and see if this works. Here's a couple of questions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) The subtask approach&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; a) When a subtask is added under an already present task (usertask or servicetask correct?) at runtime, I will need a spring bean associated with it (java delegate). The user will only be able to pick from a fixed set of tasks (to make it&amp;nbsp; a subtask). Is this possible? Can I have some a spring bean associated with a dynamic subtask?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Disconnected tasks present in the process&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the second approach, I don't like all the tasks just sitting in the process either, but I can see where I can have a spring bean associated with it since the task will be present in the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I like approach 1 as it eliminates the litter, but can I associate a spring bean with a dynamic subtask?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks so much&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 May 2012 02:39:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81689#M54692</guid>
      <dc:creator>dilipl1</dc:creator>
      <dc:date>2012-05-01T02:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81690#M54693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey everyone and meyerd,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to do what you indicated in strategy 2 above since subtasks don't work. So, say I am at step 1 in my current execution and I want to add step 3.5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;step 1 –&amp;gt; step 2 –&amp;gt; step 3 –&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color:#FF0000;"&gt;step 3.5&lt;/SPAN&gt;&lt;SPAN&gt;–&amp;gt; step 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not want to go to step 3.5 yet. I just want to add it. I am at step 1 right now&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ActivityImpl dynamicActivity = processDefinition.findActivityById("step3.5");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now how do I change transitions from 3 to 3.5 and 3.5 to 4 instead of 3 to 4??&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All help is appreciated&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 03:31:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81690#M54693</guid>
      <dc:creator>dilipl1</dc:creator>
      <dc:date>2012-05-11T03:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81691#M54694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add another question. I draw a process which has seperate tasks (no incoming, no outgoing sequence flows), some task collections so that I can visualize my questions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-when I am in user task 2 in main process, can I go to another task except main process. (for example user task 6 or collection 1) After I complete this task can I return to main process to complete remaining process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Is it possible to form process fragments as collection 1 or collection2. If it is possible, can I return to main process. (I see an example on drools and they call it as ad-hoc.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-If I can form collections, is it necessary to put end event or start event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;-Maybe it should be the main question. Does activity designer support seperate tasks in process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Our main aim is to supply flexibility to users. In another topic, I asked you when noninterrupting and interrupting&amp;nbsp; boundary event will be supported. I think&amp;nbsp; this wil also supply flexibility to users. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 06:57:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81691#M54694</guid>
      <dc:creator>nemesis1</dc:creator>
      <dc:date>2012-05-11T06:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81692#M54695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Activiti gurus,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone please chime in to my question and then nemesis'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is some code, that helps me get an instance and then the process definition. I then get the activity (task). However I do not know the right way to change transitions to add step3.5 from my post above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;step 1 –&amp;gt; step 2 –&amp;gt; step 3 –&amp;gt;step 3.5–&amp;gt; step 4&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().singleResult();&lt;BR /&gt;ProcessDefinitionEntity pd = (ProcessDefinitionEntity) repositoryService.createProcessDefinitionQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processDefinitionId(processInstance.getProcessDefinitionId()).singleResult();&lt;BR /&gt;ActivityImpl dynamicActivity = pd.findActivity("step3.5");&lt;BR /&gt;ActivityImpl afterActivity = pd.findActivity("step3");&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you and appreciate all your inputs. If I can do this, it will help me sell activiti to my team.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 15:24:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81692#M54695</guid>
      <dc:creator>dilipl1</dc:creator>
      <dc:date>2012-05-11T15:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81693#M54696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;when modifyin the definition, it is for all instances…!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;why not add dynamic 'subprocesses'&amp;nbsp; at the places where you want some dynamic things to take place? what 'subprocess' will be executed can be decided runtime. that can eithe be some predefined and deployed ones, or even one you create runtime.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 16:24:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81693#M54696</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-05-11T16:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81694#M54697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Ronald,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I actually checked out the functionality (there is even a test in activiti examples) to pick a subprocess at runtime.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However what we (and many others) want is the capability to add a task at any point and not at a predefined spot. I will give you an example.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Consider my diagram with steps 1 thru 4 above and my current execution is on step 1.&amp;nbsp; Now a plant engineer, for just one work-order (instance) wants to go in and add a step 3.5. Just as likely, they could have added step 2.5. So I can't have subrocesses called at predefined steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think Ronald? Any way to accomplish this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 May 2012 17:40:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81694#M54697</guid>
      <dc:creator>dilipl1</dc:creator>
      <dc:date>2012-05-11T17:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81695#M54698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;some of what's discussed here closely resembles the concept of the "ad-hoc subprocess" as specified by bpmn. While supporting the ad-hoc subprocess is not the most prominent item on the roadmap (at least not with us at camunda), there is of course always the possibility of sponsored development &lt;/SPAN&gt;&lt;A href="http://www.camunda.com/consulting/activiti/sponsored-development/" rel="nofollow noopener noreferrer"&gt;http://www.camunda.com/consulting/activiti/sponsored-development/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 15:58:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81695#M54698</guid>
      <dc:creator>meyerd</dc:creator>
      <dc:date>2012-05-12T15:58:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81696#M54699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi meyerd;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Apologize for my blurry question. Essentially we are trying to understand the limit of activitybehaviour.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my main question is;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to jump to another task in a process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I obtain detailed information about sponsored development? We can need this if we decide to have an adhoc sub process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 May 2012 20:17:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81696#M54699</guid>
      <dc:creator>nemesis1</dc:creator>
      <dc:date>2012-05-12T20:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: Adding a dynamic step while the instance is in flight</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81697#M54700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;nemesis, yes of course it's possible…. We use logic to skip all the tasks we don't want at executing time by variable values, and target the correct one. A process instance variable is used in the runtime execution to determine if we should create an activiti task or not… and access it through a CDATA tag.. like below… of course I can't post all the pieces here, but should give you an idea … &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's what a snippet of what our process looks like at any of the 'determine' if we should skip or goto the next task …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="checkCustodianApproval_checkAssetAllowed" name="approved" sourceRef="isCustodianApproved" targetRef="isCustodianAllowedToHaveAsset"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditionExpression xsi:type="tFormalExpression"&amp;gt;&amp;lt;![CDATA[${approved == true}]]&amp;gt;&amp;lt;/conditionExpression&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Approved is set in the process runtime by a Java TaskListener that sets it with something like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;delegateTask.getExecution().setVariable("approved", "true");&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ankhara&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2013 21:49:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/adding-a-dynamic-step-while-the-instance-is-in-flight/m-p/81697#M54700</guid>
      <dc:creator>ankhara33</dc:creator>
      <dc:date>2013-04-26T21:49:10Z</dc:date>
    </item>
  </channel>
</rss>

