<?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: External process definition version in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87619#M59371</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answer - I will try the workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm afraid that targetNamespace is not appropriate because our version contains spaces (I suppose you could recognize the following "version": $Revision: 1.4 $ &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) That is why we are still interested in a dedicated field/tag in the .BPMN file for such a piece of information.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2012 11:58:13 GMT</pubDate>
    <dc:creator>mmaker1234</dc:creator>
    <dc:date>2012-06-18T11:58:13Z</dc:date>
    <item>
      <title>External process definition version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87617#M59369</link>
      <description>Hello,We need to track the execution of process instances and often we need to relate the track to the process definition. As we have no access to the Activiti (production) DB we need to relate these tracks (execution history) to the source file of the process definition. Unfortunately one and the s</description>
      <pubDate>Fri, 15 Jun 2012 16:12:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87617#M59369</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2012-06-15T16:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: External process definition version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87618#M59370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;About ACT-1020, see comment + current workaround. Seems to me that bending the "description" to store your process-versioning is a valid solution. Another thing that is available is the "category" of the process-definition, this is also exposed in the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could leverage that, set the value in the BPMN using the targetNameSpace attribute on root element:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;definitions id="definition" &lt;BR /&gt;&amp;nbsp; xmlns="&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp; xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp; xmlns:activiti="&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;"&lt;BR /&gt;&amp;nbsp; targetNamespace="myProcDef/v3"&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 08:28:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87618#M59370</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-18T08:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: External process definition version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87619#M59371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your answer - I will try the workaround.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm afraid that targetNamespace is not appropriate because our version contains spaces (I suppose you could recognize the following "version": $Revision: 1.4 $ &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; ) That is why we are still interested in a dedicated field/tag in the .BPMN file for such a piece of information.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 11:58:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87619#M59371</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2012-06-18T11:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: External process definition version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87620#M59372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Probably I'm doing something wrong or there's a bug in Activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is (part of) my process definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;definitions xmlns="&lt;A href="http://www.omg.org/spec/BPMN/20100524/MODEL" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/MODEL&lt;/A&gt;" xmlns:xsi="&lt;A href="http://www.w3.org/2001/XMLSchema-instance" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema-instance&lt;/A&gt;" xmlns:activiti="&lt;A href="http://activiti.org/bpmn" rel="nofollow noopener noreferrer"&gt;http://activiti.org/bpmn&lt;/A&gt;" xmlns:bpmndi="&lt;A href="http://www.omg.org/spec/BPMN/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/BPMN/20100524/DI&lt;/A&gt;" xmlns:smileysurprised:mgdc="&lt;A href="http://www.omg.org/spec/DD/20100524/DC" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DC&lt;/A&gt;" xmlns:smileysurprised:mgdi="&lt;A href="http://www.omg.org/spec/DD/20100524/DI" rel="nofollow noopener noreferrer"&gt;http://www.omg.org/spec/DD/20100524/DI&lt;/A&gt;" typeLanguage="&lt;A href="http://www.w3.org/2001/XMLSchema" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/2001/XMLSchema&lt;/A&gt;" expressionLanguage="&lt;A href="http://www.w3.org/1999/XPath" rel="nofollow noopener noreferrer"&gt;http://www.w3.org/1999/XPath&lt;/A&gt;" targetNamespace="RunReportRequests"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;process id="RunReportRequests_ImmediateExecution" name="RunReportRequests_ImmediateExecution"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;$Revision: 1.4 $&amp;lt;/documentation&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startevent1" name="Start"&amp;gt;&amp;lt;/startEvent&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to retrieve the process definition (and its "external" version):&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngine processEngine = WfEngineManager.getProcessEngineConnection("MyWFengine);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HistoricProcessInstance processInfo = processEngine.getHistoryService().createHistoricDetailQuery().processInstanceId( processInstanceId ).singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReadOnlyProcessDefinition processDefinition = (ReadOnlyProcessDefinition ) processEngine.getRepositoryService().createProcessDefinitionQuery().processDefinitionId( processInfo.getProcessDefinitionId() ).singleResult();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG.info( "ProcessDefinition ID = " + processDefinition.getId() + "; Name = " + processDefinition.getName() + "; Description (version) = " + "; Description (version) = " );&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;And the result is&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessDefinition ID = RunReportRequests_ImmediateExecution:16:12604; Name = RunReportRequests_ImmediateExecution; Description (version) = &lt;/SPAN&gt;&lt;STRONG&gt;null&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;instead of&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessDefinition ID = RunReportRequests_ImmediateExecution:16:12604; Name = RunReportRequests_ImmediateExecution; Description (version) = &lt;/SPAN&gt;&lt;STRONG&gt;$Revision: 1.4 $&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm doing wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:06:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87620#M59372</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2012-06-18T13:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: External process definition version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87621#M59373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Try debugging your code and see what "properties"&amp;nbsp; are present in the ReadonlyProcessDefinition you obtain (contains a map with all parsed properties). Check what the value for key "documentation" is… Sometimes it helps actually looking into our source code, than you see how the documentation is parsed and ends up in the ProcessDefinition.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2012 13:15:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87621#M59373</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-18T13:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: External process definition version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87622#M59374</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Debugging my application together with Activiti, I reached the point &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;org.activiti.engine.impl.db.DbSqlSession.selectList(String statement, Object parameter, Page page)&lt;/CODE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where the call to &lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;loadedObjects = sqlSession.selectList(statement, parameter); //Call to org.apache.ibatis.session.SqlSession&lt;/CODE&gt;&lt;SPAN&gt;returned my process definition with &lt;/SPAN&gt;&lt;EM&gt;null&lt;/EM&gt;&lt;SPAN&gt; properties collection, which explains why the "documentation" property is also &lt;/SPAN&gt;&lt;EM&gt;null&lt;/EM&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any advice how to make Activiti to load the process definition properties?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2012 05:45:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87622#M59374</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2012-06-19T05:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: External process definition version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87623#M59375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did you get the ReadonlyProcessDefinition using RepositoryServiceIMPL.getDeployedProcessDefinition()? the properties are NOT in the DB, but are parsed. So by looking at your previous post (and the selectList) I presume you're just using the ProcessDefinitionQuery…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 11:14:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87623#M59375</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-06-22T11:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: External process definition version</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87624#M59376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for the feedback!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The replacement of &lt;/SPAN&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReadOnlyProcessDefinition processDefinition = (ReadOnlyProcessDefinition ) processEngine.getRepositoryService().createProcessDefinitionQuery().processDefinitionId( processInfo.getProcessDefinitionId() ).singleResult();&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ReadOnlyProcessDefinition processDefinition = ((RepositoryServiceImpl)repositoryService).getDeployedProcessDefinition( processInfo.getProcessDefinitionId() );&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt; did the work! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Jun 2012 12:39:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/external-process-definition-version/m-p/87624#M59376</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2012-06-22T12:39:26Z</dc:date>
    </item>
  </channel>
</rss>

