org.jbpm.process.core.event
Class BroadcastEventTypeFilter
java.lang.Object
org.jbpm.process.core.event.EventTypeFilter
org.jbpm.process.core.event.BroadcastEventTypeFilter
- All Implemented Interfaces:
- Serializable, EventFilter
public class BroadcastEventTypeFilter
- extends EventTypeFilter
This event type filter adds "broadcast" functionality that's necessary for compensation.
Compensation can be triggered in at least two ways:
1. A targeted compensate event.
2. A "general" compensate event, for example, when a cancel signal is sent.
In order to accomodate the second case, this class reacts to signals that begin with a "base" string as well as targeted signal
names.
For example, it will react to:
- "Compensate-" as the base string
- and something like "Compensate-SubProcess_1" as the type string.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
base
protected String base
BroadcastEventTypeFilter
public BroadcastEventTypeFilter()
setType
public void setType(String broadcastPrefix)
- Overrides:
setType
in class EventTypeFilter
setType
public void setType(String broadcastPrefix,
String specificSuffix)
acceptsEvent
public boolean acceptsEvent(String type,
Object event)
- Specified by:
acceptsEvent
in interface EventFilter
- Overrides:
acceptsEvent
in class EventTypeFilter
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.