Search code examples
javabusiness-process-managementbpmncamunda

Embedded-Task-Forms do not show the value of variable in Camunda 7.2.0-alpha5


In the 7.2.0-alpha5 version of camunda-bpm I cannot see the value of the variable "complete". It only shows an empty textfield. It's working in 7.1.0-final. Did the way of addressing a variable change in 7.2.0?

Thats what it looks like in tasklist:

tasklist-view

I guess my variable is correctly initialized at least according to cockpit:

variable in cockpit

Below is the code of my embedded-task form:

<form class="form-horizontal">
  <div class="control-group">
    <label class="control-label">Task Complete?</label>
      <div class="controls">
        <input form-field type="boolean" name="complete" readonly="true"/>
      </div>
  </div>
</form> 

Am I doing something wrong or is it a bug?


Solution

  • According to the docs of the camunda BPM JS SDK your input HTML should rather look like:

    <input type="text"
       cam-variable-name="complete"
       cam-variable-type="Boolean" />
    

    In HTML, there's no type="boolean", the 'equivalent' would rather be a type="checkbox" (but it still has to be implemented)