AnsweredAssumed Answered

REST API complete task with variable

Question asked by sarkar92 on Mar 25, 2013
Latest reply on Mar 28, 2013 by frederikheremans1
I am trying to compete a task with a variable using REST API.

here is my xml

 <userTask id="usertask1" name="User Task" activiti:assignee="${assignee}">
        <extensionElements>
          <activiti:formProperty id="firstName" name="First Name" expression="${firstName}" writable="false"></activiti:formProperty>
          <activiti:formProperty id="lastName" name="Last Name" expression="${lastName}" writable="false"></activiti:formProperty>
          <activiti:formProperty id="groupName" name="Group Name" expression="${groupName}" writable="false"></activiti:formProperty>
          <activiti:formProperty id="decision" name="Do you approve the request ?" type="enum" required="true">
            <activiti:value id="true" name="Yes"></activiti:value>
            <activiti:value id="false" name="No"></activiti:value>
          </activiti:formProperty>
         
          <activiti:taskListener event="complete" class="net.simplyfiIT.workflow.EndListener"></activiti:taskListener>
        </extensionElements>
      </userTask>

I always pass dicision value as "true" but I get false.

I pass value like this

{"decision":true}


please help

Outcomes