<?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: UserTask names in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80380#M53644</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can always use the RepositoryServiceImpl.getDeployedProcessDefinition() and recessively inspect all activities (following sequence flows) in your code, starting from the initial Ativity. Getting out all user-tasks this way is possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2012 07:07:15 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2012-07-16T07:07:15Z</dc:date>
    <item>
      <title>UserTask names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80377#M53641</link>
      <description>Is there a way to list all userTask nodes (the definition: id, name) within a process definition (with activiti service classes).I am currently using a parser to parse the xml with the process definition.BR</description>
      <pubDate>Fri, 06 Jul 2012 10:16:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80377#M53641</guid>
      <dc:creator>mitziuro</dc:creator>
      <dc:date>2012-07-06T10:16:18Z</dc:date>
    </item>
    <item>
      <title>Re: UserTask names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80378#M53642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a similar problem. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which parser did you use to parse your file? Did you have written your own parsing process?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 07:44:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80378#M53642</guid>
      <dc:creator>rsoika</dc:creator>
      <dc:date>2012-07-13T07:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: UserTask names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80379#M53643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;just read it as string/bytearray and convert it to a w3c dom…&amp;nbsp; Nothing special&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2012 08:22:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80379#M53643</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-07-13T08:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: UserTask names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80380#M53644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can always use the RepositoryServiceImpl.getDeployedProcessDefinition() and recessively inspect all activities (following sequence flows) in your code, starting from the initial Ativity. Getting out all user-tasks this way is possible.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2012 07:07:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80380#M53644</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-16T07:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: UserTask names</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80381#M53645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The answer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/* Get the usertasks */&lt;BR /&gt;UserTaskActivityBehavior utab = null;&lt;BR /&gt;ProcessDefinition processDefinition = repositoryService.createProcessDefinitionQuery().processDefinitionKey("process1").latestVersion().singleResult();&lt;BR /&gt;ReadOnlyProcessDefinition procDef = ((RepositoryServiceImpl) repositoryService).getDeployedProcessDefinition(processDefinition.getId());&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;for(PvmActivity activity : procDef.getActivities()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(((ActivityImpl)activity).getActivityBehavior() instanceof UserTaskActivityBehavior) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; utab = (UserTaskActivityBehavior) ((ActivityImpl)activity).getActivityBehavior();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; utab.getTaskDefinition().getNameExpression().getExpressionText(); //name&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; utab.getTaskDefinition().getKey(); //id&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Aug 2012 07:58:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/usertask-names/m-p/80381#M53645</guid>
      <dc:creator>mitziuro</dc:creator>
      <dc:date>2012-08-08T07:58:05Z</dc:date>
    </item>
  </channel>
</rss>

