cancel
Showing results for 
Search instead for 
Did you mean: 

REST API JSON boolean type

vasil
Champ in-the-making
Champ in-the-making
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>
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi,

It's similar to the Java API you can find in the FormService.
The parameters are all passed as String values, event if the value type is a boolean.

Best regards,
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.