org.jbpm.command
Class GetProcessDefinitionCommand

java.lang.Object
  extended by org.jbpm.command.GetProcessDefinitionCommand
All Implemented Interfaces:
java.io.Serializable, Command

public class GetProcessDefinitionCommand
extends java.lang.Object
implements Command

This Command returns all process definitions (or only the latest if onlyLatest is true)

Author:
Bernd Ruecker (bernd.ruecker@camunda.com)
See Also:
Serialized Form

Constructor Summary
GetProcessDefinitionCommand()
           
GetProcessDefinitionCommand(boolean onlyLatest)
           
 
Method Summary
 java.lang.Object execute(JbpmContext jbpmContext)
           
 boolean isOnlyLatest()
           
 void setOnlyLatest(boolean onlyLatest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetProcessDefinitionCommand

public GetProcessDefinitionCommand()

GetProcessDefinitionCommand

public GetProcessDefinitionCommand(boolean onlyLatest)
Method Detail

execute

public java.lang.Object execute(JbpmContext jbpmContext)
                         throws java.lang.Exception
Specified by:
execute in interface Command
Throws:
java.lang.Exception

isOnlyLatest

public boolean isOnlyLatest()

setOnlyLatest

public void setOnlyLatest(boolean onlyLatest)