cancel
Showing results for 
Search instead for 
Did you mean: 

BpmnParseHandler setup

logic3
Champ in-the-making
Champ in-the-making
Hi,

I have a project that generate events for a process like the HistoryParseListener class. http://svn.codehaus.org/activiti/activiti/trunk/modules/activitiengine/src/main/java/org/activiti/en....

and the following goes in the applicationContext.xml file
<property name="customPostBPMNParseListeners">
      <list>
        <bean class="org.handler.ParseListener"></bean>
      </list>
    </property>

Basically, I am interested in the events related to usertasks and service tasks in a business process.
Now I have to upgrade the project to Activiti 5.12 and I Believe that I can no longer use the above approach. Instead I have to use the BpmnParseHandler class. I have look into the user guide but could not understand it.

could some one please help me and give me some information  about how to use the BpmnParseHandler class (any example).

thanks,
3 REPLIES 3

logic3
Champ in-the-making
Champ in-the-making
Sorry the following code didn't appear above
<code><property name="customPostBPMNParseListeners">
      <list>
        <bean class="org.handler.ParseListener"></bean>
      </list>
    </property></code>

Also, Is the history mechanism in Activiti 5.12 is implemented with the new BPMNparsehandler ?

jbarrez
Star Contributor
Star Contributor
> Also, Is the history mechanism in Activiti 5.12 is implemented with the new BPMNparsehandler ?

Yes. See https://github.com/Activiti/Activiti/tree/master/modules/activiti-engine/src/main/java/org/activiti/... for some examples.

Regarding the history, see https://github.com/Activiti/Activiti/tree/master/modules/activiti-engine/src/main/java/org/activiti/...

jbarrez
Star Contributor
Star Contributor
And to add to that: the old parse listener should be easily ported to the parse handler. Most of the code should be exactly the same.