org.jbpm.command.impl
Class CommandServiceImpl

java.lang.Object
  extended by org.jbpm.command.impl.CommandServiceImpl
All Implemented Interfaces:
java.io.Serializable, CommandService

public class CommandServiceImpl
extends java.lang.Object
implements CommandService, java.io.Serializable

The command service provides access the jBPM engine and its related services. Access is provided through a set of Command derived operations.

Author:
Jim Rigsbee, Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  JbpmConfiguration jbpmConfiguration
           
 
Constructor Summary
CommandServiceImpl(JbpmConfiguration jbpmConfiguration)
          Establish an instance of the command service with a particular configuration.
 
Method Summary
 java.lang.Object execute(Command command)
          Executes command based on its current context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

jbpmConfiguration

protected final JbpmConfiguration jbpmConfiguration
Constructor Detail

CommandServiceImpl

public CommandServiceImpl(JbpmConfiguration jbpmConfiguration)
Establish an instance of the command service with a particular configuration.

Parameters:
jbpmConfiguration - jBPM Configuration
Method Detail

execute

public java.lang.Object execute(Command command)
Executes command based on its current context. Each command contains the appropriate context information such as token, process instance, etc. to insure that the operation is carried out on the proper graph object.

Specified by:
execute in interface CommandService
Parameters:
command - jBPM engine command to execute
Returns:
an object. The types of objects is determined by the command implementation. See those docs for more details on the return object.


Copyright © 2009 JBoss, a division of Red Hat. All Rights Reserved.