Class ItemStatus


  • public class ItemStatus
    extends java.lang.Object
    Composite Item Status
    • Field Detail

      • itemId

        protected java.lang.String itemId
      • message

        protected java.lang.String message
      • statusMeter

        protected java.util.List<java.lang.Integer> statusMeter
      • data

        protected java.util.Map<java.lang.String,​java.lang.Object> data
      • globalOutcomeDetailSubcode

        protected java.lang.String globalOutcomeDetailSubcode
      • lifecycleEnable

        protected boolean lifecycleEnable
    • Constructor Detail

      • ItemStatus

        public ItemStatus()
        Empty Constructor
      • ItemStatus

        public ItemStatus​(java.lang.String itemId,
                          java.lang.String message,
                          StatusCode globalStatus,
                          java.util.List<java.lang.Integer> statusMeter,
                          java.util.Map<java.lang.String,​java.lang.Object> data,
                          java.util.LinkedHashMap<java.lang.String,​ItemStatus> itemsStatus,
                          java.lang.String evDetailData,
                          ProcessState globalState)
        Constructor.
        Parameters:
        message -
        itemId -
        statusMeter -
        globalStatus -
        data -
        itemsStatus -
        evDetailData -
        globalState -
      • ItemStatus

        public ItemStatus​(java.lang.String itemId)
        Constructor
        Parameters:
        itemId -
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns:
        the message
      • setMessage

        public ItemStatus setMessage​(java.lang.String message)
        Parameters:
        message - the message to set
        Returns:
        this
      • getItemId

        public java.lang.String getItemId()
        Returns:
        the itemId
      • setItemId

        public ItemStatus setItemId​(java.lang.String itemId)
        Parameters:
        itemId - the itemId to set
        Returns:
        this
      • getStatusMeter

        public java.util.List<java.lang.Integer> getStatusMeter()
        Returns:
        the statusMeter
      • increment

        public ItemStatus increment​(StatusCode statusCode)
        Parameters:
        statusCode - the statusCode to increment
        Returns:
        this
      • increment

        public ItemStatus increment​(StatusCode statusCode,
                                    int increment)
        Parameters:
        statusCode - the statusCode to increment
        increment -
        Returns:
        this
      • increment

        protected ItemStatus increment​(ItemStatus itemStatus1,
                                       ItemStatus itemStatus2)
        Parameters:
        itemStatus1 - the statusCode to increment
        itemStatus2 -
        Returns:
        this
      • getGlobalStatus

        public StatusCode getGlobalStatus()
        Returns:
        the globalStatus
      • getData

        public java.lang.Object getData​(java.lang.String key)
        Returns:
        the data
      • getData

        @Deprecated
        public java.util.Map<java.lang.String,​java.lang.Object> getData()
        Deprecated.
        Returns:
      • setData

        public ItemStatus setData​(java.lang.String key,
                                  java.lang.Object value)
        Parameters:
        key -
        value -
        Returns:
        this
      • getMasterData

        public java.util.Map<java.lang.String,​java.lang.Object> getMasterData()
        Returns:
        masterData
      • setMasterData

        public ItemStatus setMasterData​(java.lang.String key,
                                        java.lang.Object value)
        Parameters:
        key -
        value -
        Returns:
        this
      • computeStatusMeterMessage

        public java.lang.String computeStatusMeterMessage()
        Returns:
        String message
      • getItemsStatus

        public java.util.Map<java.lang.String,​ItemStatus> getItemsStatus()
        Returns:
        the itemsStatus
      • setItemsStatus

        public ItemStatus setItemsStatus​(java.lang.String itemId,
                                         ItemStatus statusDetails)
        Parameters:
        itemId -
        statusDetails -
        Returns:
        this
      • setItemsStatus

        public ItemStatus setItemsStatus​(ItemStatus compositeItemStatus)
        Parameters:
        compositeItemStatus -
        Returns:
        this
      • getGlobalState

        public ProcessState getGlobalState()
        Get the global state
        Returns:
        globalState as type ProcessState
      • setGlobalState

        public ItemStatus setGlobalState​(ProcessState globalState)
        Parameters:
        globalState - the golbal state to set
        Returns:
        this
      • shallStop

        public boolean shallStop​(boolean blocking)
        Parameters:
        blocking - True if the step or handler is blocking
        Returns:
        True if this item shall stop the Step or Handler
      • getSubTaskStatus

        public java.util.LinkedHashMap<java.lang.String,​ItemStatus> getSubTaskStatus()
        Returns:
        the subTaskStatus
      • setSubTaskStatus

        public ItemStatus setSubTaskStatus​(java.lang.String taskId,
                                           ItemStatus taskStatus)
        Parameters:
        taskId - the taskId to set
        taskStatus - the taskStatus to set
        Returns:
        this
      • setSubTasksStatus

        public ItemStatus setSubTasksStatus​(java.util.Map<java.lang.String,​ItemStatus> tasks)
      • getEvDetailData

        public java.lang.String getEvDetailData()
        Returns:
        evDetailData
      • setEvDetailData

        public ItemStatus setEvDetailData​(java.lang.String evDetailData)
        set EvDetailData
        Parameters:
        evDetailData -
        Returns:
        this
      • getLogbookTypeProcess

        public java.lang.String getLogbookTypeProcess()
      • setLogbookTypeProcess

        public ItemStatus setLogbookTypeProcess​(java.lang.String logbookTypeProcess)
      • getGlobalOutcomeDetailSubcode

        public java.lang.String getGlobalOutcomeDetailSubcode()
      • setGlobalOutcomeDetailSubcode

        public ItemStatus setGlobalOutcomeDetailSubcode​(java.lang.String globalOutcomeDetailSubcode)
      • isLifecycleEnable

        public boolean isLifecycleEnable()
      • setStatusMeterValue

        public void setStatusMeterValue​(StatusCode statusCode,
                                        java.lang.Integer value)
        Set the value of the specified statusCode in this statusMeter
        Parameters:
        statusCode -
        value -
      • reinitStatusMeter

        public void reinitStatusMeter()
        Reinit all the values of this statusMeter to 0