<?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: How do we handle outcomes and transitions in Activiti in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11355#M4486</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Basically you should store the value of the chosen button and use it later in an exclusive gateway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Feb 2011 11:11:03 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2011-02-25T11:11:03Z</dc:date>
    <item>
      <title>How do we handle outcomes and transitions in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11352#M4483</link>
      <description>I am porting an app from jbpm 4.&amp;nbsp; In jpdl we had the notion of different transitions for tasks.&amp;nbsp; It would be super helpful to me if I could understand how this notion translates to Activiti and BPMN. In jpdl each task had a notion of different outcomes or transitions.&amp;nbsp; You could control flow by comp</description>
      <pubDate>Thu, 24 Feb 2011 22:23:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11352#M4483</guid>
      <dc:creator>rmoskal</dc:creator>
      <dc:date>2011-02-24T22:23:38Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle outcomes and transitions in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11353#M4484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Robert,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We ran into this when integrating Activiti in Alfresco. Alfresco has created a layer of abstraction on top op JBPM 3, the WorkflowService. This workflow-api took over the outcome/transitions behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way we implemented this with Activiti is the folowing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Forms are defined within alfresco, using taskform-config. We map it in the process-definition using the formKey.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;On the taskform-definition in ALF we define a property (eg: wf_approvalOutcome) which has a list-constraint on it, containing the transitions, eg. Approve and Reject. Also a property (hidden) with fixed name (bpm_outcomePropertyName) points to the name of the property that will determine the outcome (in this case, wf_approvalOutcome)&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The ALF-share UI renders this as 2 buttons (Approve and Reject) instead of a combo-box and only one button (Next) as usually with this kind of form-property on workflow-forms.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;A gateway right after the task uses the wf_approvalOutcome to determine further path.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;A tasklistener is added (transparently using parselistener) to each task. In the endTaskListener we copy the value of the wf_approvalOutcome to the property specified by Alfresco API, bpm_outcome, so the existing UI's show the outcome of all tasks just the way that it's done with JBPM.&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;So your idea with the outcomes variable sounds good. You can for example always use task-variables with the same name to keep the outcome in.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 06:58:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11353#M4484</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-25T06:58:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle outcomes and transitions in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11354#M4485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to hande it in a kind of similar way. It works, but I'm not happy with it (not Activiti's fault) and personally I think that Activiti has a strong point proposing a 'composite' user task for BPMN2.1. Why? There already is a 'composite' gateway since one can be created by using others (and I do not know by heart which ones :-)) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I even think a it would make a very welcome custom extension for the time being. Not sure about all the consequences though.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 09:11:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11354#M4485</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-02-25T09:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle outcomes and transitions in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11355#M4486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Basically you should store the value of the chosen button and use it later in an exclusive gateway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 11:11:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11355#M4486</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-02-25T11:11:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do we handle outcomes and transitions in Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11356#M4487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. This has all been very helpful.&amp;nbsp; My preference is to let the work flow engine bear the weight of this (the form variables).&amp;nbsp; But others on the team may have other ideas and we may wind up doing something like the alfresco folks did.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Feb 2011 15:00:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-do-we-handle-outcomes-and-transitions-in-activiti/m-p/11356#M4487</guid>
      <dc:creator>rmoskal</dc:creator>
      <dc:date>2011-02-25T15:00:26Z</dc:date>
    </item>
  </channel>
</rss>

