public class Task extends Object implements XmlEntity, ModelInstanceAware, EntityWithId, Collectible
| Modifier | Constructor and Description |
|---|---|
protected |
Task()
Creates new instance.
|
|
Task(long id,
Token token,
Date escalationTimeout,
Context context)
Creates new instance.
|
|
Task(Token token,
Date escalationTimeout,
Context context)
Creates new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
collect()
Removes itself from the process.
|
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.
|
Task |
makeCopy(ModelInstance targetModelInstance,
Token targetToken)
Makes copy.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
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.
|
protected Task()
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 ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void rebind(ModelInstance modelInstance)
ModelInstanceAwarerebind in interface ModelInstanceAwarepublic long getId()
EntityWithIdgetId in interface EntityWithIdpublic 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 preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpreUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackpostUnmarshal in interface UnmarshalCallbackparent - instance of JAXB mapped class that will reference target.
null when target is root element.public void collect()
Collectiblecollect in interface Collectiblepublic Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic Task makeCopy(ModelInstance targetModelInstance, Token targetToken)
targetModelInstance - targetToken - Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.