org.jbpm.command
Class GetProcessInstancesCommand
java.lang.Object
org.jbpm.command.AbstractGetObjectBaseCommand
org.jbpm.command.GetProcessInstancesCommand
- All Implemented Interfaces:
- java.io.Serializable, Command
public class GetProcessInstancesCommand
- extends AbstractGetObjectBaseCommand
This command can retrieve all process instances (e.g. for admin client).
You have the possibility to filter the command, therefor use the available
attributes
- Author:
- Bernd Ruecker (bernd.ruecker@camunda.com)
- See Also:
- Serialized Form
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 |
GetProcessInstancesCommand
public GetProcessInstancesCommand()
execute
public java.lang.Object execute(JbpmContext jbpmContext)
throws java.lang.Exception
- Throws:
java.lang.Exception
retrieveProcessInstanceDetails
public java.util.List retrieveProcessInstanceDetails(java.util.List processInstanceList)
- access everything on all processInstance objects, which is not in the
default fetch group from hibernate, but needs to be accesible from the
client
overwrite this, if you need more details in your client
getFromStartDate
public java.util.Date getFromStartDate()
setFromStartDate
public void setFromStartDate(java.util.Date fromStartDate)
isOnlyRunning
public boolean isOnlyRunning()
setOnlyRunning
public void setOnlyRunning(boolean onlyRunning)
getProcessName
public java.lang.String getProcessName()
setProcessName
public void setProcessName(java.lang.String processName)
getStateName
public java.lang.String getStateName()
setStateName
public void setStateName(java.lang.String stateName)
getUntilStartDate
public java.util.Date getUntilStartDate()
setUntilStartDate
public void setUntilStartDate(java.util.Date untilStartDate)