Class GeneratedWorkflowDecisionTemplate

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

public abstract class GeneratedWorkflowDecisionTemplate extends AbstractWorkflowDecision
Generated class for type WorkflowDecisionTemplate.
See Also:
  • Field Details

    • PARENTWORKFLOWTEMPLATE

      public static final String PARENTWORKFLOWTEMPLATE
      Qualifier of the WorkflowDecisionTemplate.parentWorkflowTemplate attribute
      See Also:
    • ACTIONTEMPLATE

      public static final String ACTIONTEMPLATE
      Qualifier of the WorkflowDecisionTemplate.actionTemplate attribute
      See Also:
    • TOTEMPLATEACTIONS

      public static final String TOTEMPLATEACTIONS
      Qualifier of the WorkflowDecisionTemplate.toTemplateActions attribute
      See Also:
    • WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_SRC_ORDERED

      protected static String WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_SRC_ORDERED
      Relation ordering override parameter constants for WorkflowActionTemplateLinkTemplateRelation from ((workflow))
    • WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_TGT_ORDERED

      protected static String WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_TGT_ORDERED
    • WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_MARKMODIFIED

      protected static String WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_MARKMODIFIED
      Relation disable markmodifed parameter constants for WorkflowActionTemplateLinkTemplateRelation from ((workflow))
    • ACTIONTEMPLATEHANDLER

      protected static final BidirectionalOneToManyHandler<GeneratedWorkflowDecisionTemplate> ACTIONTEMPLATEHANDLER
      BidirectionalOneToManyHandler for handling 1:n ACTIONTEMPLATE's relation attributes from 'one' side.
    • DEFAULT_INITIAL_ATTRIBUTES

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

    • GeneratedWorkflowDecisionTemplate

      public GeneratedWorkflowDecisionTemplate()
  • Method Details

    • getDefaultAttributeModes

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

      public WorkflowActionTemplate getActionTemplate(SessionContext ctx)
      Generated method - Getter of the WorkflowDecisionTemplate.actionTemplate attribute.
      Returns:
      the actionTemplate - reference to the action template this decision belongs to
    • getActionTemplate

      public WorkflowActionTemplate getActionTemplate()
      Generated method - Getter of the WorkflowDecisionTemplate.actionTemplate attribute.
      Returns:
      the actionTemplate - reference to the action template this decision belongs to
    • setActionTemplate

      public void setActionTemplate(SessionContext ctx, WorkflowActionTemplate value)
      Generated method - Setter of the WorkflowDecisionTemplate.actionTemplate attribute.
      Parameters:
      value - the actionTemplate - reference to the action template this decision belongs to
    • setActionTemplate

      public void setActionTemplate(WorkflowActionTemplate value)
      Generated method - Setter of the WorkflowDecisionTemplate.actionTemplate attribute.
      Parameters:
      value - the actionTemplate - reference to the action template this decision belongs to
    • 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
    • getParentWorkflowTemplate

      public abstract WorkflowTemplate getParentWorkflowTemplate(SessionContext ctx)
      Generated method - Getter of the WorkflowDecisionTemplate.parentWorkflowTemplate attribute.
      Returns:
      the parentWorkflowTemplate
    • getParentWorkflowTemplate

      public WorkflowTemplate getParentWorkflowTemplate()
      Generated method - Getter of the WorkflowDecisionTemplate.parentWorkflowTemplate attribute.
      Returns:
      the parentWorkflowTemplate
    • getToTemplateActions

      public Collection<WorkflowActionTemplate> getToTemplateActions(SessionContext ctx)
      Generated method - Getter of the WorkflowDecisionTemplate.toTemplateActions attribute.
      Returns:
      the toTemplateActions - list of actions that will be activated then the decision gets chosen
    • getToTemplateActions

      public Collection<WorkflowActionTemplate> getToTemplateActions()
      Generated method - Getter of the WorkflowDecisionTemplate.toTemplateActions attribute.
      Returns:
      the toTemplateActions - list of actions that will be activated then the decision gets chosen
    • getToTemplateActionsCount

      public long getToTemplateActionsCount(SessionContext ctx)
    • getToTemplateActionsCount

      public long getToTemplateActionsCount()
    • setToTemplateActions

      public void setToTemplateActions(SessionContext ctx, Collection<WorkflowActionTemplate> value)
      Generated method - Setter of the WorkflowDecisionTemplate.toTemplateActions attribute.
      Parameters:
      value - the toTemplateActions - list of actions that will be activated then the decision gets chosen
    • setToTemplateActions

      public void setToTemplateActions(Collection<WorkflowActionTemplate> value)
      Generated method - Setter of the WorkflowDecisionTemplate.toTemplateActions attribute.
      Parameters:
      value - the toTemplateActions - list of actions that will be activated then the decision gets chosen
    • addToToTemplateActions

      public void addToToTemplateActions(SessionContext ctx, WorkflowActionTemplate value)
      Generated method - Adds value to toTemplateActions.
      Parameters:
      value - the item to add to toTemplateActions - list of actions that will be activated then the decision gets chosen
    • addToToTemplateActions

      public void addToToTemplateActions(WorkflowActionTemplate value)
      Generated method - Adds value to toTemplateActions.
      Parameters:
      value - the item to add to toTemplateActions - list of actions that will be activated then the decision gets chosen
    • removeFromToTemplateActions

      public void removeFromToTemplateActions(SessionContext ctx, WorkflowActionTemplate value)
      Generated method - Removes value from toTemplateActions.
      Parameters:
      value - the item to remove from toTemplateActions - list of actions that will be activated then the decision gets chosen
    • removeFromToTemplateActions

      public void removeFromToTemplateActions(WorkflowActionTemplate value)
      Generated method - Removes value from toTemplateActions.
      Parameters:
      value - the item to remove from toTemplateActions - list of actions that will be activated then the decision gets chosen