Class GeneratedTaskCondition

    • Field Detail

      • UNIQUEID

        public static final java.lang.String UNIQUEID
        Qualifier of the TaskCondition.uniqueID attribute
        See Also:
        Constant Field Values
      • EXPIRATIONTIMEMILLIS

        public static final java.lang.String EXPIRATIONTIMEMILLIS
        Qualifier of the TaskCondition.expirationTimeMillis attribute
        See Also:
        Constant Field Values
      • PROCESSEDDATE

        public static final java.lang.String PROCESSEDDATE
        Qualifier of the TaskCondition.processedDate attribute
        See Also:
        Constant Field Values
      • FULFILLED

        public static final java.lang.String FULFILLED
        Qualifier of the TaskCondition.fulfilled attribute
        See Also:
        Constant Field Values
      • CONSUMED

        public static final java.lang.String CONSUMED
        Qualifier of the TaskCondition.consumed attribute
        See Also:
        Constant Field Values
      • CHOICE

        public static final java.lang.String CHOICE
        Qualifier of the TaskCondition.choice attribute
        See Also:
        Constant Field Values
      • COUNTER

        public static final java.lang.String COUNTER
        Qualifier of the TaskCondition.counter attribute
        See Also:
        Constant Field Values
      • TASK

        public static final java.lang.String TASK
        Qualifier of the TaskCondition.task attribute
        See Also:
        Constant Field Values
      • DEFAULT_INITIAL_ATTRIBUTES

        protected static final java.util.Map<java.lang.String,​Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
    • Constructor Detail

      • GeneratedTaskCondition

        public GeneratedTaskCondition()
    • Method Detail

      • getChoice

        public java.lang.String getChoice​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.choice attribute.
        Returns:
        the choice - Additional value which can be provided by the user when triggering an event
      • getChoice

        public java.lang.String getChoice()
        Generated method - Getter of the TaskCondition.choice attribute.
        Returns:
        the choice - Additional value which can be provided by the user when triggering an event
      • setChoice

        public void setChoice​(SessionContext ctx,
                              java.lang.String value)
        Generated method - Setter of the TaskCondition.choice attribute.
        Parameters:
        value - the choice - Additional value which can be provided by the user when triggering an event
      • setChoice

        public void setChoice​(java.lang.String value)
        Generated method - Setter of the TaskCondition.choice attribute.
        Parameters:
        value - the choice - Additional value which can be provided by the user when triggering an event
      • isConsumed

        public java.lang.Boolean isConsumed​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.consumed attribute.
        Returns:
        the consumed
      • isConsumed

        public java.lang.Boolean isConsumed()
        Generated method - Getter of the TaskCondition.consumed attribute.
        Returns:
        the consumed
      • isConsumedAsPrimitive

        public boolean isConsumedAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.consumed attribute.
        Returns:
        the consumed
      • isConsumedAsPrimitive

        public boolean isConsumedAsPrimitive()
        Generated method - Getter of the TaskCondition.consumed attribute.
        Returns:
        the consumed
      • setConsumed

        public void setConsumed​(SessionContext ctx,
                                java.lang.Boolean value)
        Generated method - Setter of the TaskCondition.consumed attribute.
        Parameters:
        value - the consumed
      • setConsumed

        public void setConsumed​(java.lang.Boolean value)
        Generated method - Setter of the TaskCondition.consumed attribute.
        Parameters:
        value - the consumed
      • setConsumed

        public void setConsumed​(SessionContext ctx,
                                boolean value)
        Generated method - Setter of the TaskCondition.consumed attribute.
        Parameters:
        value - the consumed
      • setConsumed

        public void setConsumed​(boolean value)
        Generated method - Setter of the TaskCondition.consumed attribute.
        Parameters:
        value - the consumed
      • getCounter

        public java.lang.Integer getCounter​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.counter attribute.
        Returns:
        the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.
      • getCounter

        public java.lang.Integer getCounter()
        Generated method - Getter of the TaskCondition.counter attribute.
        Returns:
        the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.
      • getCounterAsPrimitive

        public int getCounterAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.counter attribute.
        Returns:
        the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.
      • getCounterAsPrimitive

        public int getCounterAsPrimitive()
        Generated method - Getter of the TaskCondition.counter attribute.
        Returns:
        the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.
      • setCounter

        public void setCounter​(SessionContext ctx,
                               java.lang.Integer value)
        Generated method - Setter of the TaskCondition.counter attribute.
        Parameters:
        value - the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.
      • setCounter

        public void setCounter​(java.lang.Integer value)
        Generated method - Setter of the TaskCondition.counter attribute.
        Parameters:
        value - the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.
      • setCounter

        public void setCounter​(SessionContext ctx,
                               int value)
        Generated method - Setter of the TaskCondition.counter attribute.
        Parameters:
        value - the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.
      • setCounter

        public void setCounter​(int value)
        Generated method - Setter of the TaskCondition.counter attribute.
        Parameters:
        value - the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.
      • createItem

        protected Item createItem​(SessionContext ctx,
                                  ComposedType type,
                                  Item.ItemAttributeMap allAttributes)
                           throws JaloBusinessException
        Description copied from class: Item
        Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

        In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
        Sn example:

        
         public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
         ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
         man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
         // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
         SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
         super.getNonInitialAttributes( ctx, allAttributes );
         // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
        
         
        Overrides:
        createItem in class GenericItem
        Parameters:
        ctx - the current session context which this item is created within
        type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
        Returns:
        the new item instance
        Throws:
        JaloBusinessException - indicates an error during creation - any changes will be rollbacked
      • getExpirationTimeMillis

        public java.lang.Long getExpirationTimeMillis​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.expirationTimeMillis attribute.
        Returns:
        the expirationTimeMillis - The maximum allowed time to wait for completion
      • getExpirationTimeMillis

        public java.lang.Long getExpirationTimeMillis()
        Generated method - Getter of the TaskCondition.expirationTimeMillis attribute.
        Returns:
        the expirationTimeMillis - The maximum allowed time to wait for completion
      • getExpirationTimeMillisAsPrimitive

        public long getExpirationTimeMillisAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.expirationTimeMillis attribute.
        Returns:
        the expirationTimeMillis - The maximum allowed time to wait for completion
      • getExpirationTimeMillisAsPrimitive

        public long getExpirationTimeMillisAsPrimitive()
        Generated method - Getter of the TaskCondition.expirationTimeMillis attribute.
        Returns:
        the expirationTimeMillis - The maximum allowed time to wait for completion
      • setExpirationTimeMillis

        public void setExpirationTimeMillis​(SessionContext ctx,
                                            java.lang.Long value)
        Generated method - Setter of the TaskCondition.expirationTimeMillis attribute.
        Parameters:
        value - the expirationTimeMillis - The maximum allowed time to wait for completion
      • setExpirationTimeMillis

        public void setExpirationTimeMillis​(java.lang.Long value)
        Generated method - Setter of the TaskCondition.expirationTimeMillis attribute.
        Parameters:
        value - the expirationTimeMillis - The maximum allowed time to wait for completion
      • setExpirationTimeMillis

        public void setExpirationTimeMillis​(SessionContext ctx,
                                            long value)
        Generated method - Setter of the TaskCondition.expirationTimeMillis attribute.
        Parameters:
        value - the expirationTimeMillis - The maximum allowed time to wait for completion
      • setExpirationTimeMillis

        public void setExpirationTimeMillis​(long value)
        Generated method - Setter of the TaskCondition.expirationTimeMillis attribute.
        Parameters:
        value - the expirationTimeMillis - The maximum allowed time to wait for completion
      • isFulfilled

        public java.lang.Boolean isFulfilled​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.fulfilled attribute.
        Returns:
        the fulfilled
      • isFulfilled

        public java.lang.Boolean isFulfilled()
        Generated method - Getter of the TaskCondition.fulfilled attribute.
        Returns:
        the fulfilled
      • isFulfilledAsPrimitive

        public boolean isFulfilledAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.fulfilled attribute.
        Returns:
        the fulfilled
      • isFulfilledAsPrimitive

        public boolean isFulfilledAsPrimitive()
        Generated method - Getter of the TaskCondition.fulfilled attribute.
        Returns:
        the fulfilled
      • setFulfilled

        public void setFulfilled​(SessionContext ctx,
                                 java.lang.Boolean value)
        Generated method - Setter of the TaskCondition.fulfilled attribute.
        Parameters:
        value - the fulfilled
      • setFulfilled

        public void setFulfilled​(java.lang.Boolean value)
        Generated method - Setter of the TaskCondition.fulfilled attribute.
        Parameters:
        value - the fulfilled
      • setFulfilled

        public void setFulfilled​(SessionContext ctx,
                                 boolean value)
        Generated method - Setter of the TaskCondition.fulfilled attribute.
        Parameters:
        value - the fulfilled
      • setFulfilled

        public void setFulfilled​(boolean value)
        Generated method - Setter of the TaskCondition.fulfilled attribute.
        Parameters:
        value - the fulfilled
      • getProcessedDate

        public java.util.Date getProcessedDate​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.processedDate attribute.
        Returns:
        the processedDate - The date when this condition has been processed. Then state is switched to FULFILLED or REJECTED.
      • getProcessedDate

        public java.util.Date getProcessedDate()
        Generated method - Getter of the TaskCondition.processedDate attribute.
        Returns:
        the processedDate - The date when this condition has been processed. Then state is switched to FULFILLED or REJECTED.
      • setProcessedDate

        public void setProcessedDate​(SessionContext ctx,
                                     java.util.Date value)
        Generated method - Setter of the TaskCondition.processedDate attribute.
        Parameters:
        value - the processedDate - The date when this condition has been processed. Then state is switched to FULFILLED or REJECTED.
      • setProcessedDate

        public void setProcessedDate​(java.util.Date value)
        Generated method - Setter of the TaskCondition.processedDate attribute.
        Parameters:
        value - the processedDate - The date when this condition has been processed. Then state is switched to FULFILLED or REJECTED.
      • getTask

        public Task getTask​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.task attribute.
        Returns:
        the task
      • getTask

        public Task getTask()
        Generated method - Getter of the TaskCondition.task attribute.
        Returns:
        the task
      • setTask

        public void setTask​(SessionContext ctx,
                            Task value)
        Generated method - Setter of the TaskCondition.task attribute.
        Parameters:
        value - the task
      • setTask

        public void setTask​(Task value)
        Generated method - Setter of the TaskCondition.task attribute.
        Parameters:
        value - the task
      • getUniqueID

        public java.lang.String getUniqueID​(SessionContext ctx)
        Generated method - Getter of the TaskCondition.uniqueID attribute.
        Returns:
        the uniqueID - The unique id of this condition - may be created by number series !?
      • getUniqueID

        public java.lang.String getUniqueID()
        Generated method - Getter of the TaskCondition.uniqueID attribute.
        Returns:
        the uniqueID - The unique id of this condition - may be created by number series !?
      • setUniqueID

        public void setUniqueID​(SessionContext ctx,
                                java.lang.String value)
        Generated method - Setter of the TaskCondition.uniqueID attribute.
        Parameters:
        value - the uniqueID - The unique id of this condition - may be created by number series !?
      • setUniqueID

        public void setUniqueID​(java.lang.String value)
        Generated method - Setter of the TaskCondition.uniqueID attribute.
        Parameters:
        value - the uniqueID - The unique id of this condition - may be created by number series !?