<?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: Identifying Predecessors in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/identifying-predecessors/m-p/134704#M94545</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK after a bit exploring i found a kind of solution by using BpmnParse-Class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For whom it may interest: I just had to "fake" a Deployment to make it work. Just create a new BPMN-Parse like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;new BpmnParse = new BpmnParse(new BpmnParser(new ExpressionManager(), new DefaultBpmnParseFactory()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using in Tests or elsewhere also make sure that Context.getProcessEngineConfiguration is not null. I first used the Parse in a JUnit Test with an Activity Rule and got a NullPointer. So i just set the Configuration with the static setter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I can at least identify possible predecessors and successors, but by checking active tasks before and after completion the new created follow-ups can be identified (ok, not if you have parallel multi-instance sub processes but I dont have them) =D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Mar 2013 22:21:04 GMT</pubDate>
    <dc:creator>se040</dc:creator>
    <dc:date>2013-03-15T22:21:04Z</dc:date>
    <item>
      <title>Identifying Predecessors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identifying-predecessors/m-p/134703#M94544</link>
      <description>Hi all,I want to know if there is a way (i know there is no way in the API of the engine atm) to identify the type and id of the predecessor of a task, knowing the process instance and task id of course.I am glad for any help.Regards,Stefan</description>
      <pubDate>Fri, 15 Mar 2013 21:21:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identifying-predecessors/m-p/134703#M94544</guid>
      <dc:creator>se040</dc:creator>
      <dc:date>2013-03-15T21:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Predecessors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identifying-predecessors/m-p/134704#M94545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK after a bit exploring i found a kind of solution by using BpmnParse-Class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For whom it may interest: I just had to "fake" a Deployment to make it work. Just create a new BPMN-Parse like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;new BpmnParse = new BpmnParse(new BpmnParser(new ExpressionManager(), new DefaultBpmnParseFactory()))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When using in Tests or elsewhere also make sure that Context.getProcessEngineConfiguration is not null. I first used the Parse in a JUnit Test with an Activity Rule and got a NullPointer. So i just set the Configuration with the static setter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I can at least identify possible predecessors and successors, but by checking active tasks before and after completion the new created follow-ups can be identified (ok, not if you have parallel multi-instance sub processes but I dont have them) =D&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Mar 2013 22:21:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identifying-predecessors/m-p/134704#M94545</guid>
      <dc:creator>se040</dc:creator>
      <dc:date>2013-03-15T22:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: Identifying Predecessors</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/identifying-predecessors/m-p/134705#M94546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Another path you could take is to fetch the BpmnModel representation of the process definition. There you can easily traverse the different steps in the process in a pojo way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2013 15:44:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/identifying-predecessors/m-p/134705#M94546</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-03-18T15:44:36Z</dc:date>
    </item>
  </channel>
</rss>

