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()
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 preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
preUnmarshal
in interface UnmarshalCallback
parent
- 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)
UnmarshalCallback
postUnmarshal
in interface UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.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 makeCopy(ModelInstance targetModelInstance, Token targetToken)
targetModelInstance
- targetToken
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.