com.groiss.event
Interface IEventHandler

All Known Implementing Classes:
EventHandler, ExceptionHandlingCompletedHandler

public interface IEventHandler

Interface for event handler.


Method Summary
 boolean handle(Event e, ProcessInstance handlerProc, EventRegistry reg)
          The handle method is called when an event is raised and a handler has been registered.
 boolean onRegister(ProcessInstance handlerProc)
          This method is called when you register this handler.
 void onUnregister(EventRegistry reg)
          This method is called when the handler is unregistered.
 

Method Detail

handle

boolean handle(Event e,
               ProcessInstance handlerProc,
               EventRegistry reg)
The handle method is called when an event is raised and a handler has been registered. The return value is used only in "sync" event handlers, where returning true immediatly finishs the activity and ungegisters the handler.

Parameters:
e - the raised event
handlerProc - the process instance which has registered for the event.
reg - the event registry entry
Returns:
this implementation returns true

onRegister

boolean onRegister(ProcessInstance handlerProc)
This method is called when you register this handler.

Parameters:
handlerProc - the process instance which is registring

onUnregister

void onUnregister(EventRegistry reg)
This method is called when the handler is unregistered.

Parameters:
reg -


@enterprise 8.0.22989 Copyright © 2001-2017 Groiss Informatics GmbH. All Rights Reserved.