Business Key for Timer Start Event

Hi,

I have a timer start event which is scheduled to run after every 24 hours.

It is running fine but business key is null when i checked the cockpit.

How to generate the business key in such case??

Thanks
Pawan Pandey

What do you intend to do with the business key and does it relate to another system in any way?

At later point of time I have to find the particular process instance using business key.

How do you generate business keys for other processes?

For other BPMN we simply use startProcessInstanceByKey(String processDefinitionKey, String businessKey, Map<String, Object> variables);

But this particular case is a scheduler event starting the BPMN which runs after every 24 hours.We have used crown expression for this in BPMN.

Hi @Pawan_Pandey,

you can set the business key in a java delegate or execution listener: Delegation Code | docs.camunda.org

Hope this helps, Ingo

2 Likes

Can i set it inside external task??

Hi @Pawan_Pandey,

no, currently not. Feel free to open a feature request in our Jira system: camunda-bpm-platform/CONTRIBUTING.md at master · camunda/camunda-bpm-platform · GitHub.

Hope this helps, Ingo