cancel
Showing results for 
Search instead for 
Did you mean: 

delegateExpression call an ejb from another ear

kroninho
Champ in-the-making
Champ in-the-making

Hi everyone, i am pretty new in the topic activiti. I have two ears on a jboss AS 7.

The first ear includes the activiti 5.22 engine. I create the engine with the activiti.cfg.xml

In my process configuration I had the entry

<serviceTask id="my_task" name="My Task" activiti:delegateExpression="${myTask}"></serviceTask>

The process should call an EJB from the second ear. When I deploy it to my server and start the process i get an exception:

PropertyNotFoundException: Cannot resolve identifier 'myTask'

I don´t use the spring way to announce the bean.

How can I use the MyTask EJB?

I attached the files.

The IMyTask is a empty RemoteInterface.

It would be nice if you could help me.

2 REPLIES 2

ryandawson
Elite Collaborator
Elite Collaborator

Are you using CDI integration (Activiti User Guide )? Or are you using spring like Tutorial: call an EJB in a BPMN 2.0 process using Activiti and Spring | Small steps with big feet  ? I think one or the other would be needed for the expression to work - see   . 

kroninho
Champ in-the-making
Champ in-the-making

Ok, thank you.

I add a <jee:remote-slsb> in my activity.cfg.xml and now it works.