Class ProcessLinkProcessAction

java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction

public class ProcessLinkProcessAction extends ProcessLinkAction
Actions for linking processes to a process: listing, creating and removing links
  • Constructor Details

    • ProcessLinkProcessAction

      public ProcessLinkProcessAction()
      Default constructor
  • Method Details

    • unspecified

      public org.apache.struts.action.ActionForward unspecified(DynActionForm form, ConnectionSet conSet) throws Exception
      Description copied from class: BaseAction
      Default action method if no parameter 'action' passed. Overwrite and implement.
      Overrides:
      unspecified in class ProcessAction
      Parameters:
      form -
      conSet -
      Returns:
      Throws:
      Exception
    • showCategory

      public org.apache.struts.action.ActionForward showCategory(DynActionForm form, ConnectionSet conSet) throws Exception
      Returns the linked processes of a given link category
      Parameters:
      form - request form
      conSet - connection set
      Returns:
      HTML view forward
      Throws:
      Exception - on any error
    • addCreated

      public org.apache.struts.action.ActionForward addCreated(DynActionForm form, ConnectionSet conSet) throws Exception
      Opens the form for creating a new process to link
      Parameters:
      form - request form
      conSet - connection set
      Returns:
      HTML view forward
      Throws:
      Exception - on any error
    • linkProcessCreate

      public org.apache.struts.action.ActionForward linkProcessCreate(DynActionForm form, Connection con) throws Exception
      Creates a new process and links it to the current one
      Parameters:
      form - request form
      con - database connection
      Returns:
      JSON response
      Throws:
      Exception - on any error
    • linkProcessCreate

      public static Process linkProcessCreate(Connection con, DynActionForm form, Process linkedProcess, int typeId, String linkObjectType, int createTypeId, String description, int groupId) throws Exception
      Creates a new process linked to the given one, optionally by a configured creation rule, copying parameters and links when configured
      Parameters:
      con - database connection
      form - request form
      linkedProcess - process to link the new one to
      typeId - type of the process to create, used when no creation rule is given
      linkObjectType - link object type
      createTypeId - ID of the creation rule from configuration, or non-positive to skip
      description - description of the new process
      groupId - group to assign the new process to, or non-positive for none
      Returns:
      the created process
      Throws:
      Exception - on any error
    • addExisting

      public org.apache.struts.action.ActionForward addExisting(DynActionForm form, ConnectionSet conSet) throws Exception
      Returns existing processes that can be linked, excluding already linked ones
      Parameters:
      form - request form
      conSet - connection set
      Returns:
      HTML view forward
      Throws:
      Exception - on any error
    • linkProcessExisting

      public org.apache.struts.action.ActionForward linkProcessExisting(DynActionForm form, ConnectionSet conSet) throws Exception
      Links the selected existing processes to the current one
      Parameters:
      form - request form
      conSet - connection set
      Returns:
      JSON response
      Throws:
      Exception - on any error
    • linkProcessDelete

      public org.apache.struts.action.ActionForward linkProcessDelete(DynActionForm form, ConnectionSet conSet) throws Exception
      Removes a link between the current process and a linked object
      Parameters:
      form - request form
      conSet - connection set
      Returns:
      JSON response
      Throws:
      Exception - on any error