org.exoplatform.services.workflow.impl.jbpm
Class WorkflowServiceContainerImpl

java.lang.Object
  extended by org.exoplatform.services.workflow.impl.jbpm.WorkflowServiceContainerImpl
All Implemented Interfaces:
org.exoplatform.container.component.ComponentRequestLifecycle, WorkflowServiceContainer, org.picocontainer.Startable

public class WorkflowServiceContainerImpl
extends java.lang.Object
implements WorkflowServiceContainer, org.picocontainer.Startable, org.exoplatform.container.component.ComponentRequestLifecycle

Created by the eXo platform team User: Benjamin Mestrallet Date: 28 juin 2004


Field Summary
 
Fields inherited from interface org.exoplatform.services.workflow.WorkflowServiceContainer
ACTOR_ID_KEY_SEPARATOR
 
Constructor Summary
WorkflowServiceContainerImpl(org.exoplatform.services.organization.OrganizationService orgService, WorkflowFileDefinitionService fileDefinitionService, org.exoplatform.container.configuration.ConfigurationManager conf, org.exoplatform.container.xml.InitParams params)
           
 
Method Summary
 void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
          Add a plugin to the Workflow service.
 void closeJbpmContext()
           
 void closeJbpmContext(org.jbpm.JbpmContext jbpmContext)
           
 void deleteProcess(java.lang.String processId)
           
 void deleteProcessInstance(java.lang.String processInstanceId)
           
 void deployProcess(java.io.InputStream iS)
           
 void destroyComponent(org.exoplatform.container.ExoContainer arg0)
           
 void endRequest(org.exoplatform.container.ExoContainer arg0)
           
 void endTask(java.lang.String taskId, java.util.Map variables)
           
 void endTask(java.lang.String taskId, java.util.Map variables, java.lang.String transition)
           
 java.util.List<Task> getAllTasks(java.lang.String user)
           
 WorkflowFileDefinitionService getFileDefinitionService()
           
 java.util.List<Task> getGroupTaskList(java.lang.String user)
           
 Process getProcess(java.lang.String processId)
           
 java.util.List<Process> getProcesses()
           
 ProcessInstance getProcessInstance(java.lang.String processInstance)
           
 java.util.List<ProcessInstance> getProcessInstances(java.lang.String processId)
           
 Task getTask(java.lang.String taskId)
           
 java.util.List<Task> getTasks(java.lang.String processInstanceId)
           
 java.util.List<Timer> getTimers()
           
 java.util.List<Task> getUserTaskList(java.lang.String user)
           
 java.util.Map getVariables(java.lang.String processInstanceId, java.lang.String taskId)
           
 boolean hasStartTask(java.lang.String processId)
           
 void initComponent(org.exoplatform.container.ExoContainer container)
           
 org.jbpm.JbpmContext openJbpmContext()
           
 void start()
           
 void startProcess(java.lang.String processId)
           
 void startProcess(java.lang.String remoteUser, java.lang.String processId, java.util.Map variables)
           
 void startProcessFromName(java.lang.String remoteUser, java.lang.String processName, java.util.Map variables)
           
 void startRequest(org.exoplatform.container.ExoContainer arg0)
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WorkflowServiceContainerImpl

public WorkflowServiceContainerImpl(org.exoplatform.services.organization.OrganizationService orgService,
                                    WorkflowFileDefinitionService fileDefinitionService,
                                    org.exoplatform.container.configuration.ConfigurationManager conf,
                                    org.exoplatform.container.xml.InitParams params)
                             throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

addPlugin

public void addPlugin(org.exoplatform.container.component.ComponentPlugin plugin)
               throws java.lang.Exception
Add a plugin to the Workflow service. This method currently only supports plugins to deploy predefined processes.

Specified by:
addPlugin in interface WorkflowServiceContainer
Parameters:
plugin - the plugin to add
Throws:
java.lang.Exception - if the plugin type is unknown.

initComponent

public void initComponent(org.exoplatform.container.ExoContainer container)
                   throws java.lang.Exception
Throws:
java.lang.Exception

start

public void start()
Specified by:
start in interface org.picocontainer.Startable

destroyComponent

public void destroyComponent(org.exoplatform.container.ExoContainer arg0)
                      throws java.lang.Exception
Throws:
java.lang.Exception

openJbpmContext

public org.jbpm.JbpmContext openJbpmContext()

closeJbpmContext

public void closeJbpmContext()

closeJbpmContext

public void closeJbpmContext(org.jbpm.JbpmContext jbpmContext)

getAllTasks

public java.util.List<Task> getAllTasks(java.lang.String user)
                                 throws java.lang.Exception
Specified by:
getAllTasks in interface WorkflowServiceContainer
Throws:
java.lang.Exception

getUserTaskList

public java.util.List<Task> getUserTaskList(java.lang.String user)
Specified by:
getUserTaskList in interface WorkflowServiceContainer

getGroupTaskList

public java.util.List<Task> getGroupTaskList(java.lang.String user)
                                      throws java.lang.Exception
Specified by:
getGroupTaskList in interface WorkflowServiceContainer
Throws:
java.lang.Exception

getProcesses

public java.util.List<Process> getProcesses()
Specified by:
getProcesses in interface WorkflowServiceContainer

hasStartTask

public boolean hasStartTask(java.lang.String processId)
Specified by:
hasStartTask in interface WorkflowServiceContainer

startProcess

public void startProcess(java.lang.String processId)
Specified by:
startProcess in interface WorkflowServiceContainer

startProcess

public void startProcess(java.lang.String remoteUser,
                         java.lang.String processId,
                         java.util.Map variables)
Specified by:
startProcess in interface WorkflowServiceContainer

startProcessFromName

public void startProcessFromName(java.lang.String remoteUser,
                                 java.lang.String processName,
                                 java.util.Map variables)
Specified by:
startProcessFromName in interface WorkflowServiceContainer

getProcessInstances

public java.util.List<ProcessInstance> getProcessInstances(java.lang.String processId)
Specified by:
getProcessInstances in interface WorkflowServiceContainer

getTasks

public java.util.List<Task> getTasks(java.lang.String processInstanceId)
Specified by:
getTasks in interface WorkflowServiceContainer

getProcess

public Process getProcess(java.lang.String processId)
Specified by:
getProcess in interface WorkflowServiceContainer

getTask

public Task getTask(java.lang.String taskId)
Specified by:
getTask in interface WorkflowServiceContainer

getProcessInstance

public ProcessInstance getProcessInstance(java.lang.String processInstance)
Specified by:
getProcessInstance in interface WorkflowServiceContainer

getVariables

public java.util.Map getVariables(java.lang.String processInstanceId,
                                  java.lang.String taskId)
Specified by:
getVariables in interface WorkflowServiceContainer

endTask

public void endTask(java.lang.String taskId,
                    java.util.Map variables)
Specified by:
endTask in interface WorkflowServiceContainer

endTask

public void endTask(java.lang.String taskId,
                    java.util.Map variables,
                    java.lang.String transition)
Specified by:
endTask in interface WorkflowServiceContainer

getTimers

public java.util.List<Timer> getTimers()
Specified by:
getTimers in interface WorkflowServiceContainer

deployProcess

public void deployProcess(java.io.InputStream iS)
                   throws java.io.IOException
Specified by:
deployProcess in interface WorkflowServiceContainer
Throws:
java.io.IOException

deleteProcess

public void deleteProcess(java.lang.String processId)
Specified by:
deleteProcess in interface WorkflowServiceContainer

deleteProcessInstance

public void deleteProcessInstance(java.lang.String processInstanceId)
Specified by:
deleteProcessInstance in interface WorkflowServiceContainer

startRequest

public void startRequest(org.exoplatform.container.ExoContainer arg0)
Specified by:
startRequest in interface org.exoplatform.container.component.ComponentRequestLifecycle

endRequest

public void endRequest(org.exoplatform.container.ExoContainer arg0)
Specified by:
endRequest in interface org.exoplatform.container.component.ComponentRequestLifecycle

getFileDefinitionService

public WorkflowFileDefinitionService getFileDefinitionService()
Specified by:
getFileDefinitionService in interface WorkflowServiceContainer

stop

public void stop()
Specified by:
stop in interface org.picocontainer.Startable


Copyright © 2011 eXo Platform SAS. All Rights Reserved.