Class GeneratedTaskCondition

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
TaskCondition

public abstract class GeneratedTaskCondition extends GenericItem
Generated class for type TaskCondition.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedTaskCondition

      public GeneratedTaskCondition()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getChoice

      public 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 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, 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(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 Boolean isConsumed(SessionContext ctx)
      Generated method - Getter of the TaskCondition.consumed attribute.
      Returns:
      the consumed
    • isConsumed

      public 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, 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
    • 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 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 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, 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(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 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 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, 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
    • 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 Boolean isFulfilled(SessionContext ctx)
      Generated method - Getter of the TaskCondition.fulfilled attribute.
      Returns:
      the fulfilled
    • isFulfilled

      public 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, 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
    • 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 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 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, 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(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 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 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, 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(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 !?