<?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: ProcessInstance.getName() and getDescription() are NULL in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243909#M197039</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems to be linked to the description of the activity in the bpmn20.xml&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Apr 2016 14:38:06 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2016-04-20T14:38:06Z</dc:date>
    <item>
      <title>ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243902#M197032</link>
      <description>Hi,I have a simple process definition XML shown below.&amp;nbsp; When I deploy it, start and instance of it, and then look at ProcessInstance.getName() and getDescription(), they are both null.&amp;nbsp; I do not understand what they are supposed to be set to, but I guess I expected the "getName()" would return "name</description>
      <pubDate>Tue, 12 Apr 2016 21:57:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243902#M197032</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-04-12T21:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243903#M197033</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;SPAN&gt;have a look on jUnit tests. e.g.:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.test.api.runtime.RuntimeServiceTest#testStartProcessInstanceByProcessInstanceBuilder&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.test.api.runtime.RuntimeServiceTest#testSetProcessInstanceName&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 06:42:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243903#M197033</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-13T06:42:12Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243904#M197034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for pointing that out.&amp;nbsp; After digging into the junits, I see that ProcessInstanceBuilder API and the RuntimeService APIs have a way to set the ProcessInstance's "name" field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I do not see anything similar to set the ProcessInstance's "description" field.&amp;nbsp; How is that set on the ProcessInstance?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 14:21:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243904#M197034</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-04-13T14:21:02Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243905#M197035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm currently doing this hack to make a fetched ProcessInstance have the "description" of my bpmn model each time I find a ProcessInstance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't like this approach because it uses the ExecutionEntity class in an "impl" package to call setDescription().&amp;nbsp; And, it makes an assumption that the ProcessInstance came from the BpmnModel's main Process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know if there is a better way to persist the description of a ProcessInstance and bring it back with my singleResult() query so I can avoid these APIs and assumptions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessInstance processInstance = // go find it here&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessDefinition processDefinitionEntity = repositoryService.createProcessDefinitionQuery()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .processDefinitionId(processInstance.getProcessDefinitionId())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BpmnModel bpmnModel = repositoryService.getBpmnModel(processDefinitionEntity.getId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;String descriptionDefault = bpmnModel.getMainProcess().getDocumentation();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// FIXME:&amp;nbsp; Requested correct API from Activiti guys here to set&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// the description.&amp;nbsp; This approach uses an 'impl' packaged class&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// to get the job done, which is not the best&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if (processInstance instanceof ExecutionEntity) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ExecutionEntity impl = (ExecutionEntity)dataObject;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; impl.setDescription(descriptionDefault);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 16:11:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243905#M197035</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-04-13T16:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243906#M197036</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;Process instance does not have any description. The description is only present in the process definition/model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That's why&amp;nbsp; you have to go to the BPMN model to acquire it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 09:47:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243906#M197036</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-04-14T09:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243907#M197037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see.&amp;nbsp; The ProcessInstance interface extends Execution, which has getDescription() on it's API.&amp;nbsp; So, that is why I figured they had descriptions.&amp;nbsp;&amp;nbsp; Thanks for clarifying. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 12:21:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243907#M197037</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-04-14T12:21:43Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243908#M197038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm very odd, that description on execution. I'll have a look why, as it's also no persisted.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 13:37:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243908#M197038</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-04-20T13:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243909#M197039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Seems to be linked to the description of the activity in the bpmn20.xml&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 14:38:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243909#M197039</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-04-20T14:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessInstance.getName() and getDescription() are NULL</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243910#M197040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for searching that down, Joram.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If Execution.getDescription() is the process instance's current activity's description then it sounds like I should stop using it for my purposes then.&amp;nbsp; I was looking for something like the documentation on the bpmn20.xml's of the process definition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 14:55:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processinstance-getname-and-getdescription-are-null/m-p/243910#M197040</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-04-20T14:55:39Z</dc:date>
    </item>
  </channel>
</rss>

