AnsweredAssumed Answered

Activiti CDI configuration not working with weblogic

Question asked by on May 31, 2013
Latest reply on Jun 4, 2013 by frederikheremans1
I am working on handling the process event.  So starting implementing the activiti CDI for handling events

Below is my configuration :

<bean id="txManager" class="org.springframework.transaction.jta.JtaTransactionManager"/>

  <bean id="processEngineConfiguration" class="org.activiti.cdi.CdiJtaProcessEngineConfiguration">
    <property name="dataSource" ref="dataSource" />
    <property name="databaseSchemaUpdate" value="true" />
    <property name="jobExecutorActivate" value="false" />
    <property name="transactionManager">
           <bean factory-bean="txManager"   factory-method="getTransactionManager" />
      <property name="postBpmnParseHandlers">
                <bean class="org.activiti.cdi.impl.event.CdiEventSupportBpmnParseHandler" />

Created sample class and jared the same to weblogic lib:

public void onProcessEvent(@Observes BusinessProcessEvent businessProcessEvent) {
        // handle event
      System.out.println("business event recieved "+businessProcessEvent.getProcessInstanceId());

now i am creating instance in activiti process and i dont see the events getting trigger or being listened i.e i dont see the SOP in weblogic  console. Please let me know if there is anything i am missing…