Package org.ametys.plugins.bpm.process
Class CreateProcessAction
- java.lang.Object
-
- org.apache.avalon.framework.logger.AbstractLogEnabled
-
- org.apache.cocoon.acting.AbstractAction
-
- org.apache.cocoon.acting.ServiceableAction
-
- org.ametys.plugins.bpm.process.CreateProcessAction
-
- All Implemented Interfaces:
Component
,LogEnabled
,Serviceable
,Action
public class CreateProcessAction extends ServiceableAction
Action for creating or editing a process
-
-
Field Summary
Fields Modifier and Type Field Description private BPMWorkflowManager
_bpmWorkflowManager
private AmetysObjectResolver
_resolver
private static String
PARAM_ATTACHMENTS
private static String
PARAM_ATTACHMENTS_UNTOUCHED
private static String
PARAM_DESCRIPTION
private static String
PARAM_PROCESS_ID
private static String
PARAM_TITLE
private static String
PARAM_WORKFLOW
-
Fields inherited from class org.apache.cocoon.acting.ServiceableAction
manager
-
Fields inherited from class org.apache.cocoon.acting.AbstractAction
EMPTY_MAP
-
-
Constructor Summary
Constructors Constructor Description CreateProcessAction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private String
_createProcess(String workflowId, String title, String description, String site, List<PartOnDisk> uploadedAttachments)
private void
_editProcess(String processId, String title, String description, List<String> attachmentsUntouchedObject, List<PartOnDisk> uploadedAttachments)
Map
act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters)
void
service(ServiceManager smanager)
-
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
-
-
-
-
Field Detail
-
PARAM_PROCESS_ID
private static final String PARAM_PROCESS_ID
- See Also:
- Constant Field Values
-
PARAM_WORKFLOW
private static final String PARAM_WORKFLOW
- See Also:
- Constant Field Values
-
PARAM_TITLE
private static final String PARAM_TITLE
- See Also:
- Constant Field Values
-
PARAM_DESCRIPTION
private static final String PARAM_DESCRIPTION
- See Also:
- Constant Field Values
-
PARAM_ATTACHMENTS
private static final String PARAM_ATTACHMENTS
- See Also:
- Constant Field Values
-
PARAM_ATTACHMENTS_UNTOUCHED
private static final String PARAM_ATTACHMENTS_UNTOUCHED
- See Also:
- Constant Field Values
-
_bpmWorkflowManager
private BPMWorkflowManager _bpmWorkflowManager
-
_resolver
private AmetysObjectResolver _resolver
-
-
Constructor Detail
-
CreateProcessAction
public CreateProcessAction()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Overrides:
service
in classServiceableAction
- Throws:
ServiceException
-
act
public Map act(Redirector redirector, SourceResolver resolver, Map objectModel, String source, Parameters parameters) throws Exception
- Throws:
Exception
-
_createProcess
private String _createProcess(String workflowId, String title, String description, String site, List<PartOnDisk> uploadedAttachments) throws IllegalAccessException, com.opensymphony.workflow.WorkflowException
- Throws:
IllegalAccessException
com.opensymphony.workflow.WorkflowException
-
_editProcess
private void _editProcess(String processId, String title, String description, List<String> attachmentsUntouchedObject, List<PartOnDisk> uploadedAttachments) throws com.opensymphony.workflow.WorkflowException
- Throws:
com.opensymphony.workflow.WorkflowException
-
-