public class JcrWorkflowModule extends Object implements WorkflowModule
| Constructor and Description | 
|---|
| JcrWorkflowModule() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addProcessInstanceVariable(String token,
                          long processInstanceId,
                          String name,
                          Object value) | 
| void | addTaskInstanceComment(String token,
                      long taskInstanceId,
                      String message) | 
| void | addTaskInstanceVariable(String token,
                       long taskInstanceId,
                       String name,
                       Object value) | 
| void | addTokenComment(String token,
               long tokenId,
               String message) | 
| void | deleteProcessDefinition(String token,
                       long processDefinitionId)Delete a previously registered process definition. | 
| void | deleteProcessInstance(String token,
                     long processInstanceId) | 
| void | deleteProcessInstanceVariable(String token,
                             long processInstanceId,
                             String name) | 
| void | deleteTaskInstanceVariable(String token,
                          long taskInstanceId,
                          String name) | 
| void | endProcessInstance(String token,
                  long processInstanceId) | 
| void | endTaskInstance(String token,
               long taskInstanceId,
               String transitionName) | 
| void | endToken(String token,
        long tokenId) | 
| List<ProcessDefinition> | findAllProcessDefinitions(String token)Get list of registered process definitions | 
| List<ProcessDefinition> | findAllProcessDefinitionVersions(String token,
                                String name)Get list of registered process definitions versions | 
| ProcessDefinition | findLastProcessDefinition(String token,
                         String name)Get last version of a given process definition. | 
| List<ProcessDefinition> | findLatestProcessDefinitions(String token)Get list of registered process definitions. | 
| List<TaskInstance> | findPooledTaskInstances(String token) | 
| List<ProcessInstance> | findProcessInstances(String token,
                    long processDefinitionId) | 
| List<TaskInstance> | findTaskInstances(String token,
                 long processInstanceId) | 
| List<TaskInstance> | findUserTaskInstances(String token) | 
| ProcessDefinition | getProcessDefinition(String token,
                    long processDefinitionId)Gets a process definition from the engine by the identifier. | 
| Map<String,List<FormElement>> | getProcessDefinitionForms(String token,
                         long processDefinitionId)Obtain a map with the forms defined in the process definition. | 
| byte[] | getProcessDefinitionImage(String token,
                         long processDefinitionId,
                         String node)Get a visual representation of the process definition. | 
| ProcessInstance | getProcessInstance(String token,
                  long processInstanceId) | 
| TaskInstance | getTaskInstance(String token,
               long taskInstanceId) | 
| Token | getToken(String token,
        long tokenId) | 
| void | registerProcessDefinition(String token,
                         InputStream is)Register a new process definition in the workflow engine. | 
| void | resumeProcessInstance(String token,
                     long processInstanceId) | 
| void | resumeTaskInstance(String token,
                  long taskInstanceId) | 
| void | resumeToken(String token,
           long tokenId) | 
| ProcessInstance | runProcessDefinition(String token,
                    long processDefinitionId,
                    String uuid,
                    List<FormElement> variables)Run a process definition to create a process instance: begins a worflow process. | 
| ProcessInstance | sendProcessInstanceSignal(String token,
                         long processInstanceId,
                         String transitionName) | 
| Token | sendTokenSignal(String token,
               long tokenId,
               String transitionName) | 
| void | setTaskInstanceActorId(String token,
                      long taskInstanceId,
                      String actorId) | 
| void | setTaskInstanceValues(String token,
                     long taskInstanceId,
                     String transitionName,
                     List<FormElement> values) | 
| void | setTokenNode(String token,
            long tokenId,
            String nodeName) | 
| void | startTaskInstance(String token,
                 long taskInstanceId) | 
| void | suspendProcessInstance(String token,
                      long processInstanceId) | 
| void | suspendTaskInstance(String token,
                   long taskInstanceId) | 
| void | suspendToken(String token,
            long tokenId) | 
public void registerProcessDefinition(String token, InputStream is) throws ParseException, RepositoryException, WorkflowException, DatabaseException, IOException
WorkflowModuleregisterProcessDefinition in interface WorkflowModuletoken - The session authorization token.is - Input stream where process definition can be read.ParseException - If there is an error parsing the forms.xml file.RepositoryException - If there is a general repository error.WorkflowException - If there is any workflow engine error.DatabaseException - If there is a general database error.IOExceptionpublic void deleteProcessDefinition(String token, long processDefinitionId) throws RepositoryException, DatabaseException, WorkflowException
WorkflowModuledeleteProcessDefinition in interface WorkflowModuletoken - The session authorization token.processDefinitionId - Process definition identifier.RepositoryException - If there is a general repository error.DatabaseException - If there is a general database error.WorkflowException - If there is any workflow engine error.public ProcessDefinition getProcessDefinition(String token, long processDefinitionId) throws RepositoryException, DatabaseException, WorkflowException
WorkflowModulegetProcessDefinition in interface WorkflowModuletoken - The session authorization token.processDefinitionId - Process definition identifier.RepositoryException - If there is a general repository error.DatabaseException - If there is a general database error.WorkflowException - If there is any workflow engine error.public byte[] getProcessDefinitionImage(String token, long processDefinitionId, String node) throws RepositoryException, DatabaseException, WorkflowException
WorkflowModulegetProcessDefinitionImage in interface WorkflowModuletoken - The session authorization token.processDefinitionId - Process definition identifier.node - Mark the designed node as active, if not null.RepositoryException - If there is a general repository error.DatabaseException - If there is a general database error.WorkflowException - If there is any workflow engine error.public Map<String,List<FormElement>> getProcessDefinitionForms(String token, long processDefinitionId) throws ParseException, RepositoryException, DatabaseException, WorkflowException
WorkflowModulegetProcessDefinitionForms in interface WorkflowModuletoken - The session authorization token.processDefinitionId - Process definition identifier.ParseException - If there is an error parsing the forms.xml file.RepositoryException - If there is a general repository error.DatabaseException - If there is a general database error.WorkflowException - If there is any workflow engine error.public ProcessInstance runProcessDefinition(String token, long processDefinitionId, String uuid, List<FormElement> variables) throws RepositoryException, DatabaseException, WorkflowException
WorkflowModulerunProcessDefinition in interface WorkflowModuletoken - The session authorization token.processDefinitionId - Process definition identifier.uuid - Node identifier associated with the created process instance.variables - A list of form elements with variable definitions.RepositoryException - If there is a general repository error.DatabaseException - If there is a general database error.WorkflowException - If there is any workflow engine error.public ProcessInstance sendProcessInstanceSignal(String token, long processInstanceId, String transitionName) throws RepositoryException, DatabaseException, WorkflowException
sendProcessInstanceSignal in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void endProcessInstance(String token, long processInstanceId) throws RepositoryException, DatabaseException, WorkflowException
endProcessInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void deleteProcessInstance(String token, long processInstanceId) throws RepositoryException, DatabaseException, WorkflowException
deleteProcessInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic List<ProcessInstance> findProcessInstances(String token, long processDefinitionId) throws RepositoryException, DatabaseException, WorkflowException
findProcessInstances in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic List<ProcessDefinition> findAllProcessDefinitions(String token) throws RepositoryException, DatabaseException, WorkflowException
WorkflowModulefindAllProcessDefinitions in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic List<ProcessDefinition> findLatestProcessDefinitions(String token) throws RepositoryException, DatabaseException, WorkflowException
WorkflowModulefindLatestProcessDefinitions in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic ProcessDefinition findLastProcessDefinition(String token, String name) throws RepositoryException, DatabaseException, WorkflowException
WorkflowModulefindLastProcessDefinition in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic List<ProcessDefinition> findAllProcessDefinitionVersions(String token, String name) throws RepositoryException, DatabaseException, WorkflowException
WorkflowModulefindAllProcessDefinitionVersions in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic ProcessInstance getProcessInstance(String token, long processInstanceId) throws RepositoryException, DatabaseException, WorkflowException
getProcessInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void suspendProcessInstance(String token, long processInstanceId) throws RepositoryException, DatabaseException, WorkflowException
suspendProcessInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void resumeProcessInstance(String token, long processInstanceId) throws RepositoryException, DatabaseException, WorkflowException
resumeProcessInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void addProcessInstanceVariable(String token, long processInstanceId, String name, Object value) throws RepositoryException, DatabaseException, WorkflowException
addProcessInstanceVariable in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void deleteProcessInstanceVariable(String token, long processInstanceId, String name) throws RepositoryException, DatabaseException, WorkflowException
deleteProcessInstanceVariable in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic List<TaskInstance> findUserTaskInstances(String token) throws RepositoryException, DatabaseException, WorkflowException
findUserTaskInstances in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic List<TaskInstance> findPooledTaskInstances(String token) throws RepositoryException, DatabaseException, WorkflowException
findPooledTaskInstances in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic List<TaskInstance> findTaskInstances(String token, long processInstanceId) throws RepositoryException, DatabaseException, WorkflowException
findTaskInstances in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void setTaskInstanceValues(String token, long taskInstanceId, String transitionName, List<FormElement> values) throws RepositoryException, DatabaseException, WorkflowException
setTaskInstanceValues in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void addTaskInstanceComment(String token, long taskInstanceId, String message) throws RepositoryException, DatabaseException, WorkflowException
addTaskInstanceComment in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic TaskInstance getTaskInstance(String token, long taskInstanceId) throws RepositoryException, DatabaseException, WorkflowException
getTaskInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void setTaskInstanceActorId(String token, long taskInstanceId, String actorId) throws RepositoryException, DatabaseException, WorkflowException
setTaskInstanceActorId in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void addTaskInstanceVariable(String token, long taskInstanceId, String name, Object value) throws RepositoryException, DatabaseException, WorkflowException
addTaskInstanceVariable in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void deleteTaskInstanceVariable(String token, long taskInstanceId, String name) throws RepositoryException, DatabaseException, WorkflowException
deleteTaskInstanceVariable in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void startTaskInstance(String token, long taskInstanceId) throws RepositoryException, DatabaseException, WorkflowException
startTaskInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void endTaskInstance(String token, long taskInstanceId, String transitionName) throws RepositoryException, DatabaseException, WorkflowException
endTaskInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void suspendTaskInstance(String token, long taskInstanceId) throws RepositoryException, DatabaseException, WorkflowException
suspendTaskInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void resumeTaskInstance(String token, long taskInstanceId) throws RepositoryException, DatabaseException, WorkflowException
resumeTaskInstance in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic Token getToken(String token, long tokenId) throws RepositoryException, DatabaseException, WorkflowException
getToken in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void addTokenComment(String token, long tokenId, String message) throws RepositoryException, DatabaseException, WorkflowException
addTokenComment in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void suspendToken(String token, long tokenId) throws RepositoryException, DatabaseException, WorkflowException
suspendToken in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void resumeToken(String token, long tokenId) throws RepositoryException, DatabaseException, WorkflowException
resumeToken in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic Token sendTokenSignal(String token, long tokenId, String transitionName) throws RepositoryException, DatabaseException, WorkflowException
sendTokenSignal in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void setTokenNode(String token, long tokenId, String nodeName) throws RepositoryException, DatabaseException, WorkflowException
setTokenNode in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionpublic void endToken(String token, long tokenId) throws RepositoryException, DatabaseException, WorkflowException
endToken in interface WorkflowModuleRepositoryExceptionDatabaseExceptionWorkflowExceptionCopyright © 2015. All Rights Reserved.