AnsweredAssumed Answered

activiti-osgi BluePrintELResolver and activiti:expression

Question asked by workflowuser2 on Jul 14, 2012
Latest reply on Jul 18, 2012 by workflowuser2
Hi,

I have two bundles:
activiti-osgi-karaf that starts process engine, listen for JavaDelegates (ref. Activiti In Action).
activiti-osgi-process: contains process .bpmn20.xml files and java delegates

I am using BluePrintELResolver to resolve OSGi reference of JavaDelegates using the syntax:
<serviceTask id="foo" activiti:delegateExpression=${javaDelegateService} />

The above works (as explained in Activiti In Action book)

I would like to define a bean (not an OSGi service) in the activiti-osgi-process blueprint context xml file:
  <bean id="greetingsBean"
      class="com.dell.pg.merlin.workflow.applyprofile.GreetingsBean" />


I would like to be able to call a particular method on this bean.
In other words, I would want the following to work in the process Service Task definition:
activiti:expression=#{greetingsBean.getFoo()}

However, I am getting error that greetingsBean property could not be resolved.

Do I need to chain another ELResolver to resolve beans in the blueprint context? BlueprintELResolver seems to be resolving only JavaDelegates.

Any help is greatly appreciated.

thanks
activiti-newbie

Outcomes