<?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 all task definition of a process definition in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104366#M72871</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;I had the same problem today and I haven't found a way to resolve it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the only way to get it is getting and parsing the XML process file but I'm not sure. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't get task definition using the API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Nov 2012 21:03:52 GMT</pubDate>
    <dc:creator>lpavone</dc:creator>
    <dc:date>2012-11-09T21:03:52Z</dc:date>
    <item>
      <title>get all task definition of a process definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104365#M72870</link>
      <description>Hi All,Is there any way I can get all tasks definition of the the process event if that are not instantiated yet?Thanks,Ameet</description>
      <pubDate>Fri, 09 Nov 2012 09:57:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104365#M72870</guid>
      <dc:creator>ameetpatel</dc:creator>
      <dc:date>2012-11-09T09:57:25Z</dc:date>
    </item>
    <item>
      <title>Re: get all task definition of a process definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104366#M72871</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;I had the same problem today and I haven't found a way to resolve it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think that the only way to get it is getting and parsing the XML process file but I'm not sure. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't get task definition using the API.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 21:03:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104366#M72871</guid>
      <dc:creator>lpavone</dc:creator>
      <dc:date>2012-11-09T21:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: get all task definition of a process definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104367#M72872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See here: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4783" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4783&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 14:23:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104367#M72872</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2012-11-12T14:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: get all task definition of a process definition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104368#M72873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;thanks dognose!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If someone need the code to get the taskDefinitions from the process definition, the snippet below works fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(the only one difference from dognose code, is using PvmActivity instead of ActivityImpl)&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; ReadOnlyProcessDefinition processDefinition = &lt;BR /&gt;&amp;nbsp;&amp;nbsp; ((RepositoryServiceImpl)repositoryService)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; .getDeployedProcessDefinition( procDef );&lt;BR /&gt;&lt;BR /&gt; if (processDefinition != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (PvmActivity activity : processDefinition.getActivities()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; String type = (String) activity.getProperty("type");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println( type + ":&amp;nbsp; " + activity.getProperty("name"));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // …&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;type could be userTask, exclusiveGateway, endEvent and so on… and name will be the name of the element in the bpm diagram..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 17:55:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-all-task-definition-of-a-process-definition/m-p/104368#M72873</guid>
      <dc:creator>lpavone</dc:creator>
      <dc:date>2012-11-12T17:55:20Z</dc:date>
    </item>
  </channel>
</rss>

