<?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 Expression to custom form field in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210867#M163997</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;I have been wrestling with this problem for a while and I really hope someone could assist me with this. I am fairly new to Activiti so I will try to describe as detailed as possible what I am looking for and what I have tried.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have created my first custom form field (I am not using activiti explorer) and a corresponding form type. The field consists of two tables with drag and drop functionality. I have created the form type so it accepts two values, like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;activiti:formProperty expression="${formDataService.getUsers(tenantid)}" id="role_consultants" name="Chose consultants (C)" type="doubleTable"&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:value id="leftTableCaption" name="Available users"/&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:value id="rightTableCaption" name="Assigned as consultants"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:formProperty&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works great…almost. The form is rendered with my custom field and two tables are shown with corresponding captions (as in code). I can pass in the expression with all the users (that end up in the "available users"-table). This is a recurring task so when I open the task again I want the users I draged to the "assigned as consultants"-table the first time (i.e. the users in the variable role_consultants) to show in that table when I open the task the second time. The users are stored in the variable correctly but I can't pass it in. I can only pass in the expression. My idea was something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;activiti:formProperty&amp;nbsp; id="role_consultants" name="Chose consultants (C)" type="doubleTable"&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:value id="leftTableCaption" name="Available users"/&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:value id="rightTableCaption" name="Assigned as consultants"/&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:value id="availableUsers" name="${formDataService.getUsers(tenantid)}"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:formProperty&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i.e. pass in the expression with available users as an additional value but I noticed that activiti:value does not support expressions. The only thing that is passed in is the actual string "${formDataService.getUsers(tenantid)}" and that does me no good &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;BR /&gt;&lt;SPAN&gt;So, can I evaluate this string that is passed in as an expression in the form type or can I solve this problem another way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Very greatful for any help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rgds&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Johan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 15:14:47 GMT</pubDate>
    <dc:creator>jwistrom</dc:creator>
    <dc:date>2015-06-24T15:14:47Z</dc:date>
    <item>
      <title>Expression to custom form field</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210867#M163997</link>
      <description>HiI have been wrestling with this problem for a while and I really hope someone could assist me with this. I am fairly new to Activiti so I will try to describe as detailed as possible what I am looking for and what I have tried.I have created my first custom form field (I am not using activiti expl</description>
      <pubDate>Wed, 24 Jun 2015 15:14:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210867#M163997</guid>
      <dc:creator>jwistrom</dc:creator>
      <dc:date>2015-06-24T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to custom form field</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210868#M163998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Johan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a reason why you want to use form properties? To me it sounds like you are better of with some custom logic that gets variables from the process context. Then you can get the variable value and present it to the user like you are describing. &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>Wed, 24 Jun 2015 20:04:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210868#M163998</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-06-24T20:04:59Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to custom form field</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210869#M163999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you mean using a custom form with form key? I have considered that but I guess using form properties would allow me to better reuse the component. But if this is not possible with form property I might have to go with a form key. I just wanted to see if this could be solved using form properties&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 20:11:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210869#M163999</guid>
      <dc:creator>jwistrom</dc:creator>
      <dc:date>2015-06-24T20:11:30Z</dc:date>
    </item>
    <item>
      <title>Re: Expression to custom form field</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210870#M164000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We ourselves are going away from the form properties approach. In the commercial version of Activiti, and in Activiti 6, the formKey approach is used (form properties are still there, but not used)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Jun 2015 19:30:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/expression-to-custom-form-field/m-p/210870#M164000</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-06-30T19:30:24Z</dc:date>
    </item>
  </channel>
</rss>

