<?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: Cannot find activity in ProcessDefinition in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195288#M148418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using the method on the repositoryService.getBpmnModel() to get the BpmnModel, which you can then use to get information about your activity&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Mar 2015 09:19:44 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-03-31T09:19:44Z</dc:date>
    <item>
      <title>Cannot find activity in ProcessDefinition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195287#M148417</link>
      <description>Hi,I want to find a certain activity in a ProcessDefinitionImpl object using method #findActivity(activityId), but it returns null every time. Below is the process picture. It is a simple Manager approval process. the applicant fills the application form first, then the manager approves it or reject</description>
      <pubDate>Tue, 31 Mar 2015 03:07:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195287#M148417</guid>
      <dc:creator>kikyou1986</dc:creator>
      <dc:date>2015-03-31T03:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find activity in ProcessDefinition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195288#M148418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try using the method on the repositoryService.getBpmnModel() to get the BpmnModel, which you can then use to get information about your activity&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 09:19:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195288#M148418</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-03-31T09:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find activity in ProcessDefinition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195289#M148419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi jbarrez, how can I get the ActivityImpl ojbect with certain activityId from the BpmnModel object?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 10:35:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195289#M148419</guid>
      <dc:creator>kikyou1986</dc:creator>
      <dc:date>2015-03-31T10:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find activity in ProcessDefinition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195290#M148420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok. I solved this by getting ProcessDefinitionImpl object with the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessDefinitionImpl pd = (ProcessDefinitionImpl) ((RepositoryServiceImpl) repositoryService)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getDeployedProcessDefinition(processDefinitionId);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This ProcessDefinitionImpl object will have all activity infomation in it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I reckon that with the former approach, it is designed to have no activity infomation in it. The former approach I was using is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessDefinitionImpl pd = (ProcessDefinitionImpl) repositoryService&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; .createProcessDefinitionQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; .processDefinitionId(processDefinitionId).singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Mar 2015 10:57:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195290#M148420</guid>
      <dc:creator>kikyou1986</dc:creator>
      <dc:date>2015-03-31T10:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find activity in ProcessDefinition</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195291#M148421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Correct.&amp;nbsp; RepositoryService.getProcessDefinition() would do the same, and does not need the cast.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 12:17:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cannot-find-activity-in-processdefinition/m-p/195291#M148421</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-04-07T12:17:22Z</dc:date>
    </item>
  </channel>
</rss>

