<?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: Is it possible to pass a custom version number to process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146948#M102615</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;When you are going to check the process definition version?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is on process start, you could use the business_process_key to distinguish. Note that this value is set at deployment time (as far as I remember) and in must be unique (amongst all deployed process definitions);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are going to check it in a JavaDelegate, then you could define a (process instance) variable in the definition and access it in the JavaDelegate.execute() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, about half an year ago I also insisted on adding a field for "external" process version but my ask was refused: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4121" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4121&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Dec 2012 14:20:30 GMT</pubDate>
    <dc:creator>mmaker1234</dc:creator>
    <dc:date>2012-12-20T14:20:30Z</dc:date>
    <item>
      <title>Is it possible to pass a custom version number to process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146947#M102614</link>
      <description>I'm developing a app where the kind of actions that can be done can vary from one version of the process definition to another.I want to check whether a particular action can be taken based on the version of the process definition in question, here I'll not be able to depend on the automatic version</description>
      <pubDate>Thu, 20 Dec 2012 13:24:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146947#M102614</guid>
      <dc:creator>arunpjohny</dc:creator>
      <dc:date>2012-12-20T13:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass a custom version number to process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146948#M102615</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;When you are going to check the process definition version?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it is on process start, you could use the business_process_key to distinguish. Note that this value is set at deployment time (as far as I remember) and in must be unique (amongst all deployed process definitions);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are going to check it in a JavaDelegate, then you could define a (process instance) variable in the definition and access it in the JavaDelegate.execute() method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Otherwise, about half an year ago I also insisted on adding a field for "external" process version but my ask was refused: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4121" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=4121&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Dec 2012 14:20:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146948#M102615</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2012-12-20T14:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass a custom version number to process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146949#M102616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@Monique thank your for taking time to reply&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was also looking for the same, a way to specify an external version number at the definition time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think it is practically possible for me to use a process instance variable since it will require me to have another metadata stored some where else with the active external version number.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm looking at your previous post and the solution you've suggested.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 03:24:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146949#M102616</guid>
      <dc:creator>arunpjohny</dc:creator>
      <dc:date>2012-12-21T03:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass a custom version number to process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146950#M102617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello Arun,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;One particular workaround could be definition of a field - either a form one or a ServiceTask one. To be honest I didn't succeed with the form one, but for my purposes a ServiceTask field did the job:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="callMyBusinessLogic" name="BLcaller" activiti:async="true" activiti:class="bar.foo.RequestBusinessLogicAction"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="operation"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;DoSmthng&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:field name="processVersion"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;2.3.x&amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/serviceTask&amp;gt;&lt;BR /&gt;…&lt;/CODE&gt;&lt;SPAN&gt;This&amp;nbsp; way "operation" and "processVersion" are still accessible as process instance variables in a JavaDelegate but are defined at design time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this could help in your case,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Monique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 08:10:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146950#M102617</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2012-12-21T08:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass a custom version number to process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146951#M102618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@mmaker1234 nice,that's a good way of making this available at runtime when defined at design time. Another alternative is to use the category for this (this is also query able in the deploymentQuery) and can hold any arbitrary field… (see root tag of bpmn xml)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 08:24:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146951#M102618</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-12-21T08:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass a custom version number to process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146952#M102619</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;Unfortunately "query able" is not enough in some situations. For example I would like to know (log) the "external" version of my process on each event. I think that querying the deployment table and parsing the XML on each event is too much unnecessary load on the DB - most of the time it will serve my logs instead the (business) logic and, of course, slow down the work of the Activiti engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or, may be, I missed something?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Moniqe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 09:27:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146952#M102619</guid>
      <dc:creator>mmaker1234</dc:creator>
      <dc:date>2012-12-21T09:27:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to pass a custom version number to process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146953#M102620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;parsing the XML on each event is too much unnecessary load on the DB&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Process-definition category is now (5.11) stored in the PROC_DEF_ table itself, so no XML-parsing is needed. On top of that, process-definition cache is in place, so XML is pares only once (or again, if evicted from LRU). But if you don't want to query inside your service-task (which is something you want to avoid, indeed) your solution with the filed-injected is way better. Was just proposing alternative way &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Dec 2012 09:47:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-it-possible-to-pass-a-custom-version-number-to-process/m-p/146953#M102620</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-12-21T09:47:37Z</dc:date>
    </item>
  </channel>
</rss>

