Boolean Inputs
|
Этот раздел перенесён из документации Camunda 7 и в дальнейшем будет доработан с учётом особенностей OpenBPM Engine |
Checkbox
Checkboxes are HTML <input type="checkbox"> controls. Checkbox controls can be used for boolean
variable types.
Binding a Checkbox to a Process Variable
A checkbox input can be bound to a process variable using the cam-variable-type and cam-variable-name directives:
<input type="checkbox"
cam-variable-name="IS_VIP_CUSTOMER"
cam-variable-type="Boolean" />
In the example above, the checkbox is bound to the variable named IS_VIP_CUSTOMER of type
Boolean.
Boolean Select Box
To bind a <select> box to a Java Boolean variable, the directive
cam-variable-type="Boolean" must be used.
Example:
<select cam-variable-name="APPROVED"
cam-variable-type="Boolean">
<option value="true">Yes</option>
<option value="false">No</option>
</select>
Boolean text Input
To bind a text input field to a Java Boolean variable, the directive
cam-variable-type="Boolean" must be used.
Text input fields of type Boolean accept the following string values:
-
true -
false
Meaning that the user has to type the words "true" or "false" into the text input field.
Example:
<input type="text"
cam-variable-name="IS_VIP_CUSTOMER"
cam-variable-type="Boolean" />
Лицензия и атрибуция
Эта документация была создана на базе материала "Camunda 7 Docs" от Camunda, находится под лицензией Creative Commons Attribution-ShareAlike 3.0 Unported License .
Оригинал документации: https://docs.camunda.org