Class GeneratedWorkflowDecisionTemplate

    • Field Detail

      • PARENTWORKFLOWTEMPLATE

        public static final java.lang.String PARENTWORKFLOWTEMPLATE
        Qualifier of the WorkflowDecisionTemplate.parentWorkflowTemplate attribute
        See Also:
        Constant Field Values
      • ACTIONTEMPLATE

        public static final java.lang.String ACTIONTEMPLATE
        Qualifier of the WorkflowDecisionTemplate.actionTemplate attribute
        See Also:
        Constant Field Values
      • TOTEMPLATEACTIONS

        public static final java.lang.String TOTEMPLATEACTIONS
        Qualifier of the WorkflowDecisionTemplate.toTemplateActions attribute
        See Also:
        Constant Field Values
      • WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_SRC_ORDERED

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

        protected static java.lang.String WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_TGT_ORDERED
      • WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_MARKMODIFIED

        protected static java.lang.String WORKFLOWACTIONTEMPLATELINKTEMPLATERELATION_MARKMODIFIED
        Relation disable markmodifed parameter constants for WorkflowActionTemplateLinkTemplateRelation from ((workflow))
      • DEFAULT_INITIAL_ATTRIBUTES

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

      • GeneratedWorkflowDecisionTemplate

        public GeneratedWorkflowDecisionTemplate()
    • Method Detail

      • 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
      • 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 java.util.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 java.util.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,
                                         java.util.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​(java.util.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