how to configure event handler in process configuration
I'm implementing a new event handler. As an example I look at the CreateVerifyTask.java of the com.ibm.team.workitem.service plug-in. According to this example, to enable an event handler one should insert the corresponding <event> element into the process specification. The example of the <event> element syntax was as follows:
<event>
<handlers>
<handler>
...
</handler>
</handlers>
</event>
However, it seems that the process configuration schema has been changed since writing this example. Instead of <event> element the <change> element is expected, which doesn't contain <handlers> element. Instead, <followup> element is expected under the <change>.
I'm using Beta2a version of Jazz.
Should I specify my event handler as a followup action? Or, may be event handlers are no longer supported and followup actions (former participants) should be implemented instead?
<event>
<handlers>
<handler>
...
</handler>
</handlers>
</event>
However, it seems that the process configuration schema has been changed since writing this example. Instead of <event> element the <change> element is expected, which doesn't contain <handlers> element. Instead, <followup> element is expected under the <change>.
I'm using Beta2a version of Jazz.
Should I specify my event handler as a followup action? Or, may be event handlers are no longer supported and followup actions (former participants) should be implemented instead?
2 answers
Event handlers are still supported. We unified the concepts for
operations and events. Both now support follow-up actions. Here is what
an event handler specification looks like inside the behavior node:
<change>
<followup>
<followup>
.....
</followup>
</followup>
</change>
Kai
Jazz Process Team
kofman wrote:
operations and events. Both now support follow-up actions. Here is what
an event handler specification looks like inside the behavior node:
<change>
<followup>
<followup>
.....
</followup>
</followup>
</change>
Kai
Jazz Process Team
kofman wrote:
I'm implementing a new event handler. As an example I look at the
CreateVerifyTask.java of the com.ibm.team.workitem.service plug-in.
According to this example, to enable an event handler one should
insert the corresponding <event> element into the process
specification. The example of the <event> element syntax was as
follows:
event
handlers
handler
...
/handler
/handlers
/event
However, it seems that the process configuration schema has been
changed since writing this example. Instead of <event> element
the <change> element is expected, which doesn't contain
handlers> element. Instead, <followup> element is
expected under the <change>.
I'm using Beta2a version of Jazz.
Should I specify my event handler as a followup action? Or, may be
event handlers are no longer supported and followup actions (former
participants) should be implemented instead?