cancel
Showing results for 
Search instead for 
Did you mean: 

Problem in Parallel process

santharamselva
Champ in-the-making
Champ in-the-making
Hi,
    I have Followed all the steps in the http://bpmn20inaction.blogspot.in/2012/12/implement-parallel-execution-in-activiti.html to achieve parallel service task process. But I got the following error message when starting the process. Please tell me if I miss any thing. I am running application using activiti-explorer 5.11 with activiti 5.11 jars.


Caused by: java.lang.RuntimeException: Activiti endpoint not defined for activiti://asyncCamelProcess:serviceTaskAsync1
        at org.activiti.camel.CamelBehaviour.getEndpoint(CamelBehaviour.java:57) [activiti-camel-5.11.jar:5.11]
        at org.activiti.camel.CamelBehaviour.createEndpoint(CamelBehaviour.java:48) [activiti-camel-5.11.jar:5.11]
        at org.activiti.camel.CamelBehaviour.execute(CamelBehaviour.java:37) [activiti-camel-5.11.jar:5.11]
        at org.activiti.engine.impl.delegate.ActivityBehaviorInvocation.invoke(ActivityBehaviorInvocation.java:34) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.delegate.DelegateInvocation.proceed(DelegateInvocation.java:37) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.delegate.DefaultDelegateInterceptor.handleInvocation(DefaultDelegateInterceptor.java:25) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.ServiceTaskDelegateExpressionActivityBehavior.execute(ServiceTaskDelegateExpressionActivityBehavior.java:69) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:65) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:115) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:36) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:370) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.OutgoingExecution.take(OutgoingExecution.java:44) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.takeAll(ExecutionEntity.java:504) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.ParallelGatewayActivityBehavior.execute(ParallelGatewayActivityBehavior.java:73) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:65) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:115) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:36) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:370) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:102) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:51) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.AbstractBpmnActivityBehavior.leave(AbstractBpmnActivityBehavior.java:47) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.ServiceTaskJavaDelegateActivityBehavior.execute(ServiceTaskJavaDelegateActivityBehavior.java:41) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.helper.ClassDelegate.execute(ClassDelegate.java:115) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerStart.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerStart.java:52) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionCreateScope.execute(AtomicOperationTransitionCreateScope.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerTake.execute(AtomicOperationTransitionNotifyListenerTake.java:65) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionDestroyScope.execute(AtomicOperationTransitionDestroyScope.java:115) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationTransitionNotifyListenerEnd.eventNotificationsCompleted(AtomicOperationTransitionNotifyListenerEnd.java:36) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:49) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.take(ExecutionEntity.java:370) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performOutgoingBehavior(BpmnActivityBehavior.java:102) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.BpmnActivityBehavior.performDefaultOutgoingBehavior(BpmnActivityBehavior.java:51) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.leave(FlowNodeActivityBehavior.java:44) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.bpmn.behavior.FlowNodeActivityBehavior.execute(FlowNodeActivityBehavior.java:36) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationActivityExecute.execute(AtomicOperationActivityExecute.java:44) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStartInitial.eventNotificationsCompleted(AtomicOperationProcessStartInitial.java:46) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AtomicOperationProcessStart.eventNotificationsCompleted(AtomicOperationProcessStart.java:45) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.pvm.runtime.AbstractEventAtomicOperation.execute(AbstractEventAtomicOperation.java:56) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContext.performOperation(CommandContext.java:85) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperationSync(ExecutionEntity.java:535) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.performOperation(ExecutionEntity.java:530) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.persistence.entity.ExecutionEntity.start(ExecutionEntity.java:325) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:80) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.cmd.StartProcessInstanceCmd.execute(StartProcessInstanceCmd.java:33) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandExecutorImpl.execute(CommandExecutorImpl.java:24) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.interceptor.CommandContextInterceptor.execute(CommandContextInterceptor.java:60) [activiti-engine-5.11.jar:5.11]
        at org.activiti.spring.SpringTransactionInterceptor$1.doInTransaction(SpringTransactionInterceptor.java:42) [activiti-spring-5.11.jar:]
        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130) [spring-tx-3.1.2.RELEASE.jar:3.1.2.RELEASE]
        at org.activiti.spring.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:40) [activiti-spring-5.11.jar:]
        at org.activiti.engine.impl.interceptor.LogInterceptor.execute(LogInterceptor.java:32) [activiti-engine-5.11.jar:5.11]
        at org.activiti.engine.impl.RuntimeServiceImpl.startProcessInstanceById(RuntimeServiceImpl.java:67) [activiti-engine-5.11.jar:5.11]
        at org.activiti.explorer.ui.process.listener.StartProcessInstanceClickListener.buttonClick(StartProcessInstanceClickListener.java:71) [activiti-explorer-5.11.jar:]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_32]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_32]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_32]
        at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_32]
        at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:490) [vaadin-6.6.2.jar:6.6.2]
        … 23 more


   One more doubt, in this case instead of service task , is it possible to use call activiti?

Thanks,
s.selvakumar
7 REPLIES 7

trademak
Star Contributor
Star Contributor
Hi,

It's a bit difficult to say without the Activiti and Camel context XML files.
Can you include them?

Best regards,

santharamselva
Champ in-the-making
Champ in-the-making
Hi,

  Thanks for your reply.

  Actually I didn't have any separate Activiti and Camel context XML files. Because, I am using the activiti-explorer web application to test the activiti. In that I have configured
applicationContext.xml
like below. After I configured like below I could see the message like Apache Camel 2.10.0 (CamelContext: camelProcess) started in 0.188 seconds

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context"
xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:tx="http://www.springframework.org/schema/tx" xmlns:jee="http://www.springframework.org/schema/jee"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
       http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.xsd
       http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.1.xsd
       http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-3.1.xsd
    http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd">
      
  <import resource="activiti-standalone-context.xml" />
  <import resource="activiti-ui-context.xml" />
 
   <camelContext id="camelProcess" xmlns="http://camel.apache.org/schema/spring">
  <packageScan>
    <package>org.activiti.camel.route</package>
  </packageScan>
</camelContext>

<bean id="camel" class="org.activiti.camel.CamelBehaviour">
  <constructor-arg index="0">
    <list>
      <bean class="org.activiti.camel.SimpleContextProvider">
        <constructor-arg index="0" value="asyncCamelProcess"/>
        <constructor-arg index="1" ref="camelProcess"/>
      </bean>
    </list>
  </constructor-arg>
</bean>
   
    <bean id="sleepBean" class="org.activiti.camel.SleepBean"/>
 
</beans>

trademak
Star Contributor
Star Contributor
Okay, and did you also include the Camel route classes in the classpath of the Activiti Explorer web application?
With your configuration it scans for routes in this package:

<package>org.activiti.camel.route</package>

Are there routes available in that package?

Best regards,

santharamselva
Champ in-the-making
Champ in-the-making
Hi,

  Yes, I have downloaded same example source codes to my project and made as jar and put it in WEB/INF/lib/ folder in activiti-explorer


Thanks,
s.selvakumar

Hi,

Can I get the same source code please? I am also trying same example but getting errors.

Thanks,
Kanchan

trademak
Star Contributor
Star Contributor
In the article there's the following line:

" If you want to test a bit with this example yourself you can checkout the activiti-camel module in our Github repository and execute the AsyncProcessTest in that project."  Doesn't that work for you?

new1
Champ in-the-making
Champ in-the-making
         I tried the same example but it does not work. My serviceTask has extensionElement of activiti:field. Also before adding camel, I had acitiviti:Class with a deletage class. So I also need my service task to execute some code in the delegate class. Here is an excerpt from my bpmn file
<serviceTask id="comb-rgb" name="combineimages2rgb" activiti:async="true" activiti:exclusive="false" activiti:type="camel">
          <extensionElements>
            <activiti:field name="ipField">
              <activiti:string><![CDATA[-ImageOut,-ImageR,-ImageG,-ImageB]]></activiti:string>
            </activiti:field>
</extensionElements>
        </serviceTask>

My routes code

public class AsyncCamelRoute extends RouteBuilder{
@Override
  public void configure() throws Exception {
  
  
  from("activiti:emetricsAlgParallel:receiveParamFileSubProc?copyVariablesToProperties=true")
     .setHeader("destination", constant("activiti:emetricsAlgParallel:receive1"))
     .to("seda:asyncQueue1");
  
   from("seda:asyncQueue1")
   .to("bean:sparky?method=execute")
      .to("seda:receiveQueue");
  
   from("activiti:emetricsAlgParallel:receiveImageFileSubProc?copyVariablesToProperties=true")
     .setHeader("destination", constant("activceimniti:emetricsAlgParallel:receive2"))
     .to("seda:asyncQueue2");

   from("seda:asyncQueue2")
   .to("bean:sparky?method=execute")
     .to("seda:receiveQueue");


Now I get the following error

Field definition uses unexisting field 'ipField' on class org.activiti.camel.impl.CamelBehaviorDefaultImpl