Generating a Business Key

Этот раздел перенесён из документации Camunda 7 и в дальнейшем будет доработан с учётом особенностей OpenBPM Engine

The following example shows how you can generate a business key using Javascript:

<form role="form">
  <script cam-script type="text/form-script">

    camForm.on('submit', function() {
      camForm.businessKey = 'some-generated-value';
    });

  </script>

</form>

As you can see, you can set the businessKey variable on the camForm object. The value you set will be submitted in the start process instance request.

Note that the business key can only be set when a process instance is started, not when completing a task.

Лицензия и атрибуция

Эта документация была создана на базе материала "Camunda 7 Docs" от Camunda, находится под лицензией Creative Commons Attribution-ShareAlike 3.0 Unported License .

Оригинал документации: https://docs.camunda.org