As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<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>
{"decision":true}
Try a string:{"decision":"true"}
Try a string:{"decision":"true"}If I try like above it will give an classcastexception…..
What REST-API-call are you using? I see you're using form-properties, but the rest-api currently only supports adding actual variables.