delegateExpression call an ejb from another ear

cancel
Showing results for 
Search instead for 
Did you mean: 
kroninho
Member II

delegateExpression call an ejb from another ear

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
ryandawson
Alfresco Employee

Re: delegateExpression call an ejb from another ear

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
Member II

Re: delegateExpression call an ejb from another ear

Ok, thank you.

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