Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Event handler is not executed

Hi, i have developed what I think is the simplest Event Handler and I am
not able to see it executing.... I can see it in the Process
Configuration Editor and I activate it usage.

Here is the plug-in.xml fragment:

<plugin>
<extension>
<eventHandler>
</eventHandler>
</extension>
</plugin>

and this is the dummy implementation:

public class ChangeEventHandler implements IChangeEventHandler
{
public void handleEvent(IChangeEvent event,
IProcessConfigurationElement handlerConfiguration) throws
TeamRepositoryException
{
System.out.println("Ejecutando Event Handler...");
}
}

I activate it usage from Process Editor at Work Item State Changed Event.

Then, I change the state of a existing WI, save it, but nothing happens
in the console... I read somewhere in this same newsgroup that I should
wait around 25 seconds but... nothing.

Any idea or tip about what to look for?

Thanks in advance,

Chemi.

0 votes



One answer

Permanent link
I have create a followup event plug:

<plugin>
<extension>
<eventHandler>
<extensionService>
<prerequisites>
<requiredService>
<requiredService>
<requiredService>
</prerequisites>
</extensionService>
</eventHandler>
</extension>

</plugin>


and code

public class evento extends AbstractService implements IChangeEventHandler {
private IProcessConfigurationElement fConfigurationElement;
private IProjectArea fProjectArea;
private IProcessArea fProcessArea;

@Override
public void handleEvent(IChangeEvent event,
IProcessConfigurationElement handlerConfiguration)
throws TeamRepositoryException {
// TODO Auto-generated method stub


fProcessArea = (IProcessArea) event.getProcessArea();


}

}

but in runtime don't execute the code

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,949

Question asked: Nov 23 '09, 6:53 a.m.

Question was seen: 5,209 times

Last updated: Nov 23 '09, 6:53 a.m.

Confirmation Cancel Confirm