cancel
Showing results for 
Search instead for 
Did you mean: 

Camel routes in activiti: Business key is null

chakri_7
Champ in-the-making
Champ in-the-making
Hi

I am trying out to work with example at link

http://bpmn20inaction.blogspot.in/2013/03/using-camel-routes-in-activiti-made.html

But received error : ERROR|org.slf4j.helpers.MarkerIgnoringBase:161||||>> Failed delivery for (MessageId: ID-viscx73-PC-49557-1376961951564-0-1 on ExchangeId: ID-viscx73-PC-49557-1376961951564-0-2). Exhausted after delivery attempt: 1 caught: org.activiti.engine.ActivitiIllegalArgumentException: Business key is null
org.activiti.engine.ActivitiIllegalArgumentException: Business key is null
   at org.activiti.engine.impl.ProcessInstanceQueryImpl.processInstanceBusinessKey(ProcessInstanceQueryImpl.java:87)
   at org.activiti.camel.ActivitiProducer.findProcessInstanceId(ActivitiProducer.java:78)
   at org.activiti.camel.ActivitiProducer.signal(ActivitiProducer.java:58)

Full error description is at link:

http://stackoverflow.com/questions/18312701/activiti-from-camel-receive-task-throws-error-activitiil...

Please provide suggestions

3 REPLIES 3

chakri_7
Champ in-the-making
Champ in-the-making
Hi

It worked by adding inbuilt camel queues as shown in the example. I thought they were just shown as example for various routes. But by passing to queue actually the ServiceTask was made asynchronous in camel and later from queue they were read and invoked the receive task in activiti

    <camel:to uri="seda:tempQueue"/>
    <camel:from uri="seda:tempQueue"/>

Thanks

sagarsharma134
Champ in-the-making
Champ in-the-making
I am facing the similar problem too.Below is my detailed post. Any help would be great.
http://stackoverflow.com/questions/25672857/business-key-is-null-exception-while-using-activiti-and-...

Thank you

trademak
Star Contributor
Star Contributor
Thanks for your detailed stackoverflow post, but would it be possible to create a unit test so we can reproduce it easily?

Best regards,