public class PackagedApprovalDecisionItem extends PackagedApprovalItem
This class extends the PackagedApprovalItem class to add information about the decision for a particular item. This class represents items that either need or already have had a decision made, where as the parent class represents read-only of informational items.
It is composed of a String decision code, which has values
that depend on the workflow activity definition. If the decision is still
pending, the value will be null.
PackagedApprovalItem.ItemType| Constructor and Description |
|---|
PackagedApprovalDecisionItem(PackagedApprovalItem.ItemType t,
java.lang.String id)
Constructs a
PackagedApprovalDecisionItem with the specified
type and String identifier. |
PackagedApprovalDecisionItem(PackagedApprovalItem.ItemType t,
java.lang.String id,
java.util.List<PackagedApprovalItem> c)
Constructs a
PackagedApprovalDecisionItem with the specified
type and String identifier and no decision. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Compares the values in the item.
|
java.lang.String |
getDecisionCode()
Returns the
String decision for this item. |
int |
hashCode()
Returns the hash code for this object.
|
void |
setDecisionCode(java.lang.String decision)
Sets the
String decision for this item. |
java.lang.String |
toString()
Returns a String containing the values of the object.
|
getChildren, getItemId, getItemType, setChildren, setItemTypepublic PackagedApprovalDecisionItem(PackagedApprovalItem.ItemType t, java.lang.String id)
PackagedApprovalDecisionItem with the specified
type and String identifier. The item will initially contain an
empty list of children and no decision.t - the ItemType for the new approval itemid - the String identifier for the itempublic PackagedApprovalDecisionItem(PackagedApprovalItem.ItemType t, java.lang.String id, java.util.List<PackagedApprovalItem> c)
PackagedApprovalDecisionItem with the specified
type and String identifier and no decision.t - the ItemType for the new approval itemid - the String identifier for the itemc - the List of child PackagedApprovalItem,
which should not be nullpublic java.lang.String getDecisionCode()
String decision for this item.
Decision code may be the value corresponding to
ActivityResult.APPROVED or ActivityResult.REJECTED.String decision, null if no decision
has been set for this itemActivityResultpublic void setDecisionCode(java.lang.String decision)
String decision for this item. Values
depend on the activity definition being executed. The value
null is used to represent decisions that have not
been made.
Decision code may be the value corresponding to
ActivityResult.APPROVED or ActivityResult.REJECTED.decision - String decisionActivityResultpublic int hashCode()
hashCode in class PackagedApprovalItempublic boolean equals(java.lang.Object o)
equals in class PackagedApprovalItemo - the PackagedApprovalItem to compare to this onepublic java.lang.String toString()
toString in class PackagedApprovalItem