08-20-2014 01:46 PM
public class ParseHandlerEndListener extends ProcessParseHandler {
@Override
protected void executeParse(BpmnParse bpmnParse, Process process) {
ActivitiListener endEventListener = new ActivitiListener();
endEventListener.setEvent(ExecutionListener.EVENTNAME_END);
endEventListener.setImplementation(MyListener.class.getName());
endEventListener.setImplementationType(ImplementationType.IMPLEMENTATION_TYPE_CLASS);
process.setExecutionListeners(Arrays.asList(endEventListener));
}
}
<bean
id="processEngineConfiguration"
class="org.activiti.cdi.CdiJtaProcessEngineConfiguration">
…
<property name="postBpmnParseHandlers">
<list>
<bean class="com.mycompany.ParseHandlerEndListener" />
</list>
</property>
</bean>
@Named
public class MyListener implements ExecutionListener {
private static final long serialVersionUID = 1L;
@Override
public void notify(DelegateExecution execution) throws Exception {
// listener code
}
}
<process
id="cushman-reembolso-fretado"
name="Reembolso fretado"
isExecutable="true">
<extensionElements>
<activiti:executionListener
class="br.com.glr.workflow.activiti.impl.NotificaProcessoConcluidoActiviti"
event="end" />
</extensionElements>
….
</process>
06-10-2016 02:47 PM
08-21-2014 09:26 AM
08-21-2014 10:03 AM
01-19-2015 01:09 PM
01-21-2015 08:21 AM
06-10-2016 02:47 PM
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.