com.ibm.itim.workflow.model

Class PackagedApprovalDecisionItem

  • All Implemented Interfaces:
    java.io.Serializable


    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.

    Since:
    ITIM 5.1
    See Also:
    Serialized Form
    • Constructor Detail

      • PackagedApprovalDecisionItem

        public PackagedApprovalDecisionItem(PackagedApprovalItem.ItemType t,
                                            java.lang.String id)
        Constructs a PackagedApprovalDecisionItem with the specified type and String identifier. The item will initially contain an empty list of children and no decision.
        Parameters:
        t - the ItemType for the new approval item
        id - the String identifier for the item
      • PackagedApprovalDecisionItem

        public 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.
        Parameters:
        t - the ItemType for the new approval item
        id - the String identifier for the item
        c - the List of child PackagedApprovalItem, which should not be null
    • Method Detail

      • getDecisionCode

        public java.lang.String getDecisionCode()
        Returns the String decision for this item. Decision code may be the value corresponding to ActivityResult.APPROVED or ActivityResult.REJECTED.
        Returns:
        String decision, null if no decision has been set for this item
        See Also:
        ActivityResult
      • setDecisionCode

        public void setDecisionCode(java.lang.String decision)
        Sets the 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.
        Parameters:
        decision - String decision
        See Also:
        ActivityResult
      • hashCode

        public int hashCode()
        Returns the hash code for this object.
        Overrides:
        hashCode in class PackagedApprovalItem
        Returns:
        an integer hash code
      • equals

        public boolean equals(java.lang.Object o)
        Compares the values in the item.
        Overrides:
        equals in class PackagedApprovalItem
        Parameters:
        o - the PackagedApprovalItem to compare to this one
        Returns:
        true if this object's values are identical to o
      • toString

        public java.lang.String toString()
        Returns a String containing the values of the object.
        Overrides:
        toString in class PackagedApprovalItem
        Returns:
        String value