Class GeneratedWorkflow

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable
    Direct Known Subclasses:
    Workflow

    public abstract class GeneratedWorkflow
    extends CronJob
    Generated class for type Workflow.
    See Also:
    Serialized Form
    • Constructor Detail

      • GeneratedWorkflow

        public GeneratedWorkflow()
    • Method Detail

      • getActions

        public java.util.List<WorkflowAction> getActions​(SessionContext ctx)
        Generated method - Getter of the Workflow.actions attribute.
        Returns:
        the actions
      • getActions

        public java.util.List<WorkflowAction> getActions()
        Generated method - Getter of the Workflow.actions attribute.
        Returns:
        the actions
      • setActions

        public void setActions​(SessionContext ctx,
                               java.util.List<WorkflowAction> value)
        Generated method - Setter of the Workflow.actions attribute.
        Parameters:
        value - the actions
      • setActions

        public void setActions​(java.util.List<WorkflowAction> value)
        Generated method - Setter of the Workflow.actions attribute.
        Parameters:
        value - the actions
      • addToActions

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

        public void addToActions​(WorkflowAction value)
        Generated method - Adds value to actions.
        Parameters:
        value - the item to add to actions
      • removeFromActions

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

        public void removeFromActions​(WorkflowAction value)
        Generated method - Removes value from actions.
        Parameters:
        value - the item to remove from actions
      • getAttachments

        public java.util.List<WorkflowItemAttachment> getAttachments​(SessionContext ctx)
        Generated method - Getter of the Workflow.attachments attribute.
        Returns:
        the attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
      • getAttachments

        public java.util.List<WorkflowItemAttachment> getAttachments()
        Generated method - Getter of the Workflow.attachments attribute.
        Returns:
        the attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
      • setAttachments

        public void setAttachments​(SessionContext ctx,
                                   java.util.List<WorkflowItemAttachment> value)
        Generated method - Setter of the Workflow.attachments attribute.
        Parameters:
        value - the attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
      • setAttachments

        public void setAttachments​(java.util.List<WorkflowItemAttachment> value)
        Generated method - Setter of the Workflow.attachments attribute.
        Parameters:
        value - the attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
      • addToAttachments

        public void addToAttachments​(SessionContext ctx,
                                     WorkflowItemAttachment value)
        Generated method - Adds value to attachments.
        Parameters:
        value - the item to add to attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
      • addToAttachments

        public void addToAttachments​(WorkflowItemAttachment value)
        Generated method - Adds value to attachments.
        Parameters:
        value - the item to add to attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
      • removeFromAttachments

        public void removeFromAttachments​(SessionContext ctx,
                                          WorkflowItemAttachment value)
        Generated method - Removes value from attachments.
        Parameters:
        value - the item to remove from attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
      • removeFromAttachments

        public void removeFromAttachments​(WorkflowItemAttachment value)
        Generated method - Removes value from attachments.
        Parameters:
        value - the item to remove from attachments - n-part of the WorkflowItemAttachmentRelation; holds a set of attachments (item references) belonging to the topic of workflow
      • 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 CronJob
        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
      • getDescription

        public java.lang.String getDescription​(SessionContext ctx)
        Generated method - Getter of the Workflow.description attribute.
        Returns:
        the description - global description of the workflow while each action has its own description
      • getDescription

        public java.lang.String getDescription()
        Generated method - Getter of the Workflow.description attribute.
        Returns:
        the description - global description of the workflow while each action has its own description
      • getAllDescription

        public java.util.Map<Language,​java.lang.String> getAllDescription​(SessionContext ctx)
        Generated method - Getter of the Workflow.description attribute.
        Returns:
        the localized description - global description of the workflow while each action has its own description
      • getAllDescription

        public java.util.Map<Language,​java.lang.String> getAllDescription()
        Generated method - Getter of the Workflow.description attribute.
        Returns:
        the localized description - global description of the workflow while each action has its own description
      • setDescription

        public void setDescription​(SessionContext ctx,
                                   java.lang.String value)
        Generated method - Setter of the Workflow.description attribute.
        Parameters:
        value - the description - global description of the workflow while each action has its own description
      • setDescription

        public void setDescription​(java.lang.String value)
        Generated method - Setter of the Workflow.description attribute.
        Parameters:
        value - the description - global description of the workflow while each action has its own description
      • setAllDescription

        public void setAllDescription​(SessionContext ctx,
                                      java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Workflow.description attribute.
        Parameters:
        value - the description - global description of the workflow while each action has its own description
      • setAllDescription

        public void setAllDescription​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Workflow.description attribute.
        Parameters:
        value - the description - global description of the workflow while each action has its own description
      • getName

        public java.lang.String getName​(SessionContext ctx)
        Generated method - Getter of the Workflow.name attribute.
        Returns:
        the name - name of the workflow
      • getName

        public java.lang.String getName()
        Generated method - Getter of the Workflow.name attribute.
        Returns:
        the name - name of the workflow
      • getAllName

        public java.util.Map<Language,​java.lang.String> getAllName​(SessionContext ctx)
        Generated method - Getter of the Workflow.name attribute.
        Returns:
        the localized name - name of the workflow
      • getAllName

        public java.util.Map<Language,​java.lang.String> getAllName()
        Generated method - Getter of the Workflow.name attribute.
        Returns:
        the localized name - name of the workflow
      • setName

        public void setName​(SessionContext ctx,
                            java.lang.String value)
        Generated method - Setter of the Workflow.name attribute.
        Parameters:
        value - the name - name of the workflow
      • setName

        public void setName​(java.lang.String value)
        Generated method - Setter of the Workflow.name attribute.
        Parameters:
        value - the name - name of the workflow
      • setAllName

        public void setAllName​(SessionContext ctx,
                               java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Workflow.name attribute.
        Parameters:
        value - the name - name of the workflow
      • setAllName

        public void setAllName​(java.util.Map<Language,​java.lang.String> value)
        Generated method - Setter of the Workflow.name attribute.
        Parameters:
        value - the name - name of the workflow