org.jbpm.pvm.internal.model
Class ScopeInstanceImpl
java.lang.Object
org.jbpm.pvm.internal.model.ScopeInstanceImpl
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- ExecutionImpl, TaskImpl
public class ScopeInstanceImpl
- extends java.lang.Object
- implements java.io.Serializable
- Author:
- Tom Baeyens
- See Also:
- Serialized Form
|
Method Summary |
TimerImpl |
createTimer()
|
TimerImpl |
createTimer(TimerDefinitionImpl timerDefinition)
|
void |
createVariable(java.lang.String key,
java.lang.Object value)
|
void |
createVariable(java.lang.String key,
java.lang.Object value,
java.lang.String typeName,
boolean isHistoryEnabled)
|
protected Variable |
createVariableObject(java.lang.String key,
java.lang.Object value,
java.lang.String typeName,
boolean isHistoryEnabled)
|
protected void |
destroyTimers(CompositeElementImpl scope)
|
long |
getDbid()
|
java.lang.Object |
getElContext()
|
ExecutionImpl |
getExecution()
|
ScopeInstanceImpl |
getParentVariableScope()
|
java.lang.String |
getState()
|
TaskImpl |
getTask()
|
ExecutionImpl |
getTimerExecution()
|
java.lang.Object |
getVariable(java.lang.String key)
|
java.util.Set<java.lang.String> |
getVariableKeys()
|
Variable |
getVariableObject(java.lang.String key)
|
java.util.Map<java.lang.String,java.lang.Object> |
getVariables()
|
boolean |
hasVariable(java.lang.String key)
|
boolean |
hasVariables()
|
protected void |
initializeTimers(ScopeElementImpl scope)
|
protected void |
initializeVariables(ScopeElementImpl scope,
ExecutionImpl outerExecution)
|
boolean |
isActive()
|
boolean |
isSuspended()
|
protected TimerImpl |
newTimer()
|
boolean |
removeVariable(java.lang.String key)
|
void |
removeVariables()
|
void |
resume()
|
void |
setElContext(java.lang.Object elContext)
|
void |
setState(java.lang.String state)
|
void |
setVariable(java.lang.String key,
java.lang.Object value)
|
void |
setVariables(java.util.Map<java.lang.String,?> variables)
|
void |
suspend()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dbid
protected long dbid
dbversion
protected int dbversion
hasVariables
protected boolean hasVariables
variables
protected java.util.Map<java.lang.String,Variable> variables
state
protected java.lang.String state
suspendHistoryState
protected java.lang.String suspendHistoryState
elContext
protected transient java.lang.Object elContext
Expressions can cache the elContext for this execution here
ScopeInstanceImpl
public ScopeInstanceImpl()
initializeVariables
protected void initializeVariables(ScopeElementImpl scope,
ExecutionImpl outerExecution)
createVariable
public void createVariable(java.lang.String key,
java.lang.Object value)
createVariable
public void createVariable(java.lang.String key,
java.lang.Object value,
java.lang.String typeName,
boolean isHistoryEnabled)
createVariableObject
protected Variable createVariableObject(java.lang.String key,
java.lang.Object value,
java.lang.String typeName,
boolean isHistoryEnabled)
setVariable
public void setVariable(java.lang.String key,
java.lang.Object value)
setVariables
public void setVariables(java.util.Map<java.lang.String,?> variables)
getVariable
public java.lang.Object getVariable(java.lang.String key)
getVariableObject
public Variable getVariableObject(java.lang.String key)
hasVariable
public boolean hasVariable(java.lang.String key)
getVariableKeys
public java.util.Set<java.lang.String> getVariableKeys()
getVariables
public java.util.Map<java.lang.String,java.lang.Object> getVariables()
hasVariables
public boolean hasVariables()
removeVariable
public boolean removeVariable(java.lang.String key)
removeVariables
public void removeVariables()
newTimer
protected TimerImpl newTimer()
createTimer
public TimerImpl createTimer()
createTimer
public TimerImpl createTimer(TimerDefinitionImpl timerDefinition)
initializeTimers
protected void initializeTimers(ScopeElementImpl scope)
destroyTimers
protected void destroyTimers(CompositeElementImpl scope)
suspend
public void suspend()
- See Also:
Execution#suspend()
resume
public void resume()
- See Also:
Execution#resume()
setState
public void setState(java.lang.String state)
getState
public java.lang.String getState()
- See Also:
Execution.getState()
isActive
public boolean isActive()
- See Also:
Execution#isActive()
isSuspended
public boolean isSuspended()
getExecution
public ExecutionImpl getExecution()
getTask
public TaskImpl getTask()
getTimerExecution
public ExecutionImpl getTimerExecution()
getParentVariableScope
public ScopeInstanceImpl getParentVariableScope()
getDbid
public long getDbid()
getElContext
public java.lang.Object getElContext()
setElContext
public void setElContext(java.lang.Object elContext)
Copyright © 2010 JBoss Community. All Rights Reserved.