public class Task extends Object implements ModelInstanceAware, EntityWithId, Collectible
Constructor and Description |
---|
Task(long id,
Token token,
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,
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.
|
String |
getElementId()
Returns model element id.
|
Date |
getEscalationTimeout()
Returns the escalation timeout.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
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(Date escalationTimeout)
Sets the escalation timeout.
|
STask |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
public Task(Token token, Date escalationTimeout, Context context)
token
- escalationTimeout
- context
- NullPointerException
- if token
or context
is nullpublic Task(long id, Token token, Date escalationTimeout, Context context)
id
- token
- escalationTimeout
- context
- 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()
ModelInstanceAware
getModelInstance
in interface ModelInstanceAware
public void rebind(ModelInstance modelInstance)
ModelInstanceAware
rebind
in interface ModelInstanceAware
public long getId()
EntityWithId
getId
in interface EntityWithId
public String getElementId()
public Date getEscalationTimeout()
public void setEscalationTimeout(Date escalationTimeout)
escalationTimeout
- public Context getContext()
public Token getToken()
public Task getChildTask()
public void setChildTask(Task childTask)
childTask
- public void collect()
Collectible
collect
in interface Collectible
public Collection<Collectible> getReferences()
Collectible
getReferences
in interface Collectible
public boolean isPersistent()
Collectible
isPersistent
in interface Collectible
public 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.