cancel
Showing results for 
Search instead for 
Did you mean: 

Access custom bean in Activiti sequence flow conditionExpression

gert
Champ in-the-making
Champ in-the-making

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 1

mdtabrezmca
Star Contributor
Star Contributor

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.