cancel
Showing results for 
Search instead for 
Did you mean: 

ServiceTask after usertask ?

nocheinandi
Champ in-the-making
Champ in-the-making
Hallo everyone,

I am using Apache Camel in combination with Activiti. And I like that combination.  I looked at the example in the book "activiti in action" and this example is working very well. Now I have created my own project, which you can see in the attached image.

[img]http://img6.myimg.de/homeandiEntwicklungwork2f8f4.png[/img]

The first service task (Service Task 2) just calls a camel route and afterwards the user task is available. After I fill out the form from the user task I am not able to call the second service task (Service Task 3), which should also call a camel route.

Following error appears:

org.activiti.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'camel'

But(!) I have already used this identifier in the first service task (Service Task 2). Why I am not able to use it in "Service Task 3"?

I also have discovered a similiar error here:

http://forums.activiti.org/en/viewtopic.php?f=6&t=1124&p=4539&hilit=cannot+resolve+identifier#p4539

Any ideas?
5 REPLIES 5

frederikherema1
Star Contributor
Star Contributor
I can't see the image, seems to be broken. Can you show how you configure the camel-bean in activiti?

nocheinandi
Champ in-the-making
Champ in-the-making
I configure the camel bean like that:


<bean id="camel" class="org.activiti.camel.CamelBehaviour">
  <constructor-arg index="0">
   <!– …each BPMN-process can be coupled to a Camel context –>
   <list>
    <bean class="org.activiti.camel.SimpleContextProvider">
     <constructor-arg index="0" value="UnterschriftProzessID" />
     <constructor-arg index="1" ref="camelProcess" />
    </bean>
   </list>
  </constructor-arg>
</bean>

frederikherema1
Star Contributor
Star Contributor
Are you starting the process from Activiti Explorer and afterwards completing the task in Activiti Explorer? Because the explorer-webapp doesn't load retina a full spring-context, just extracts the processEngine bean from it and uses that…

nocheinandi
Champ in-the-making
Champ in-the-making
I start the process via camel und then complete the first task in the Activiti Explorer.

Is it possible to load a full spring-context into this explorer-webapp?

frederikherema1
Star Contributor
Star Contributor
Take a look at org.activiti.explorer.servlet.ExplorerApplicationServlet. This is the servlet that boots the application-conytext for the explorer-webapp. Looks like I was mistaken, the explorer web app does load the full context. However, this is the one that contains activiti (/activiti-webapp-explorer2/src/main/webapp/WEB-INF/applicationContext.xml, default name for using org.springframework.web.context.ContextLoaderListener).

You'll have to edit the file en import your beans-xml into the activiti beans definition.