public class SimpleTerminationReason extends Object implements TerminationReason
Constructor and Description |
---|
SimpleTerminationReason(TerminationReasonEnum terminationReason)
Creates new instance.
|
SimpleTerminationReason(TerminationReasonEnum reason,
String code)
Creates new instance.
|
SimpleTerminationReason(TerminationReasonEnum reason,
String code,
Object payload)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Returns error code or escalation code for relevant reasons.
|
String |
getDescription()
Returns description of reason why task was terminated.
|
Object |
getPayload()
Returns escalation payload for relevant reason.
|
TerminationReasonEnum |
getReason()
Returns reason
|
boolean |
isAccomplished()
Returns true if the activity was accomplished successfully.
|
String |
toString() |
public SimpleTerminationReason(TerminationReasonEnum reason, String code, Object payload)
reason
- code
- payload
- public SimpleTerminationReason(TerminationReasonEnum reason, String code)
reason
- code
- public SimpleTerminationReason(TerminationReasonEnum terminationReason)
terminationReason
- public String getDescription()
TerminationReason
getDescription
in interface TerminationReason
public String getCode()
TerminationReason
getCode
in interface TerminationReason
public boolean isAccomplished()
TerminationReason
isAccomplished
in interface TerminationReason
public TerminationReasonEnum getReason()
TerminationReason
getReason
in interface TerminationReason
public Object getPayload()
TerminationReason
getPayload
in interface TerminationReason
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.