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)
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 long getId()
EntityWithIdgetId in interface EntityWithIdpublic ModelInstance getModelInstance()
ModelInstanceAwaregetModelInstance in interface ModelInstanceAwarepublic void rebind(ModelInstance modelInstance)
ModelInstanceAwarerebind in interface ModelInstanceAwarepublic boolean isPersistent()
CollectibleisPersistent in interface Collectiblepublic Collection<Collectible> getReferences()
CollectiblegetReferences in interface Collectiblepublic void collect()
Collectiblecollect in interface Collectiblepublic Escalation makeCopy(ModelInstance targetModelInstance)
targetModelInstance - Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.