org.exoplatform.services.workflow.impl.jbpm
Class WorkflowServiceContainerImpl
java.lang.Object
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
|
Constructor Summary |
WorkflowServiceContainerImpl(org.exoplatform.services.organization.OrganizationService orgService,
WorkflowFileDefinitionService fileDefinitionService,
org.exoplatform.container.configuration.ConfigurationManager conf,
org.exoplatform.container.xml.InitParams params)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
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 © 2010 eXo Platform SAS. All Rights Reserved.