06-18-2012 02:44 PM
06-19-2012 12:42 AM
public class CustomBpmnParseListener implements BpmnParseListener {
// …
@Override
public void parseUserTask(Element userTaskElement, ScopeImpl scope, ActivityImpl activity) {
activity.addExecutionListener(ExecutionListener.EVENTNAME_CREATE, new MyHandler());
}
}
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
<bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration">
<property name="customPostBPMNParseListeners">
<list>
<bean class="my.company.activiti.CustomBpmnParseListener" />
</list>
</property>
</bean>
</beans>
06-19-2012 10:23 AM
06-19-2012 11:43 AM
06-19-2012 01:37 PM
06-22-2012 12:35 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.