<?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: Get a list of Possible flows while I am at a gateway? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182523#M135653</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;The PVM is really for internal usage and you shouldn't need it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get a BpmnModel instance via the RepositoryService and lookup the activity or gateway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the FlowElement Java instance you can get the outgoing sequence flows and the next element connected to each sequence flow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 02 Oct 2014 15:03:23 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2014-10-02T15:03:23Z</dc:date>
    <item>
      <title>Get a list of Possible flows while I am at a gateway?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182520#M135650</link>
      <description>HiI am new to Activity and am trying to integrate it with a web-application. I was going through the APIs and the DB to figure out if there was a way to get a list of possible conditional flows from a gateway or a task (say which has been coupled with a boundary event of some sort)? In other words,</description>
      <pubDate>Fri, 26 Sep 2014 13:00:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182520#M135650</guid>
      <dc:creator>himanshudewan</dc:creator>
      <dc:date>2014-09-26T13:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of Possible flows while I am at a gateway?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182521#M135651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Himanshu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can have a look in activiti sources. e.g. &lt;/SPAN&gt;&lt;CODE&gt;org.activiti.engine.impl.bpmn.behavior.ExclusiveGatewayActivityBehavior#leave&lt;/CODE&gt;&lt;SPAN&gt; which transition is taken.&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Iterator&amp;lt;PvmTransition&amp;gt; transitionIterator = execution.getActivity().getOutgoingTransitions().iterator();&lt;BR /&gt;…&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;Look into source code to find answer for the second part of your question (events).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Sep 2014 06:46:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182521#M135651</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-09-29T06:46:32Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of Possible flows while I am at a gateway?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182522#M135652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for helping out Martin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I went through the source code and have deduced that in order to get the outgoing transactions I need to obtain the PvmActivity object associated with that execution/Activity and then query for the possible outgoing transactions. I can obain the PvmActivity object from the PvmProcessInstance API which gives me the PvmExecution object which then gives me the required PvmAvtivity object.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Going through all the APIs, I had to read a bit about PVMs. (Wasn't aware about it earlier. So thanks again) I have still not found any comprehensive sources to understand what they exactly are. From what I have learnt, they are the basic implementation of the Activiti; treating every process as a simple state machine. The processEngine uses this PVM to build upon a BP execution framework. Can you also give a brief, simple-worded explanation on PVMs in your own way? Their context with respect to Activiti? Would changing something at the PVM level in a process be reflected in the DB or at the higher layers? Any good sources to understand the structure of Activiti and its PVM. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find that documentation on PVM APIs is very less; also there is hardly any mention about them in the userguide or the Activiti in Action book. Here is hoping the Activiti team looks into it &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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Sep 2014 10:30:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182522#M135652</guid>
      <dc:creator>himanshudewan</dc:creator>
      <dc:date>2014-09-30T10:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of Possible flows while I am at a gateway?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182523#M135653</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;The PVM is really for internal usage and you shouldn't need it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can get a BpmnModel instance via the RepositoryService and lookup the activity or gateway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With the FlowElement Java instance you can get the outgoing sequence flows and the next element connected to each sequence flow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Oct 2014 15:03:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182523#M135653</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-10-02T15:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get a list of Possible flows while I am at a gateway?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182524#M135654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the answer trademark. Sorry for the late reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You saved me a lot of headache &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;SPAN&gt;I will try out the API you pointed out today.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Oct 2014 04:40:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-a-list-of-possible-flows-while-i-am-at-a-gateway/m-p/182524#M135654</guid>
      <dc:creator>himanshudewan</dc:creator>
      <dc:date>2014-10-07T04:40:09Z</dc:date>
    </item>
  </channel>
</rss>

