Class GeneratedWorkflowDecision

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

public abstract class GeneratedWorkflowDecision extends AbstractWorkflowDecision
Generated class for type WorkflowDecision.
See Also:
  • Field Details

    • ACTION

      public static final String ACTION
      Qualifier of the WorkflowDecision.action attribute
      See Also:
    • TOACTIONS

      public static final String TOACTIONS
      Qualifier of the WorkflowDecision.toActions attribute
      See Also:
    • WORKFLOWACTIONLINKRELATION_SRC_ORDERED

      protected static String WORKFLOWACTIONLINKRELATION_SRC_ORDERED
      Relation ordering override parameter constants for WorkflowActionLinkRelation from ((workflow))
    • WORKFLOWACTIONLINKRELATION_TGT_ORDERED

      protected static String WORKFLOWACTIONLINKRELATION_TGT_ORDERED
    • WORKFLOWACTIONLINKRELATION_MARKMODIFIED

      protected static String WORKFLOWACTIONLINKRELATION_MARKMODIFIED
      Relation disable markmodifed parameter constants for WorkflowActionLinkRelation from ((workflow))
    • ACTIONHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedWorkflowDecision> ACTIONHANDLER
      BidirectionalOneToManyHandler for handling 1:n ACTION's relation attributes from 'one' side.
    • DEFAULT_INITIAL_ATTRIBUTES

      protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
  • Constructor Details

    • GeneratedWorkflowDecision

      public GeneratedWorkflowDecision()
  • Method Details

    • getDefaultAttributeModes

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

      public WorkflowAction getAction(SessionContext ctx)
      Generated method - Getter of the WorkflowDecision.action attribute.
      Returns:
      the action
    • getAction

      public WorkflowAction getAction()
      Generated method - Getter of the WorkflowDecision.action attribute.
      Returns:
      the action
    • setAction

      public void setAction(SessionContext ctx, WorkflowAction value)
      Generated method - Setter of the WorkflowDecision.action attribute.
      Parameters:
      value - the action
    • setAction

      public void setAction(WorkflowAction value)
      Generated method - Setter of the WorkflowDecision.action attribute.
      Parameters:
      value - the action
    • 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 AbstractWorkflowDecision
      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
    • isMarkModifiedDisabled

      @Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Overrides:
      isMarkModifiedDisabled in class Item
    • getToActions

      public Collection<WorkflowAction> getToActions(SessionContext ctx)
      Generated method - Getter of the WorkflowDecision.toActions attribute.
      Returns:
      the toActions
    • getToActions

      public Collection<WorkflowAction> getToActions()
      Generated method - Getter of the WorkflowDecision.toActions attribute.
      Returns:
      the toActions
    • getToActionsCount

      public long getToActionsCount(SessionContext ctx)
    • getToActionsCount

      public long getToActionsCount()
    • setToActions

      public void setToActions(SessionContext ctx, Collection<WorkflowAction> value)
      Generated method - Setter of the WorkflowDecision.toActions attribute.
      Parameters:
      value - the toActions
    • setToActions

      public void setToActions(Collection<WorkflowAction> value)
      Generated method - Setter of the WorkflowDecision.toActions attribute.
      Parameters:
      value - the toActions
    • addToToActions

      public void addToToActions(SessionContext ctx, WorkflowAction value)
      Generated method - Adds value to toActions.
      Parameters:
      value - the item to add to toActions
    • addToToActions

      public void addToToActions(WorkflowAction value)
      Generated method - Adds value to toActions.
      Parameters:
      value - the item to add to toActions
    • removeFromToActions

      public void removeFromToActions(SessionContext ctx, WorkflowAction value)
      Generated method - Removes value from toActions.
      Parameters:
      value - the item to remove from toActions
    • removeFromToActions

      public void removeFromToActions(WorkflowAction value)
      Generated method - Removes value from toActions.
      Parameters:
      value - the item to remove from toActions