org.jbpm.command
Class GetProcessInstancesCommand
java.lang.Object
org.jbpm.command.AbstractBaseCommand
org.jbpm.command.AbstractGetObjectBaseCommand
org.jbpm.command.GetProcessInstancesCommand
- All Implemented Interfaces:
- 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, includeAllVariables, isIncludeAllVariables, retrieveNode, retrieveProcessDefinition, retrieveProcessInstance, retrieveTaskInstanceDetails, retrieveToken, retrieveVariables, retrieveVariables, setIncludeAllVariables, setJbpmContext, setVariablesToInclude, setVariablesToInclude, variablesToInclude, variablesToInclude |
GetProcessInstancesCommand
public GetProcessInstancesCommand()
execute
public Object execute(JbpmContext jbpmContext)
throws Exception
- Throws:
Exception
retrieveProcessInstanceDetails
public List retrieveProcessInstanceDetails(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 Date getFromStartDate()
setFromStartDate
public void setFromStartDate(Date fromStartDate)
isOnlyRunning
public boolean isOnlyRunning()
setOnlyRunning
public void setOnlyRunning(boolean onlyRunning)
getProcessName
public String getProcessName()
- Deprecated.
setProcessName
public void setProcessName(String processName)
- Deprecated.
getProcessDefinitionName
public String getProcessDefinitionName()
setProcessDefinitionName
public void setProcessDefinitionName(String processName)
getStateName
public String getStateName()
setStateName
public void setStateName(String stateName)
getUntilStartDate
public Date getUntilStartDate()
setUntilStartDate
public void setUntilStartDate(Date untilStartDate)
getVersion
public String getVersion()
setVersion
public void setVersion(String version)
getProcessInstanceId
public long getProcessInstanceId()
setProcessInstanceId
public void setProcessInstanceId(long processId)
getProcessId
public long getProcessId()
- Deprecated.
setProcessId
public void setProcessId(long processId)
- Deprecated.
getAdditionalToStringInformation
public String getAdditionalToStringInformation()
- Overrides:
getAdditionalToStringInformation in class AbstractBaseCommand
fromStartDate
public GetProcessInstancesCommand fromStartDate(Date fromStartDate)
onlyRunning
public GetProcessInstancesCommand onlyRunning(boolean onlyRunning)
processDefinitionName
public GetProcessInstancesCommand processDefinitionName(String processName)
stateName
public GetProcessInstancesCommand stateName(String stateName)
untilStartDate
public GetProcessInstancesCommand untilStartDate(Date untilStartDate)
version
public GetProcessInstancesCommand version(String version)
processInstanceId
public GetProcessInstancesCommand processInstanceId(long processId)
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.