Business key for process started by user form

Hi,
I have a process that is initiated using a user form. How can I set the business key for the process?

Thanks,
Mike

Hi Mike,

If you are talking about embedded forms, this docs chapter might help you: https://docs.camunda.org/manual/7.4/reference/embedded-forms/javascript/generating-businesskey/

If you are building a custom form that invokes the REST API, have a look at the businessKey parameter of the resource to submit a start form: https://docs.camunda.org/manual/7.4/reference/rest/process-definition/post-submit-form/

Cheers,
Thorben

1 Like

Thanks Thorben,
That looks exactly like what I was after.

Cheers,
Mike

Hi Guys,

You could also use a declarative approach via an HTML text field and the cam-business-key directive as documented in [1]

regards

Rob

[1] https://docs.camunda.org/manual/7.4/reference/embedded-forms/controls/#the-cam-business-key-directive

3 Likes