Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.jbpm.web
Class JbpmActionsBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.ui.web.invalidations.DocumentContextBoundActionBean
      extended by org.nuxeo.ecm.platform.jbpm.web.JbpmActionsBean
All Implemented Interfaces:
java.io.Serializable, JbpmActions

@Name(value="jbpmActions")
@Scope(value=CONVERSATION)
public class JbpmActionsBean
extends DocumentContextBoundActionBean
implements JbpmActions

Author:
Anahide Tchertchian
See Also:
Serialized Form

Constructor Summary
JbpmActionsBean()
           
 
Method Summary
 java.lang.String abandonCurrentProcess()
           
 java.lang.String addNewVirtualTask()
           
 java.lang.String cancelCurrentProcess()
           
 java.lang.String createProcessInstance(NuxeoPrincipal principal, java.lang.String pd, DocumentModel dm, java.lang.String endLifeCycle)
           
 java.util.List<java.lang.String> getAllowedStateTransitions(DocumentRef ref)
          Returns the list of allowed life cycle state transitions for given document.
 boolean getCanCreateProcess()
           
 boolean getCanEndTask(TaskInstance taskInstance)
           
 boolean getCanManageParticipants()
           
 boolean getCanManageProcess()
           
 ProcessInstance getCurrentProcess()
           
 java.lang.String getCurrentProcessDestinationState()
           
 java.lang.String getCurrentProcessInitiator()
           
 java.util.List<TaskInstance> getCurrentTasks(java.lang.String... taskNames)
           
 java.util.ArrayList<VirtualTaskInstance> getCurrentVirtualTasks()
           
 VirtualTaskInstance getNewVirtualTask()
           
 boolean getShowAddVirtualTaskForm()
           
 java.lang.String getUserComment()
           
 boolean isProcessStarted(java.lang.String startTaskName)
           
 java.lang.String moveDownVirtualTask(int index)
           
 java.lang.String moveUpVirtualTask(int index)
           
 void notifyEventListeners(java.lang.String name, java.lang.String comment, java.lang.String[] recipients)
           
 java.lang.String rejectTask(TaskInstance taskInstance, java.lang.String transition)
           
 java.lang.String removeVirtualTask(int index)
           
 void resetCurrentData()
           
 void setUserComment(java.lang.String comment)
           
 java.lang.String startProcess(java.lang.String startTaskName)
           
 void toggleShowAddVirtualTaskForm(javax.faces.event.ActionEvent event)
           
 java.lang.String validateTask(TaskInstance taskInstance, java.lang.String transition)
           
 void validateTaskDueDate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
           
 
Methods inherited from class org.nuxeo.ecm.platform.ui.web.invalidations.DocumentContextBoundActionBean
onContextChange
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JbpmActionsBean

public JbpmActionsBean()
Method Detail

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 java.lang.String createProcessInstance(NuxeoPrincipal principal,
                                              java.lang.String pd,
                                              DocumentModel dm,
                                              java.lang.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 java.lang.String getCurrentProcessInitiator()
                                            throws ClientException
Specified by:
getCurrentProcessInitiator in interface JbpmActions
Throws:
ClientException

getCurrentProcessDestinationState

public java.lang.String getCurrentProcessDestinationState()
                                                   throws ClientException
Throws:
ClientException

getCurrentTasks

public java.util.List<TaskInstance> getCurrentTasks(java.lang.String... taskNames)
                                             throws ClientException
Specified by:
getCurrentTasks in interface JbpmActions
Throws:
ClientException

getCurrentVirtualTasks

public java.util.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(javax.faces.event.ActionEvent event)
                                  throws ClientException
Specified by:
toggleShowAddVirtualTaskForm in interface JbpmActions
Throws:
ClientException

getNewVirtualTask

public VirtualTaskInstance getNewVirtualTask()
Specified by:
getNewVirtualTask in interface JbpmActions

addNewVirtualTask

public java.lang.String addNewVirtualTask()
                                   throws ClientException
Specified by:
addNewVirtualTask in interface JbpmActions
Throws:
ClientException

moveDownVirtualTask

public java.lang.String moveDownVirtualTask(int index)
                                     throws ClientException
Specified by:
moveDownVirtualTask in interface JbpmActions
Throws:
ClientException

moveUpVirtualTask

public java.lang.String moveUpVirtualTask(int index)
                                   throws ClientException
Specified by:
moveUpVirtualTask in interface JbpmActions
Throws:
ClientException

removeVirtualTask

public java.lang.String removeVirtualTask(int index)
                                   throws ClientException
Specified by:
removeVirtualTask in interface JbpmActions
Throws:
ClientException

validateTaskDueDate

public void validateTaskDueDate(javax.faces.context.FacesContext context,
                                javax.faces.component.UIComponent component,
                                java.lang.Object value)
Specified by:
validateTaskDueDate in interface JbpmActions

isProcessStarted

public boolean isProcessStarted(java.lang.String startTaskName)
                         throws ClientException
Specified by:
isProcessStarted in interface JbpmActions
Throws:
ClientException

startProcess

public java.lang.String startProcess(java.lang.String startTaskName)
                              throws ClientException
Specified by:
startProcess in interface JbpmActions
Throws:
ClientException

validateTask

public java.lang.String validateTask(TaskInstance taskInstance,
                                     java.lang.String transition)
                              throws ClientException
Specified by:
validateTask in interface JbpmActions
Throws:
ClientException

rejectTask

public java.lang.String rejectTask(TaskInstance taskInstance,
                                   java.lang.String transition)
                            throws ClientException
Specified by:
rejectTask in interface JbpmActions
Throws:
ClientException

cancelCurrentProcess

public java.lang.String cancelCurrentProcess()
                                      throws ClientException
Throws:
ClientException

abandonCurrentProcess

public java.lang.String abandonCurrentProcess()
                                       throws ClientException
Specified by:
abandonCurrentProcess in interface JbpmActions
Throws:
ClientException

getUserComment

public java.lang.String getUserComment()
Specified by:
getUserComment in interface JbpmActions

setUserComment

public void setUserComment(java.lang.String comment)
Specified by:
setUserComment in interface JbpmActions

getAllowedStateTransitions

public java.util.List<java.lang.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(java.lang.String name,
                                 java.lang.String comment,
                                 java.lang.String[] recipients)
                          throws ClientException
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.