public class Escalation extends Object implements Collectible, ModelInstanceAware, EntityWithId
Constructor and Description |
---|
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.
|
Escalation(SEscalation source,
ModelInstance modelInstance)
Creates a new instance from the serialized companion.
|
Modifier and Type | Method and Description |
---|---|
void |
collect()
Removes itself from the process.
|
Escalation |
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.
|
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.
|
ProcessInstance |
getProcessInstance()
Returns the process instance in which this escalation was generated.
|
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.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
void |
setInserted(boolean inserted)
Sets the inserted flag.
|
SEscalation |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
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 Escalation(SEscalation source, ModelInstance modelInstance)
source
- modelInstance
- public SEscalation toSerializable(SModelInstance smi, MarshallerConfig config)
smi
- config
- public String getEscalationCode()
public String getElementId()
public long getProcessInstanceId()
public ProcessInstance getProcessInstance()
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 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 createCopy(ModelInstance targetModelInstance)
public void finishCopy(com.whitestein.lsps.engine.state.xml.Copiable source, CopyHelper helper)
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.