<?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: Get process variable name instead of process variable id in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120333#M84815</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;is not possible to map form property id with variable id and form property name to variable name? thans&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 May 2015 11:10:40 GMT</pubDate>
    <dc:creator>dataexpert</dc:creator>
    <dc:date>2015-05-28T11:10:40Z</dc:date>
    <item>
      <title>Get process variable name instead of process variable id</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120327#M84809</link>
      <description>We are creating a generic solution for form rendering, and our goal is to display all process variables from previous tasks inside current tasks.For example, in UserTask2, the assigned use can see the values filled by previous completed UserTask1's assignee. This doesn't seem possible at the moment</description>
      <pubDate>Mon, 27 May 2013 21:28:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120327#M84809</guid>
      <dc:creator>sorinello</dc:creator>
      <dc:date>2013-05-27T21:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get process variable name instead of process variable id</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120328#M84810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;HistoricVariableInstanceQuery may help - if you have the process instance ID, you should be able to find all variables (though it may not cover variable values that were changed during a process).&amp;nbsp; &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2013 23:59:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120328#M84810</guid>
      <dc:creator>slehman</dc:creator>
      <dc:date>2013-05-27T23:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: Get process variable name instead of process variable id</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120329#M84811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, Unfortunately this does not seem to help me. I need the variable names for displaying them in the form. Variables Id's are not good, since they are a technical concept, so I need their "pretty" names to display.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have followed your example, but I STILL get variable Id's&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried the following code&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;#set(instanceVariables = services.activiti.getProcessEngine().getHistoryService().createHistoricVariableInstanceQuery().processInstanceId(executionId).list())&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #foreach($historicVariable in $instanceVariables)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Name: $historicVariable.getVariableName() value: $historicVariable.getValue()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My results are:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: nameId value: 456464&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: longId value: 64564564&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: enumId value: DACI_A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: dateId value: Tue May 28 00:00:00 EEST 2013&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: booleanId value: true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while I was expecting something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: Your Name value: 456464&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: Amount value: 64564564&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: Option Selected value: DACI_A&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: Registration Date value: Tue May 28 00:00:00 EEST 2013&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Name: Allowed to modify value: true&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/blockcode&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea ? this is pretty important use case, I wonder how nobody needed this before.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, I think that the API is very confusing because I see methods like getVariableName() which actually return the variable Id !!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ANY help is appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorin B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 09:16:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120329#M84811</guid>
      <dc:creator>sorinello</dc:creator>
      <dc:date>2013-05-28T09:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get process variable name instead of process variable id</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120330#M84812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just did a quick test with this snippet (I'm using Activiti 5.12.1):&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; List&amp;lt;HistoricVariableInstance&amp;gt; vars = processEngine.getHistoryService().createHistoricVariableInstanceQuery().processInstanceId("461").list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; for(HistoricVariableInstance i : vars) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; log.info(i.getVariableName());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And I got the result I expected (the values in the NAME_ column in ACT_HI_VARINST).&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does that column in the DB actually have the names you want?&amp;nbsp; Any chance you are actually trying to get the name of the form property, rather than the name of the variable?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 14:45:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120330#M84812</guid>
      <dc:creator>slehman</dc:creator>
      <dc:date>2013-05-28T14:45:10Z</dc:date>
    </item>
    <item>
      <title>Re: Get process variable name instead of process variable id</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120331#M84813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you slehman for being so fast in answering me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me just detail a little bit. From the Eclipse Designer, when adding a form property I fill the following fields:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Id = myId - representing the id of the property. This is getting translated as the ID which my property will have in the form. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;code&amp;gt; E.g. &amp;lt;input type="text" id="myId" …./&amp;gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Name = My Id - representing the value I use for generating the label (pretty name/description) of my property&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Type = string, long,etc etc&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Variable - I do NOT put anything here since the form property will become automatically a variable process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I am on the form everything is OK. But after the task is finished if I get the process variables, it seems that I get the Id from above as my variable name, instead of getting the Name from above as its name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think you are right, the Name and Id are STRICTLY for forms, and If I don't specify a Variable name, the Id is automatically used. Am I right ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Am I allowed to use variable names which contain spaces ? I was imagining it's like in other programming language, you are not allowed to have variables which contain whitespaces.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Waiting for your response since I am a little bit confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 16:08:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120331#M84813</guid>
      <dc:creator>sorinello</dc:creator>
      <dc:date>2013-05-28T16:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get process variable name instead of process variable id</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120332#M84814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Indeed, I am allowed to use whitespaces in variable names. Also, If I fill the Variable Field, I can display the already set variables in a nice manner, the ID is not longer used as variable name. Nice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Too bad this behavior is not documented &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 May 2013 19:38:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120332#M84814</guid>
      <dc:creator>sorinello</dc:creator>
      <dc:date>2013-05-28T19:38:23Z</dc:date>
    </item>
    <item>
      <title>Re: Get process variable name instead of process variable id</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120333#M84815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;is not possible to map form property id with variable id and form property name to variable name? thans&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 11:10:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120333#M84815</guid>
      <dc:creator>dataexpert</dc:creator>
      <dc:date>2015-05-28T11:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Get process variable name instead of process variable id</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120334#M84816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Form properties are automatically mapped with the id value to the variable name. We don't have a variable id and name, only a name attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 May 2015 12:16:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/get-process-variable-name-instead-of-process-variable-id/m-p/120334#M84816</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-05-28T12:16:48Z</dc:date>
    </item>
  </channel>
</rss>

