org.jbpm.command
Class GetProcessDefinitionsCommand

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

public class GetProcessDefinitionsCommand
extends AbstractGetObjectBaseCommand

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
GetProcessDefinitionsCommand()
           
GetProcessDefinitionsCommand(boolean onlyLatest)
           
 
Method Summary
 java.lang.Object execute(JbpmContext jbpmContext)
           
 boolean isOnlyLatest()
           
 void setOnlyLatest(boolean onlyLatest)
           
 
Methods inherited from class org.jbpm.command.AbstractGetObjectBaseCommand
getJbpmContext, getVariablesToInclude, isIncludeAllVariables, retrieveNode, retrieveProcessDefinition, retrieveProcessInstance, retrieveTaskInstanceDetails, retrieveToken, retrieveVariables, retrieveVariables, setIncludeAllVariables, setJbpmContext, setVariablesToInclude, setVariablesToInclude
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetProcessDefinitionsCommand

public GetProcessDefinitionsCommand()

GetProcessDefinitionsCommand

public GetProcessDefinitionsCommand(boolean onlyLatest)
Method Detail

execute

public java.lang.Object execute(JbpmContext jbpmContext)
                         throws java.lang.Exception
Throws:
java.lang.Exception

isOnlyLatest

public boolean isOnlyLatest()

setOnlyLatest

public void setOnlyLatest(boolean onlyLatest)