Access custom bean in Activiti sequence flow conditionExpression

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

Access custom bean in Activiti sequence flow conditionExpression

I need to do the following in an Activiti workflow conditional sequence flow:

<conditionExpression xsi:type="tFormalExpression"><![CDATA[${mybean.someBooleanFunction()}]]></conditionExpression>

I need assistance in configuring "mybean", as the Activiti Engine does not seem to pick it up.

1 Reply
mdtabrezmca
Established Member II

Re: Access custom bean in Activiti sequence flow conditionExpression

Hi,

   If you are using Spring then you can annotate the bean class with @component("mybean").Or you can use ProcessEngineConfigurationImpl class setBean method if you are using activiti 6 community version.