<?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: ActivityExecution.takeAll: what is the 2nd parameter? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126211#M88805</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need this method because I'm&amp;nbsp; writing a special kind of gateway implemening some particular business rules of my process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Jan 2013 11:32:26 GMT</pubDate>
    <dc:creator>f_lombardo</dc:creator>
    <dc:date>2013-01-07T11:32:26Z</dc:date>
    <item>
      <title>ActivityExecution.takeAll: what is the 2nd parameter?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126207#M88801</link>
      <description>Sorry for the silly question, but could you explain the meaning of the 2nd parameter of method of ActivityExecution.takeAll?Thank you very much.ByeFranco</description>
      <pubDate>Sat, 05 Jan 2013 11:23:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126207#M88801</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-01-05T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityExecution.takeAll: what is the 2nd parameter?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126208#M88802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, the javadoc sais:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;/**&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Takes the given outgoing transitions, and potentially reusing&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * the given list of executions that were previously joined.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp;&amp;nbsp;void takeAll(List&amp;lt;PvmTransition&amp;gt; outgoingTransitions, List&amp;lt;ActivityExecution&amp;gt; joinedExecutions);&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;How it is used can best be seen if youanalyze t code a littl and find references of its usage. It as to do with gateways.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Jan 2013 16:15:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126208#M88802</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-01-05T16:15:43Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityExecution.takeAll: what is the 2nd parameter?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126209#M88803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First of all, thank you for your answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I already tried to understand the engine source code, but, since I'm not so smart, I was asking you some hints &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I'll try again, thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2013 12:07:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126209#M88803</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-01-06T12:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityExecution.takeAll: what is the 2nd parameter?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126210#M88804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My I ask why you need to know this? I use activiti all the time and never needed this INTERNAL method in normal usage (it is not in the public api). The only moment I needed to know parts of the internal api whas when fixing some bug in a gateway.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Jan 2013 20:34:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126210#M88804</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-01-06T20:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityExecution.takeAll: what is the 2nd parameter?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126211#M88805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I need this method because I'm&amp;nbsp; writing a special kind of gateway implemening some particular business rules of my process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 11:32:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126211#M88805</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-01-07T11:32:26Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityExecution.takeAll: what is the 2nd parameter?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126212#M88806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;… but, since I'm not so smart&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I'm writing a special kind of gateway implemening…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok… I'd still go for analyzing how it is used then… I doubt an answer by one of the core devs would help you in actually using it… And they most likely will not write the 'special gateway' for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can't the businessrule not be implemented using the existing gateways?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 12:00:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126212#M88806</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2013-01-07T12:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: ActivityExecution.takeAll: what is the 2nd parameter?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126213#M88807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can't the businessrule not be implemented using the existing gateways?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;It could definitively be implemented using existing gateways, but I think it would be a bit "convoluted". &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway, I did it this way, and it seems it works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class MyGateway implements ActivityBehavior {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public void execute(ActivityExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;PvmTransition&amp;gt; transitions = findTransitionsWithMyFunnyRules();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.inactivate();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.takeAll(transitions, new ArrayList&amp;lt;ActivityExecution&amp;gt;());&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Bye&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Franco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Jan 2013 16:11:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activityexecution-takeall-what-is-the-2nd-parameter/m-p/126213#M88807</guid>
      <dc:creator>f_lombardo</dc:creator>
      <dc:date>2013-01-07T16:11:10Z</dc:date>
    </item>
  </channel>
</rss>

