public class Escalation extends Object implements XmlEntity, Collectible, ModelInstanceAware, EntityWithId
Modifier | Constructor and Description |
---|---|
protected |
Escalation()
Creates new instance.
|
|
Escalation(ModelInstance modelInstance,
long processInstanceId,
String elementId,
String escalationCode,
Value payload)
Creates a new escalation event with the given escalation code and it's
payload.
|
|
Escalation(ProcessInstance processInstance,
String elementId,
String escalationCode,
Value payload)
Creates a new escalation event with the given escalation code and it's
payload.
|
Modifier and Type | Method and Description |
---|---|
void |
collect()
Removes itself from the process.
|
String |
getElementId()
Gets the identifier of the escalation flow element which generated this
escalation.
|
String |
getEscalationCode()
Gets the code of this escalation.
|
long |
getId()
Returns the id.
|
ModelInstance |
getModelInstance()
Returns the model instance.
|
Value |
getPayload()
Gets payload of this escalation.
|
long |
getProcessInstanceId()
Gets the identifier of the process instance in which this escalation
was generated.
|
Collection<Collectible> |
getReferences()
Returns collection of all referenced collectible objects.
|
boolean |
isInserted()
Indicates if the escalation was inserted into a model instance in the
current iteration of the process agent loop.
|
boolean |
isPersistent()
Returns true if this object cannot be collected.
|
Escalation |
makeCopy(ModelInstance targetModelInstance)
Returns deep 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 |
setInserted(boolean inserted)
Sets the inserted flag.
|
protected Escalation()
public Escalation(ProcessInstance processInstance, String elementId, String escalationCode, Value payload)
processInstance
- the process instance this escalation was created inelementId
- the identifier of the flow element which generated this
escalationescalationCode
- the code identifying this escalationpayload
- the payload of the escalation eventpublic Escalation(ModelInstance modelInstance, long processInstanceId, String elementId, String escalationCode, Value payload)
modelInstance
- the model instanceprocessInstanceId
- the identifier of a process instance this escalation was created inelementId
- the identifier of the flow element which generated this
escalationescalationCode
- the code identifying this escalationpayload
- the payload of the escalation eventpublic String getEscalationCode()
public String getElementId()
public long getProcessInstanceId()
public Value getPayload()
public boolean isInserted()
true
if this escalation has been inserted in the model
instance in the current iteration of the process agent loop.public void setInserted(boolean inserted)
inserted
- isInserted()
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 long getId()
EntityWithId
getId
in interface EntityWithId
public ModelInstance getModelInstance()
ModelInstanceAware
getModelInstance
in interface ModelInstanceAware
public void rebind(ModelInstance modelInstance)
ModelInstanceAware
rebind
in interface ModelInstanceAware
public boolean isPersistent()
Collectible
isPersistent
in interface Collectible
public Collection<Collectible> getReferences()
Collectible
getReferences
in interface Collectible
public void collect()
Collectible
collect
in interface Collectible
public Escalation makeCopy(ModelInstance targetModelInstance)
targetModelInstance
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.