@Name(value="jbpmActions") @Scope(value=CONVERSATION) public class JbpmActionsBean extends DocumentContextBoundActionBean implements JbpmActions
Constructor and Description |
---|
JbpmActionsBean() |
onContextChange
public boolean getCanCreateProcess() throws ClientException
getCanCreateProcess
in interface JbpmActions
ClientException
public boolean getCanManageProcess() throws ClientException
getCanManageProcess
in interface JbpmActions
ClientException
public boolean getCanManageParticipants() throws ClientException
getCanManageParticipants
in interface JbpmActions
ClientException
public boolean getCanEndTask(TaskInstance taskInstance) throws ClientException
getCanEndTask
in interface JbpmActions
ClientException
public String createProcessInstance(NuxeoPrincipal principal, String pd, DocumentModel dm, String endLifeCycle) throws ClientException
createProcessInstance
in interface JbpmActions
ClientException
public ProcessInstance getCurrentProcess() throws ClientException
getCurrentProcess
in interface JbpmActions
ClientException
public String getCurrentProcessInitiator() throws ClientException
getCurrentProcessInitiator
in interface JbpmActions
ClientException
public String getCurrentProcessDestinationState() throws ClientException
ClientException
public List<TaskInstance> getCurrentTasks(String... taskNames) throws ClientException
getCurrentTasks
in interface JbpmActions
ClientException
public ArrayList<VirtualTaskInstance> getCurrentVirtualTasks() throws ClientException
getCurrentVirtualTasks
in interface JbpmActions
ClientException
public boolean getShowAddVirtualTaskForm() throws ClientException
getShowAddVirtualTaskForm
in interface JbpmActions
ClientException
public void toggleShowAddVirtualTaskForm(ActionEvent event) throws ClientException
toggleShowAddVirtualTaskForm
in interface JbpmActions
ClientException
public VirtualTaskInstance getNewVirtualTask()
getNewVirtualTask
in interface JbpmActions
public String addNewVirtualTask() throws ClientException
addNewVirtualTask
in interface JbpmActions
ClientException
public String persistProcessInstance() throws ClientException
ClientException
public String changeVirtualTaskModification()
public Boolean getFormInEditMode()
public String moveDownVirtualTask(int index) throws ClientException
moveDownVirtualTask
in interface JbpmActions
ClientException
public String moveUpVirtualTask(int index) throws ClientException
moveUpVirtualTask
in interface JbpmActions
ClientException
public String removeVirtualTask(int index) throws ClientException
removeVirtualTask
in interface JbpmActions
ClientException
public void validateTaskDueDate(FacesContext context, UIComponent component, Object value)
validateTaskDueDate
in interface JbpmActions
public boolean isProcessStarted(String startTaskName) throws ClientException
isProcessStarted
in interface JbpmActions
ClientException
public String startProcess(String startTaskName) throws ClientException
startProcess
in interface JbpmActions
ClientException
public String validateTask(TaskInstance taskInstance, String transition) throws ClientException
validateTask
in interface JbpmActions
ClientException
public String rejectTask(TaskInstance taskInstance, String transition) throws ClientException
rejectTask
in interface JbpmActions
ClientException
public String cancelCurrentProcess() throws ClientException
ClientException
public String abandonCurrentProcess() throws ClientException
abandonCurrentProcess
in interface JbpmActions
ClientException
public String getUserComment()
getUserComment
in interface JbpmActions
public void setUserComment(String comment)
setUserComment
in interface JbpmActions
public List<String> getAllowedStateTransitions(DocumentRef ref) throws ClientException
JbpmActions
getAllowedStateTransitions
in interface JbpmActions
ClientException
public void resetCurrentData()
resetCurrentData
in interface JbpmActions
public void notifyEventListeners(String name, String comment, String[] recipients) throws ClientException
ClientException
public boolean hasProcessDefinitions(String documentType)
JbpmActions
hasProcessDefinitions
in interface JbpmActions
documentType
- the document type nameCopyright © 2011 Nuxeo SA. All Rights Reserved.