org.jbpm.pvm.impl
Class ProcessElementImpl

java.lang.Object
  extended by org.jbpm.pvm.impl.ProcessElementImpl
All Implemented Interfaces:
java.io.Serializable, ProcessElement
Direct Known Subclasses:
EventImpl, ObjectReference, ObservableElementImpl

public class ProcessElementImpl
extends java.lang.Object
implements java.io.Serializable, ProcessElement

superclass for NodeImpl, TransitionImpl and ProcessDefinitionImpl.

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  long dbid
           
protected  int dbversion
           
protected  java.util.List<ExceptionHandlerImpl> exceptionHandlers
           
protected  ProcessDefinitionImpl processDefinition
           
protected  WireProperties properties
           
 
Constructor Summary
ProcessElementImpl()
           
 
Method Summary
 void addExceptionHandler(ExceptionHandlerImpl exceptionHandler)
           
 void addProperty(Descriptor descriptor)
           
 ExceptionHandlerImpl createExceptionHandler()
           
 long getDbid()
          the database id.
 java.util.List<ExceptionHandlerImpl> getExceptionHandlers()
          the list of exception handlers that can be tried if an exception occurs in user code that is associated to this process element or a process element inside of this process element.
 ProcessDefinition getProcessDefinition()
          the process definition to which this process element belongs
 WireProperties getProperties()
           
 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.
 void setExceptionHandlers(java.util.List<ExceptionHandlerImpl> exceptionHandlers)
           
 void setProcessDefinition(ProcessDefinitionImpl processDefinition)
           
 void setProperties(WireProperties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dbid

protected long dbid

dbversion

protected int dbversion

processDefinition

protected ProcessDefinitionImpl processDefinition

exceptionHandlers

protected java.util.List<ExceptionHandlerImpl> exceptionHandlers

properties

protected WireProperties properties
Constructor Detail

ProcessElementImpl

public ProcessElementImpl()
Method Detail

createExceptionHandler

public ExceptionHandlerImpl createExceptionHandler()

addExceptionHandler

public void addExceptionHandler(ExceptionHandlerImpl exceptionHandler)

addProperty

public void addProperty(Descriptor descriptor)

getProperty

public java.lang.Object getProperty(java.lang.String key)
Description copied from interface: ProcessElement
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,...

Specified by:
getProperty in interface ProcessElement

getPropertyKeys

public java.util.Set<java.lang.String> getPropertyKeys()
Description copied from interface: ProcessElement
the set of available property keys or an empty set in case there are no keys.

Specified by:
getPropertyKeys in interface ProcessElement

getDbid

public long getDbid()
the database id.

Specified by:
getDbid in interface ProcessElement

getProcessDefinition

public ProcessDefinition getProcessDefinition()
Description copied from interface: ProcessElement
the process definition to which this process element belongs

Specified by:
getProcessDefinition in interface ProcessElement

setProcessDefinition

public void setProcessDefinition(ProcessDefinitionImpl processDefinition)

getProperties

public WireProperties getProperties()

setProperties

public void setProperties(WireProperties properties)

getExceptionHandlers

public java.util.List<ExceptionHandlerImpl> getExceptionHandlers()
Description copied from interface: ProcessElement
the list of exception handlers that can be tried if an exception occurs in user code that is associated to this process element or a process element inside of this process element. Beware: the actual member is returned. No copy is made.

Specified by:
getExceptionHandlers in interface ProcessElement

setExceptionHandlers

public void setExceptionHandlers(java.util.List<ExceptionHandlerImpl> exceptionHandlers)