public class Task extends java.lang.Object implements ModelInstanceAware, EntityWithId, Collectible
| Constructor and Description |
|---|
Task(long id,
Token token,
java.util.Date escalationTimeout,
Context context)
Creates new instance.
|
Task(STask source,
Token token,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
Task(Token token,
java.util.Date escalationTimeout,
Context context)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collect()
Removes itself from the process.
|
Task |
createCopy(ModelInstance targetModelInstance)
Creates a copy without references to other objects.
|
void |
finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
Copy references.
|
Task |
getChildTask()
Returns child task.
|
Context |
getContext()
Returns the task context.
|
java.lang.String |
getElementId()
Returns model element id.
|
java.util.Date |
getEscalationTimeout()
Returns the escalation timeout.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
java.util.Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
Token |
getToken()
Returns the token.
|
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
void |
setChildTask(Task childTask)
Sets child task.
|
void |
setEscalationTimeout(java.util.Date escalationTimeout)
Sets the escalation timeout.
|
STask |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
public Task(Token token, java.util.Date escalationTimeout, Context context)
token - escalationTimeout - context - java.lang.NullPointerException - if token or context is nullpublic Task(long id,
Token token,
java.util.Date escalationTimeout,
Context context)
id - token - escalationTimeout - context - java.lang.NullPointerException - if token or context is nullpublic Task(STask source, Token token, ModelInstance modelInstance)
source - token - modelInstance - public STask toSerializable(SModelInstance smi, MarshallerConfig config)
smi - config - public ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void rebind(ModelInstance modelInstance)
ModelInstanceAwarerebind in interface ModelInstanceAwarepublic long getId()
EntityWithIdgetId in interface EntityWithIdpublic java.lang.String getElementId()
public java.util.Date getEscalationTimeout()
public void setEscalationTimeout(java.util.Date escalationTimeout)
escalationTimeout - public Context getContext()
public Token getToken()
public Task getChildTask()
public void setChildTask(Task childTask)
childTask - public void collect()
Collectiblecollect in interface Collectiblepublic java.util.Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic Task createCopy(ModelInstance targetModelInstance)
public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source,
CopyHelper helper)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.