How to generate dynamic business key in Camunda modeler?
I’ve tried to put something like this in business key value → something_${object.getId().toString()} but it doesn’t work (it prints value as string).
Can anyone help me about this?
Thank you in advance.
Hi @hedza06,
where do you want to set the business key?
Best regards,
Philipp
Hello @Philipp_Ossler,
I want to set business key on activity (Camunda Modeler, field Business Key).
Best regards.
I assume that you want to set the business key at a call activity. The business key expression must have the form ${execution.processBusinessKey}
. If you want to concatenate two strings then you can write ${"somthing_".concat(object.getId())}
. Or you can build the key previously using your favorite language (e.g. JavaScript).
Does it works for you?
Best regards,
Philipp
@Philipp_Ossler this works perfect! Thank you very much!