org.ow2.bonita.pvm.internal.svc
Class CommandProcessService

java.lang.Object
  extended by org.ow2.bonita.pvm.internal.svc.CommandProcessService
All Implemented Interfaces:
ProcessService

public class CommandProcessService
extends java.lang.Object
implements ProcessService

ProcessService implementation that delegates execution of the methods to a CommandService.

Author:
Tom Baeyens

Field Summary
protected  CommandService commandService
           
 
Constructor Summary
CommandProcessService()
           
 
Method Summary
 ProcessDefinition deploy(Deployment deployment)
          deploy a new process definition into the process repository.
 ProcessDefinition deploy(OpenProcessDefinition processDefinition)
           
 ProcessDefinition findLatestProcessDefinition(java.lang.String processDefinitionName)
          latest version of the processDefinition with the given name.
 ProcessDefinition findProcessDefinition(java.lang.String processDefinitionName, int version)
          specific version of a named processDefinition.
 java.util.List<java.lang.String> findProcessDefinitionNames()
          all deployed process names.
 java.util.List<ProcessDefinition> findProcessDefinitions(java.lang.String processDefinitionName)
          all versions of the given process.
 CommandService getCommandService()
           
 void setCommandService(CommandService commandService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commandService

protected CommandService commandService
Constructor Detail

CommandProcessService

public CommandProcessService()
Method Detail

deploy

public ProcessDefinition deploy(OpenProcessDefinition processDefinition)

deploy

public ProcessDefinition deploy(Deployment deployment)
Description copied from interface: ProcessService
deploy a new process definition into the process repository.

Specified by:
deploy in interface ProcessService

findLatestProcessDefinition

public ProcessDefinition findLatestProcessDefinition(java.lang.String processDefinitionName)
Description copied from interface: ProcessService
latest version of the processDefinition with the given name.

Specified by:
findLatestProcessDefinition in interface ProcessService

findProcessDefinition

public ProcessDefinition findProcessDefinition(java.lang.String processDefinitionName,
                                               int version)
Description copied from interface: ProcessService
specific version of a named processDefinition.

Specified by:
findProcessDefinition in interface ProcessService

findProcessDefinitionNames

public java.util.List<java.lang.String> findProcessDefinitionNames()
Description copied from interface: ProcessService
all deployed process names.

Specified by:
findProcessDefinitionNames in interface ProcessService

findProcessDefinitions

public java.util.List<ProcessDefinition> findProcessDefinitions(java.lang.String processDefinitionName)
Description copied from interface: ProcessService
all versions of the given process.

Specified by:
findProcessDefinitions in interface ProcessService

getCommandService

public CommandService getCommandService()

setCommandService

public void setCommandService(CommandService commandService)


Copyright © 2009 OW2 Consortium. All Rights Reserved.