Start Event Signal and business key

I am using Java API to trigger the start signal, but want to pass the business key to the start signal. Here is the code I have to start the signal, but I don’t see the business key getting passed.

 Map<String, Object> variables = new HashMap<String, Object>();
 variables.put("businessKey", businessKey);
runtimeService.createSignalEvent(taskId.trim()).setVariables(variables).send();

Hi,

I don’t think that is currently possible, feel free to open jira ticket or rise a pull request.

Here are two alternatives:

  • Passing the business key from the throwing signal event (1) or
  • Using java delegate to set the business key (2)

(1): https://docs.camunda.org/manual/latest/reference/bpmn20/events/signal-events/#passing-a-business-key
(2): https://docs.camunda.org/manual/latest/user-guide/process-engine/delegation-code/#set-business-key-from-delegation-code

Best regards,
Yana

2 Likes