Class GeneratedWorkflow

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

public abstract class GeneratedWorkflow extends CronJob
Generated class for type Workflow.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedWorkflow

      public GeneratedWorkflow()
  • Method Details

    • getDefaultAttributeModes

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

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

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

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

      public void setActions(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 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 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, 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(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 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 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 Map<Language,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 Map<Language,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, 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(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, Map<Language,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(Map<Language,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 String getName(SessionContext ctx)
      Generated method - Getter of the Workflow.name attribute.
      Returns:
      the name - name of the workflow
    • getName

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

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

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

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

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

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

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