Class ProcessLinkProcessAction
java.lang.Object
org.apache.struts.action.Action
org.apache.struts.actions.BaseAction
org.apache.struts.actions.DispatchAction
org.bgerp.action.base.BaseAction
org.bgerp.action.ProcessAction
ru.bgcrm.struts.action.ProcessLinkAction
org.bgerp.action.ProcessLinkProcessAction
Actions for linking processes to a process: listing, creating and removing links
-
Field Summary
Fields inherited from class BaseAction
l, MAPPER, PATH_JSP_ADMIN, PATH_JSP_OPEN, PATH_JSP_USER, PATH_JSP_USERMOB, setupFields inherited from class org.apache.struts.actions.DispatchAction
clazz, methods, typesFields inherited from class org.apache.struts.actions.BaseAction
messagesFields inherited from class org.apache.struts.action.Action
servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.struts.action.ActionForwardaddCreated(DynActionForm form, ConnectionSet conSet) Opens the form for creating a new process to linkorg.apache.struts.action.ActionForwardaddExisting(DynActionForm form, ConnectionSet conSet) Returns existing processes that can be linked, excluding already linked onesstatic ProcesslinkProcessCreate(Connection con, DynActionForm form, Process linkedProcess, int typeId, String linkObjectType, int createTypeId, String description, int groupId) Creates a new process linked to the given one, optionally by a configured creation rule, copying parameters and links when configuredorg.apache.struts.action.ActionForwardlinkProcessCreate(DynActionForm form, Connection con) Creates a new process and links it to the current oneorg.apache.struts.action.ActionForwardlinkProcessDelete(DynActionForm form, ConnectionSet conSet) Removes a link between the current process and a linked objectorg.apache.struts.action.ActionForwardlinkProcessExisting(DynActionForm form, ConnectionSet conSet) Links the selected existing processes to the current oneorg.apache.struts.action.ActionForwardshowCategory(DynActionForm form, ConnectionSet conSet) Returns the linked processes of a given link categoryorg.apache.struts.action.ActionForwardunspecified(DynActionForm form, ConnectionSet conSet) Default action method if no parameter 'action' passed.Methods inherited from class ProcessLinkAction
linkedProcessCreate, linkedProcessListMethods inherited from class ProcessAction
doCreateWizard, getProcess, getProcessType, messagePossibleProcessList, process, processClone, processCreate, processCreate, processCreate, processCreateAndGet, processCreateGroups, processCreateTypes, processDelete, processDelete, processDeleteTmp, processDescriptionAdd, processDescriptionUpdate, processExecutorsEdit, processExecutorsSwap, processExecutorsUpdate, processExecutorsUpdate, processFinishCreateTmp, processGroupsEdit, processGroupsUpdate, processGroupsUpdate, processMerge, processMergeEdit, processPriorityEdit, processPriorityUpdate, processPriorityUpdate, processStatusEdit, processStatusHistory, processStatusUpdate, processStatusUpdate, processTypeEdit, processTypes, processTypeUpdate, unionLog, userProcessListMethods inherited from class BaseAction
checkModified, dispatchMethod, getParameter, html, html, json, json, permissionCheck, restoreRequestParams, unspecified, updatePersonalizationMethods inherited from class org.apache.struts.actions.DispatchAction
cancelled, execute, getMethod, getMethodName, unspecifiedMethods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
-
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:BaseActionDefault action method if no parameter 'action' passed. Overwrite and implement.- Overrides:
unspecifiedin classProcessAction- 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 formconSet- 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 formconSet- 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 formcon- 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 connectionform- request formlinkedProcess- process to link the new one totypeId- type of the process to create, used when no creation rule is givenlinkObjectType- link object typecreateTypeId- ID of the creation rule from configuration, or non-positive to skipdescription- description of the new processgroupId- 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 formconSet- 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 formconSet- 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 formconSet- connection set- Returns:
- JSON response
- Throws:
Exception- on any error
-