org.jbpm.api.model
Interface ObservableElement

All Known Subinterfaces:
Activity, ClientProcessDefinition, CompositeElement, OpenProcessDefinition, Transition

public interface ObservableElement

a super class for process elements that have events.

Author:
Tom Baeyens

Method Summary
 long getDbid()
          the meaningless database primary key
 java.lang.String getName()
          the short display name given to this element.
 ObservableElement getParent()
          the enclosing activity or the process definition
 OpenProcessDefinition getProcessDefinition()
          the process definition to which this process element belongs
 java.lang.Object getProperty(java.lang.String key)
          the property value for the given key or null if no such configuration key is present.
 java.util.Set<java.lang.String> getPropertyKeys()
          the set of available property keys or an empty set in case there are no keys.
 boolean hasEvent(java.lang.String eventName)
          indicates if the given event is defined no this element.
 

Method Detail

getDbid

long getDbid()
the meaningless database primary key


getName

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


getProcessDefinition

OpenProcessDefinition getProcessDefinition()
the process definition to which this process element belongs


getProperty

java.lang.Object getProperty(java.lang.String key)
the property value for the given key or null if no such configuration key is present. This is extra static configuration information that can be associated to a process element. Process languages can use this to store configuration properties for extensions in it. That way, these extensions can be added without changing the process model or the database schema. Examples of extensions that may use these configuration properties are simulation, predictive scheduling, graphical information,...


getPropertyKeys

java.util.Set<java.lang.String> getPropertyKeys()
the set of available property keys or an empty set in case there are no keys.


hasEvent

boolean hasEvent(java.lang.String eventName)
indicates if the given event is defined no this element. This method only looks in this observable element and it will not search the parent hierarchy for the given event.


getParent

ObservableElement getParent()
the enclosing activity or the process definition



Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.