org.nuxeo.ecm.platform.jbpm.web
Class JbpmActionsBean
java.lang.Object
org.nuxeo.ecm.platform.ui.web.invalidations.DocumentContextBoundActionBean
org.nuxeo.ecm.platform.jbpm.web.JbpmActionsBean
- All Implemented Interfaces:
- Serializable, JbpmActions
@Name(value="jbpmActions")
@Scope(value=CONVERSATION)
public class JbpmActionsBean
- extends DocumentContextBoundActionBean
- implements JbpmActions
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
JbpmActionsBean
public JbpmActionsBean()
getCanCreateProcess
public boolean getCanCreateProcess()
throws ClientException
- Specified by:
getCanCreateProcess in interface JbpmActions
- Throws:
ClientException
getCanManageProcess
public boolean getCanManageProcess()
throws ClientException
- Specified by:
getCanManageProcess in interface JbpmActions
- Throws:
ClientException
getCanManageParticipants
public boolean getCanManageParticipants()
throws ClientException
- Specified by:
getCanManageParticipants in interface JbpmActions
- Throws:
ClientException
getCanEndTask
public boolean getCanEndTask(TaskInstance taskInstance)
throws ClientException
- Specified by:
getCanEndTask in interface JbpmActions
- Throws:
ClientException
createProcessInstance
public String createProcessInstance(NuxeoPrincipal principal,
String pd,
DocumentModel dm,
String endLifeCycle)
throws ClientException
- Specified by:
createProcessInstance in interface JbpmActions
- Throws:
ClientException
getCurrentProcess
public ProcessInstance getCurrentProcess()
throws ClientException
- Specified by:
getCurrentProcess in interface JbpmActions
- Throws:
ClientException
getCurrentProcessInitiator
public String getCurrentProcessInitiator()
throws ClientException
- Specified by:
getCurrentProcessInitiator in interface JbpmActions
- Throws:
ClientException
getCurrentProcessDestinationState
public String getCurrentProcessDestinationState()
throws ClientException
- Throws:
ClientException
getCurrentTasks
public List<TaskInstance> getCurrentTasks(String... taskNames)
throws ClientException
- Specified by:
getCurrentTasks in interface JbpmActions
- Throws:
ClientException
getCurrentVirtualTasks
public ArrayList<VirtualTaskInstance> getCurrentVirtualTasks()
throws ClientException
- Specified by:
getCurrentVirtualTasks in interface JbpmActions
- Throws:
ClientException
getShowAddVirtualTaskForm
public boolean getShowAddVirtualTaskForm()
throws ClientException
- Specified by:
getShowAddVirtualTaskForm in interface JbpmActions
- Throws:
ClientException
toggleShowAddVirtualTaskForm
public void toggleShowAddVirtualTaskForm(ActionEvent event)
throws ClientException
- Specified by:
toggleShowAddVirtualTaskForm in interface JbpmActions
- Throws:
ClientException
getNewVirtualTask
public VirtualTaskInstance getNewVirtualTask()
- Specified by:
getNewVirtualTask in interface JbpmActions
addNewVirtualTask
public String addNewVirtualTask()
throws ClientException
- Specified by:
addNewVirtualTask in interface JbpmActions
- Throws:
ClientException
persistProcessInstance
public String persistProcessInstance()
throws ClientException
- Throws:
ClientException
changeVirtualTaskModification
public String changeVirtualTaskModification()
getFormInEditMode
public Boolean getFormInEditMode()
moveDownVirtualTask
public String moveDownVirtualTask(int index)
throws ClientException
- Specified by:
moveDownVirtualTask in interface JbpmActions
- Throws:
ClientException
moveUpVirtualTask
public String moveUpVirtualTask(int index)
throws ClientException
- Specified by:
moveUpVirtualTask in interface JbpmActions
- Throws:
ClientException
removeVirtualTask
public String removeVirtualTask(int index)
throws ClientException
- Specified by:
removeVirtualTask in interface JbpmActions
- Throws:
ClientException
validateTaskDueDate
public void validateTaskDueDate(FacesContext context,
UIComponent component,
Object value)
- Specified by:
validateTaskDueDate in interface JbpmActions
isProcessStarted
public boolean isProcessStarted(String startTaskName)
throws ClientException
- Specified by:
isProcessStarted in interface JbpmActions
- Throws:
ClientException
startProcess
public String startProcess(String startTaskName)
throws ClientException
- Specified by:
startProcess in interface JbpmActions
- Throws:
ClientException
validateTask
public String validateTask(TaskInstance taskInstance,
String transition)
throws ClientException
- Specified by:
validateTask in interface JbpmActions
- Throws:
ClientException
rejectTask
public String rejectTask(TaskInstance taskInstance,
String transition)
throws ClientException
- Specified by:
rejectTask in interface JbpmActions
- Throws:
ClientException
cancelCurrentProcess
public String cancelCurrentProcess()
throws ClientException
- Throws:
ClientException
abandonCurrentProcess
public String abandonCurrentProcess()
throws ClientException
- Specified by:
abandonCurrentProcess in interface JbpmActions
- Throws:
ClientException
getUserComment
public String getUserComment()
- Specified by:
getUserComment in interface JbpmActions
setUserComment
public void setUserComment(String comment)
- Specified by:
setUserComment in interface JbpmActions
getAllowedStateTransitions
public List<String> getAllowedStateTransitions(DocumentRef ref)
throws ClientException
- Description copied from interface:
JbpmActions
- Returns the list of allowed life cycle state transitions for given
document.
- Specified by:
getAllowedStateTransitions in interface JbpmActions
- Throws:
ClientException
resetCurrentData
public void resetCurrentData()
- Specified by:
resetCurrentData in interface JbpmActions
notifyEventListeners
public void notifyEventListeners(String name,
String comment,
String[] recipients)
throws ClientException
- Throws:
ClientException
hasProcessDefinitions
public boolean hasProcessDefinitions(String documentType)
- Description copied from interface:
JbpmActions
- Returns true if given document type has process definitions attached to
it.
- Specified by:
hasProcessDefinitions in interface JbpmActions
- Parameters:
documentType - the document type name
Copyright © 2011 Nuxeo SAS. All Rights Reserved.