AnsweredAssumed Answered

activiti-camel and receivetask question-Business key is null

Question asked by labo on Mar 13, 2012
Latest reply on Aug 18, 2013 by chakri_7
Hello together,

I am trying to setup an activiti-camel example with following steps.

Start - ServiceTask(JavaDelegate) - ServiceTask(Camel) - ReceiveTask(From Camel) - ServiceTask(JavaDelegate) - End

but I failed at the received Task with

Exhausted after delivery attempt:
1 caught: org.activiti.engine.ActivitiException: Business key is null
org.activiti.engine.ActivitiException: Business key is null
        at org.activiti.engine.impl.ProcessInstanceQueryImpl.processInstanceBusinessKey(ProcessInstanceQueryImpl.java:84)[activiti-engine-5.9.jar:5.9]

My Camel Route looks like:

a) to start Process
      
from("timer://foo?fixedRate=true&period=30000")
       .to("activemq:in.create");

b) to trigger camel from activiti
   
    from("activiti:TestActivitiCamelProcess:camelRide")
          .to("log:BeginCamelRide?showHeaders=true");

c) to trigger receive task
   
from("file://inbox?delete=true")
       .to("log:inbox?showHeaders=true")
       .to("activiti:TestActivitiCamelProcess:camelRideInbox");


What kind of information do I have to pass to the receive task to get it up and running ?

Note: without receive task everything works as expected

Thanks
labo

Outcomes