Access custom bean in Activiti sequence flow conditionExpression

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-03-2018 08:57 AM
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.
Labels:
- Labels:
-
Alfresco Process Services
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2018 05:40 AM
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.
