How to get the value of a business key within a javascript-based external worker?

Hello there,

is it possible to get the business key of a process instance within a javascript external worker?

For example, to get a process variable, I have something like this: task.variables.get(“variableName”);

What about the business key? How is it possible to get its value in a js external worker?

Thank you,
Smith.

Hi Smith!
You can try directly
task.businessKey

Hope it helps.
Cheers

1 Like