<?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 getTaskDesfinitionList? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/gettaskdesfinitionlist/m-p/82561#M55340</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I noticed the Class "TaskDefinition", but as far as I can see, there is no Service that can give me an List of TaskDefinitions based on a processKey / Instance ID ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to determine - Once the process is started - What Tasks will be available at all Times. (Need to receive all candidateUsernames in Order to send an Email.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How do I do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I only spotted options to receive the Process as a PNG, a XML or as a DiagramLayout, but not a simple TaskDefinitionList.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;edit:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Some Posts bellow, i found this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessDefinitionEntity processDefinition = (ProcessDefinitionEntity) ((RepositoryServiceImpl) repositoryService).getDeployedProcessDefinition(processDefinitionId);&lt;BR /&gt;&lt;BR /&gt;if (processDefinition != null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (ActivityImpl activity : processDefinition.getActivities()) {&lt;BR /&gt;&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; // …&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;but ProcessDefinitionEntity is NOT in the API, as well getActivities() is not a Member of processDefinition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So i assume, these are Classes (like TaskDefinition) that are used by activii, but not part of the (public) API &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and therefore may change at anytime?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any Chance, that there will be a public API to such a thing in the near future?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Don't want to use internal classes as they may be changed / removed or renamed from release to release)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 11:44:33 GMT</pubDate>
    <dc:creator>dognose</dc:creator>
    <dc:date>2012-10-22T11:44:33Z</dc:date>
    <item>
      <title>getTaskDesfinitionList?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/gettaskdesfinitionlist/m-p/82561#M55340</link>
      <description>Hello,I noticed the Class "TaskDefinition", but as far as I can see, there is no Service that can give me an List of TaskDefinitions based on a processKey / Instance ID ?I need to determine - Once the process is started - What Tasks will be available at all Times. (Need to receive all candidateUsern</description>
      <pubDate>Mon, 22 Oct 2012 11:44:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/gettaskdesfinitionlist/m-p/82561#M55340</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2012-10-22T11:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: getTaskDesfinitionList?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/gettaskdesfinitionlist/m-p/82562#M55341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The task-definition is not exposed in the API, indeed. Currently, the only way to retrieve the info you're looking for is by using the internal classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We're thinking of a way to expose this cleanly in the future, but we'll keep in mind how a lot of people are using this now, so we can anticipate on this to make the transition as painless as possible… No timing on this right now, either.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 12:36:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/gettaskdesfinitionlist/m-p/82562#M55341</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-22T12:36:42Z</dc:date>
    </item>
    <item>
      <title>Re: getTaskDesfinitionList?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/gettaskdesfinitionlist/m-p/82563#M55342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you very much.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then i'll go with that snippet for now and wait for a public version.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:50:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/gettaskdesfinitionlist/m-p/82563#M55342</guid>
      <dc:creator>dognose</dc:creator>
      <dc:date>2012-10-22T14:50:17Z</dc:date>
    </item>
  </channel>
</rss>

