org.jboss.seam.contexts
Class BusinessProcessContext

java.lang.Object
  extended by org.jboss.seam.contexts.BusinessProcessContext
All Implemented Interfaces:
Context

public class BusinessProcessContext
extends Object
implements Context

Exposes a jbpm variable context instance for reading/writing.

Author:
Thomas Heute, Steve Ebersole, Gavin King

Constructor Summary
BusinessProcessContext()
           
 
Method Summary
 void clear()
           
 void flush()
          Propagate all additions and removals to the jBPM database if there is a current process instance, or do nothing if there is no current process instance.
 Object get(Class clazz)
          Get a component instance, by its component name, as determined by the @Name annotation value.
 Object get(String name)
          Get a value by name.
 String[] getNames()
          Get all names defined in the context.
 ScopeType getType()
          Get the scope that this context object is associated with,
 boolean isSet(String name)
          Is the value set?
 void remove(String name)
          Unset a value.
 void set(String name, Object value)
          Set a value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BusinessProcessContext

public BusinessProcessContext()
Method Detail

getType

public ScopeType getType()
Description copied from interface: Context
Get the scope that this context object is associated with,

Specified by:
getType in interface Context

get

public Object get(String name)
Description copied from interface: Context
Get a value by name.

Specified by:
get in interface Context

set

public void set(String name,
                Object value)
Description copied from interface: Context
Set a value.

Specified by:
set in interface Context

isSet

public boolean isSet(String name)
Description copied from interface: Context
Is the value set?

Specified by:
isSet in interface Context

remove

public void remove(String name)
Description copied from interface: Context
Unset a value.

Specified by:
remove in interface Context

getNames

public String[] getNames()
Description copied from interface: Context
Get all names defined in the context.

Specified by:
getNames in interface Context

get

public Object get(Class clazz)
Description copied from interface: Context
Get a component instance, by its component name, as determined by the @Name annotation value.

Specified by:
get in interface Context

clear

public void clear()

flush

public void flush()
Propagate all additions and removals to the jBPM database if there is a current process instance, or do nothing if there is no current process instance.

Specified by:
flush in interface Context