AnsweredAssumed Answered

userTask with formProperty using activiti:expression

Question asked by mrhu on Dec 18, 2012
Latest reply on Dec 21, 2012 by jbarrez
Given the following userTask defintion, the formProperty gets no value assigned. Assumption: activiti:expression raises the issue.
   
      <userTask  id="sid-E646E275-5000-48BB-A728-0016198C9158" "name="Weighing" >
         <extensionElements>
                <signavio:signavioMetaData metaKey="bgcolor" metaValue="#FFFFCC"/>
                <activiti:formProperty id="deviceID"  name="ID of Device:" activiti:expression="${measurement.getDeviceID()}" required="true" />
          </extensionElements>
      </userTask>

When using the following userTask definition, the value gets properly assigned. Why does the first case not work?

    <userTask  id="sid-E646E275-5000-48BB-A728-0016198C9158" "name="Weighing" >
         <extensionElements>
                <signavio:signavioMetaData metaKey="bgcolor" metaValue="#FFFFCC"/>
                <activiti:formProperty id="deviceID"  name="ID of Device:" expression="${measurement.getDeviceID()}" required="true" />
          </extensionElements>
      </userTask>

In both cases the following service task runs in upfront, so that both userTasks have a valid process variable measurement.

      <serviceTask id="sid-8BA4EC63-5264-46A0-AFB9-661AA8882AF0" activiti:class="server.controller.CreateMeasurementDelegate" name="Create Measurement">
         <extensionElements>
            <signavio:signavioMetaData metaKey="bgcolor" metaValue="#ffffcc"/>
         </extensionElements>
         <incoming>sid-F022415D-63DB-4A5F-BC63-160AED34DAE9</incoming>
         <outgoing>sid-54134A6F-F14F-4559-BFFD-699FFFF2DCC3</outgoing>
      </serviceTask>

Best regards,
Marco

Outcomes