Package org.kie.api.runtime.process
Interface EventListener
-
- All Known Subinterfaces:
ProcessInstance
,WorkflowProcessInstance
public interface EventListener
An interface that represents an element that is listening for specific types of events.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String[]
getEventTypes()
Returns the event types this event listener is interested in.void
signalEvent(String type, Object event)
Signals that an event has occurred.
-
-
-
Method Detail
-
signalEvent
void signalEvent(String type, Object event)
Signals that an event has occurred. The type parameter defines which type of event and the event parameter can contain additional information related to the event.- Parameters:
type
- the type of eventevent
- the data associated with this event
-
getEventTypes
String[] getEventTypes()
Returns the event types this event listener is interested in. May returnnull
if the event types are unknown.
-
-