org.jbpm.pvm
Interface ObservableElement

All Superinterfaces:
ProcessElement, java.io.Serializable
All Known Subinterfaces:
CompositeElement, Node, ProcessDefinition, Transition
All Known Implementing Classes:
CompositeElementImpl, NodeImpl, ObservableElementImpl, ProcessDefinitionImpl, ProcessModificationsImpl.AddedNode, ProcessModificationsImpl.AddedTransition, TransitionImpl

public interface ObservableElement
extends ProcessElement

a super class for process elements that have events.

Author:
Tom Baeyens

Method Summary
 java.lang.String getDescription()
          the long description.
 Event getEvent(java.lang.String eventName)
          listeners for a specific event.
 java.util.Map<java.lang.String,Event> getEvents()
          listeners, partitioned by event name.
 java.lang.String getName()
          the short display name given to this element.
 ObservableElement getParent()
          by default, this implementation returns null, but this is overwritten in Node and Transition to represent the parent in the hierarchical structure of the process.
 boolean hasEvent(java.lang.String eventName)
          check for presence of a given eventName.
 
Methods inherited from interface org.jbpm.pvm.ProcessElement
getDbid, getExceptionHandlers, getProcessDefinition, getProperty, getPropertyKeys
 

Method Detail

getName

java.lang.String getName()
the short display name given to this element.


getDescription

java.lang.String getDescription()
the long description.


getParent

ObservableElement getParent()
by default, this implementation returns null, but this is overwritten in Node and Transition to represent the parent in the hierarchical structure of the process. This hierarchical structure is used for event propagation.


getEvents

java.util.Map<java.lang.String,Event> getEvents()
listeners, partitioned by event name. Beware: the actual member is returned. No copy is made.


getEvent

Event getEvent(java.lang.String eventName)
listeners for a specific event.


hasEvent

boolean hasEvent(java.lang.String eventName)
check for presence of a given eventName.