org.jbpm.pvm.internal.cmd
Class CompositeCmd

java.lang.Object
  extended by org.jbpm.pvm.internal.cmd.AbstractCommand<java.lang.Void>
      extended by org.jbpm.pvm.internal.cmd.CompositeCmd
All Implemented Interfaces:
java.io.Serializable, Command<java.lang.Void>

public class CompositeCmd
extends AbstractCommand<java.lang.Void>

container for executing multiple commands in one transaction.

Author:
Tom Baeyens
See Also:
Serialized Form

Field Summary
protected  java.util.List<Command<?>> commands
           
 
Constructor Summary
CompositeCmd()
           
 
Method Summary
 void addCommand(Command<?> command)
           
 java.lang.Void execute(Environment environment)
           
 
Methods inherited from class org.jbpm.pvm.internal.cmd.AbstractCommand
getAuthenticatedUserId, setAuthenticatedUserId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

commands

protected java.util.List<Command<?>> commands
Constructor Detail

CompositeCmd

public CompositeCmd()
Method Detail

execute

public java.lang.Void execute(Environment environment)
                       throws java.lang.Exception
Throws:
java.lang.Exception

addCommand

public void addCommand(Command<?> command)


Copyright © 2010 JBoss Community. All Rights Reserved.