limcheekin/activiti — pull request #16 by flashcloud (2013-07-20 06:19:30+00:00)
Title: Support define yourself TaskListener and BpmnParseListener

## define pre. BPMN parse listeners:
1. define BPMN parse. litener beans name in grails app **conf/config.groovy**:
> preParseBpmnListenersName = ['preParseBpmnListener1', 'preParseBpmnListener2'\]

2. define BPMN parse litener beans in grails app **conf/spring/resources.groovy**
> preParseBpmnListener1(MyPreParseBpmnListener1)
preParseBpmnListener2(MyPreParseBpmnListener2)

## define user task event listeners:
1. define user task event litener beans name in grails app **conf/config.groovy**:

> globalCreateTaskListenersName = ["myCreateTaskListener1", "myCreateTaskListener2"\]
globalAssignmentTaskListenersName = ["myAssignmentTaskListener1", "myAssignmentTaskListener2"\]
globalCompleteTaskListenersName = ["myCompleteTaskListener1", "myCompleteTaskListener2"\]
2. define user task event litener beans in grails app **conf/spring/resources.groovy**:
> myCreateTaskListener1(MyCreateTaskListener1)
myCreateTaskListener2(MyCreateTaskListener2)
myAssignmentTaskListener1(MyAssignmentTaskListener1Service)
...