AnsweredAssumed Answered

REST API JSON boolean type

Question asked by vasil on Jan 4, 2012
Latest reply on Jan 5, 2012 by trademak
Is there any example that will guide me how to use correctly boolean type with REST API and JSON.

I face this error:
Error occurred while executing job: condition expression returns non-Boolean: true (java.lang.String)
org.activiti.engine.ActivitiException: condition expression returns non-Boolean: true (java.lang.String)

I start a process via REST API:
http://localhost:8080/activiti-rest/service/process-instance
Body (JSON)
{
    "processDefinitionKey":"SendWelcomeEmailToCustomer",
    "hasEmail":"true",
    "hasEmail_type":"boolean"
}

Excerpt from bpmn xml:

<startEvent id="startevent1" name="Start" activiti:initiator="employeeName">
      <extensionElements>
        <activiti:formProperty id="hasEmail" name="Has Email" type="boolean" required="true"></activiti:formProperty>
      </extensionElements>
</startEvent>

Outcomes