org.jbpm.command
Class GetProcessDefinitionsCommand

java.lang.Object
  extended by org.jbpm.command.AbstractBaseCommand
      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)
           
 java.lang.String getAdditionalToStringInformation()
           
 boolean isOnlyLatest()
           
 GetProcessDefinitionsCommand onlyLatest(boolean onlyLatest)
           
 void setOnlyLatest(boolean onlyLatest)
           
 
Methods inherited from class org.jbpm.command.AbstractGetObjectBaseCommand
getJbpmContext, getVariablesToInclude, includeAllVariables, isIncludeAllVariables, retrieveNode, retrieveProcessDefinition, retrieveProcessInstance, retrieveTaskInstanceDetails, retrieveToken, retrieveVariables, retrieveVariables, setIncludeAllVariables, setJbpmContext, setVariablesToInclude, setVariablesToInclude, variablesToInclude, variablesToInclude
 
Methods inherited from class org.jbpm.command.AbstractBaseCommand
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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)

getAdditionalToStringInformation

public java.lang.String getAdditionalToStringInformation()
Overrides:
getAdditionalToStringInformation in class AbstractBaseCommand

onlyLatest

public GetProcessDefinitionsCommand onlyLatest(boolean onlyLatest)


Copyright © 2010 JBoss Community. All Rights Reserved.