|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbexee.core.ProcessContext
The ProcessContext contains state information about a very specific process instance. This includes:
ProcessController
to be able to
resume asynchronous process execution. Another optional use of this
information might be a later process execution tracing (e.g. for graphical
representations of an executing or finished process).
The ProcessContext
need to be made persistent for later
retrieval of asynchronous or long-running processes.
Constructor Summary | |
ProcessContext()
Creates a new ProcessContext . |
Method Summary | |
void |
addEvent(Event event)
Add an Event to this ProcessContext . |
Event |
getEvent(Activity activity)
Get an Event for the given Activity . |
java.lang.String |
getId()
Get the id of this ProcessContext . |
BexeeMessage |
getMessage()
Get the current message. |
java.lang.Object |
getResult()
Get the result of this process instance. |
java.util.Map |
getVariable(Variable variable)
Gets the parts associated with a given Variable . |
java.lang.Object |
getVariablePart(Variable variable,
java.lang.String part)
Get a variable part identified by a Variable identifier
and a part name. |
java.util.Set |
getVariablesIdentifiers()
It is possible to retrieve all variable identifiers included in this context (Variable class instances). |
BexeeMessage |
removeMessage()
Remove the current message. |
void |
setId(java.lang.String id)
Set the id of this ProcessContext . |
void |
setMessage(BexeeMessage message)
Set the current message. |
void |
setResult(java.lang.Object result)
Provides a place to store the result of BPEL process instance that has terminated it's execution. |
void |
setVariable(Variable variable,
java.util.Map parts)
Stores the parts of a given Variable . |
void |
setVariablePart(Variable variable,
java.lang.String part,
java.lang.Object value)
Set a variable part identified by a Variable identifier
and a part name. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ProcessContext()
ProcessContext
.
Method Detail |
public java.lang.Object getResult()
public void setResult(java.lang.Object result)
After setting the result this method will call notify()
on
itself to indicate locking threads that the result is available.
public void setMessage(BexeeMessage message)
message
- public BexeeMessage getMessage()
public void setVariable(Variable variable, java.util.Map parts)
Variable
.
variable
- the Variable
that will be used as the keyparts
- a Map
containing the parts associated with the
given Variable
. The part names are used as
keys in the parts Map
.public java.util.Map getVariable(Variable variable)
Variable
.
variable
- the Variable
that will be used as the key
Map
containing the parts associated with the
given Variable
. The part names are used as keys
in the returned Map
.public java.util.Set getVariablesIdentifiers()
Variable
instances.public void setVariablePart(Variable variable, java.lang.String part, java.lang.Object value)
Variable
identifier
and a part name.
variable
- the variable identifierpart
- the part namevalue
- part valuepublic java.lang.Object getVariablePart(Variable variable, java.lang.String part)
Variable
identifier
and a part name.
variable
- the variable identifierpart
- the part name
public BexeeMessage removeMessage()
ProcessContext
at the same time.
public void addEvent(Event event)
ProcessContext
. The
Event
s represent processed activities in bexee. It is
possible to reconstruct states of the process by analyzing those
Event
s.
event
- public Event getEvent(Activity activity)
Event
for the given Activity
.
activity
-
public void setId(java.lang.String id)
ProcessContext
.
id
- public java.lang.String getId()
ProcessContext
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |