<?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 Querying ExclusiveGateway and other gateways. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95646#M65640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Team,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not able to find an API to query the Exclusive Gateway.&amp;nbsp; For example if i want all the flows leaving from an exclusive gateway, what API call should i use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can see this from the bpmn xml but, i want an api which can give me the above behavior.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Oct 2012 18:30:32 GMT</pubDate>
    <dc:creator>kethur</dc:creator>
    <dc:date>2012-10-29T18:30:32Z</dc:date>
    <item>
      <title>Querying ExclusiveGateway and other gateways.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95646#M65640</link>
      <description>Hi Team,I am not able to find an API to query the Exclusive Gateway.&amp;nbsp; For example if i want all the flows leaving from an exclusive gateway, what API call should i use?I can see this from the bpmn xml but, i want an api which can give me the above behavior.Thanks in advance,Raj</description>
      <pubDate>Mon, 29 Oct 2012 18:30:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95646#M65640</guid>
      <dc:creator>kethur</dc:creator>
      <dc:date>2012-10-29T18:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Querying ExclusiveGateway and other gateways.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95647#M65641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One way is to override the ExclusiveGatewayBehavior and add your own logic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;example from the userguide:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; public void execute(ActivityExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; String var = (String) execution.getVariable("var");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PvmTransition transition = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; executeLogic(var);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transition = execution.getActivity().findOutgoingTransition("no-exception");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception e) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; transition = execution.getActivity().findOutgoingTransition("exception");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.take(transition);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 06:25:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95647#M65641</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-30T06:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Querying ExclusiveGateway and other gateways.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95648#M65642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;But I think this is for different purpose.&amp;nbsp; To use this, i have to start the process and then, until the process reaches to that task it wont get executed.&amp;nbsp; Am i right?.&amp;nbsp; It gets even harder if i have more gateways.&amp;nbsp; But my requirement is to query the gateways without going there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By looking at the xml i can see and understand which are the flows that are coming out of the exclusive gateway.&amp;nbsp; All i need is an API which can give me the transitions.&amp;nbsp; I am not sure if this API is there in the current version or it will be done in the future versions of Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For now, my option is to write a custom parser to parse the xml to get the above thing done.&amp;nbsp; Could you let me know if there is a better way please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Raj&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 08:39:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95648#M65642</guid>
      <dc:creator>kethur</dc:creator>
      <dc:date>2012-10-30T08:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: Querying ExclusiveGateway and other gateways.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95649#M65643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using repositoryServiceImpl.getDeployedProcessDefinition(id) and run through the activity-tree and transitions, starting at ReadonlyProcessDefinition.getInitial().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2012 08:43:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/querying-exclusivegateway-and-other-gateways/m-p/95649#M65643</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-30T08:43:06Z</dc:date>
    </item>
  </channel>
</rss>

