|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface WorkflowManager
The main interface for accessing Daisy's workflow functionality.
This is an optional repository extension component.
All workflow operations are performed through this interface. The returned objects are pure value objects (data snapshots), with no active behaviour.
The WorkflowManager is obtained from the Repository as
follows:
WorkflowManager wfManager = (WorkflowManager)repository.getExtension("WorkflowManager");
In the remote repository API, the WorkflowManager extension can be registered as follows:
RemoteRepositoryManager repositoryManager = ...;
repositoryManager.registerExtension("WorkflowManager",
new Packages.org.outerj.daisy.workflow.clientimpl.RemoteWorkflowManagerProvider());
| Method Summary | |
|---|---|
WfTask |
assignTask(String taskId,
WfActorKey actor,
boolean overwriteSwimlane,
Locale locale)
Assigns (possibly re-assigns) a task to the given actor (user or pools). |
void |
deleteProcess(String processInstanceId)
|
void |
deleteProcessDefinition(String processDefinitionId)
Deletes a workflow definition. |
WfProcessDefinition |
deployProcessDefinition(InputStream is,
String mimeType,
Locale locale)
Defines (deploys) a new workflow definition. |
WfTask |
endTask(String taskId,
TaskUpdateData taskUpdateData,
String transitionName,
Locale locale)
|
List<WfProcessDefinition> |
getAllLatestProcessDefinitions(Locale locale)
Gets a list of the latest versions of all workflow definitions defined in the system. |
List<WfProcessDefinition> |
getAllProcessDefinitions(Locale locale)
Gets a list of all workflow definitions (in all versions) defined in the system. |
List<WfVariable> |
getInitialVariables(String processDefinitionId,
WfVersionKey contextDocument)
Calculates initial values for start-state task variables. |
WfProcessDefinition |
getLatestProcessDefinition(String workflowName,
Locale locale)
|
List<WfTask> |
getMyTasks(Locale locale)
Gets the open tasks for the current user. |
List<WfTask> |
getPooledTasks(Locale locale)
|
WfPoolManager |
getPoolManager()
|
WfProcessInstance |
getProcess(String processInstanceId,
Locale locale)
|
WfProcessDefinition |
getProcessDefinition(String processDefinitionId,
Locale locale)
|
List<WfProcessInstance> |
getProcesses(QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
|
Map<String,Integer> |
getProcessInstanceCounts()
Returns the number of process instances of each process definition. |
WfTask |
getTask(String taskId,
Locale locale)
|
List<WfTask> |
getTasks(QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
|
WfTimer |
getTimer(String timerId,
Locale locale)
|
List<WfTimer> |
getTimers(QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
|
void |
loadSampleWorkflows()
Re-installs the built-in sample workflows. |
WfTask |
requestPooledTask(String taskId,
Locale locale)
|
WfProcessInstance |
resumeProcess(String processInstanceId,
Locale locale)
|
org.outerx.daisy.x10Workflow.SearchResultDocument |
searchProcesses(List<QuerySelectItem> selectItems,
QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
|
org.outerx.daisy.x10Workflow.SearchResultDocument |
searchTasks(List<QuerySelectItem> selectItems,
QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
|
org.outerx.daisy.x10Workflow.SearchResultDocument |
searchTimers(List<QuerySelectItem> selectItems,
QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
|
WfExecutionPath |
signal(String processInstanceId,
String executionPathFullName,
String transitionName,
Locale locale)
|
WfProcessInstance |
startProcess(String processDefinitionId,
TaskUpdateData startTaskData,
String initialTransition,
Locale locale)
|
WfProcessInstance |
suspendProcess(String processInstanceId,
Locale locale)
|
WfTask |
unassignTask(String taskId,
Locale locale)
Unassigns a task from its current assignee, putting it back in the pool. |
WfTask |
updateTask(String taskId,
TaskUpdateData taskUpdateData,
Locale locale)
|
| Method Detail |
|---|
WfPoolManager getPoolManager()
WfProcessDefinition deployProcessDefinition(InputStream is,
String mimeType,
Locale locale)
throws RepositoryException
It is the responsibility of the caller to close the input stream.
mimeType - Use application/zip for zipped workflow archives, or text/xml for XML-described workflows.
RepositoryException
void loadSampleWorkflows()
throws RepositoryException
RepositoryException
void deleteProcessDefinition(String processDefinitionId)
throws RepositoryException
Warning: this removes all process instances that use this workflow definition.
RepositoryException
WfProcessDefinition getProcessDefinition(String processDefinitionId,
Locale locale)
throws RepositoryException
ProcessDefinitionNotFoundException - in case the workflow definition does not exist.
RepositoryException
WfProcessDefinition getLatestProcessDefinition(String workflowName,
Locale locale)
throws RepositoryException
RepositoryException
List<WfProcessDefinition> getAllLatestProcessDefinitions(Locale locale)
throws RepositoryException
RepositoryException
List<WfProcessDefinition> getAllProcessDefinitions(Locale locale)
throws RepositoryException
See getAllLatestProcessDefinitions(Locale) to only get the latest versions.
RepositoryException
Map<String,Integer> getProcessInstanceCounts()
throws RepositoryException
RepositoryException
List<WfVariable> getInitialVariables(String processDefinitionId,
WfVersionKey contextDocument)
throws RepositoryException
RepositoryException
WfProcessInstance startProcess(String processDefinitionId,
TaskUpdateData startTaskData,
String initialTransition,
Locale locale)
throws RepositoryException
startTaskData - parameters for the start task of the workflowinitialTransition - the transition to take from the start node
RepositoryException
WfExecutionPath signal(String processInstanceId,
String executionPathFullName,
String transitionName,
Locale locale)
throws RepositoryException
executionPathFullName - fullName property of the execution pathtransitionName - allowed to be null
RepositoryException
WfProcessInstance getProcess(String processInstanceId,
Locale locale)
throws RepositoryException
RepositoryException
WfTask updateTask(String taskId,
TaskUpdateData taskUpdateData,
Locale locale)
throws RepositoryException
RepositoryException
WfTask endTask(String taskId,
TaskUpdateData taskUpdateData,
String transitionName,
Locale locale)
throws RepositoryException
RepositoryException
WfTask getTask(String taskId,
Locale locale)
throws RepositoryException
RepositoryException
List<WfTask> getMyTasks(Locale locale)
throws RepositoryException
RepositoryException
List<WfTask> getPooledTasks(Locale locale)
throws RepositoryException
RepositoryException
WfTask requestPooledTask(String taskId,
Locale locale)
throws RepositoryException
RepositoryException
WfTask unassignTask(String taskId,
Locale locale)
throws RepositoryException
RepositoryException
WfTask assignTask(String taskId,
WfActorKey actor,
boolean overwriteSwimlane,
Locale locale)
throws RepositoryException
overwriteSwimlane - if the task is associated with a swimlane, should the swimlane be reassigned too? Usually yes.
RepositoryException
List<WfTask> getTasks(QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
throws RepositoryException
chunkOffset - specify -1 to ignorechunkLength - specify -1 to ignore
RepositoryException
org.outerx.daisy.x10Workflow.SearchResultDocument searchTasks(List<QuerySelectItem> selectItems,
QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
throws RepositoryException
RepositoryException
List<WfProcessInstance> getProcesses(QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
throws RepositoryException
RepositoryException
org.outerx.daisy.x10Workflow.SearchResultDocument searchProcesses(List<QuerySelectItem> selectItems,
QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
throws RepositoryException
RepositoryException
void deleteProcess(String processInstanceId)
throws RepositoryException
RepositoryException
WfProcessInstance suspendProcess(String processInstanceId,
Locale locale)
throws RepositoryException
RepositoryException
WfProcessInstance resumeProcess(String processInstanceId,
Locale locale)
throws RepositoryException
RepositoryException
WfTimer getTimer(String timerId,
Locale locale)
throws RepositoryException
RepositoryException
List<WfTimer> getTimers(QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
throws RepositoryException
RepositoryException
org.outerx.daisy.x10Workflow.SearchResultDocument searchTimers(List<QuerySelectItem> selectItems,
QueryConditions queryConditions,
List<QueryOrderByItem> orderByItems,
int chunkOffset,
int chunkLength,
Locale locale)
throws RepositoryException
RepositoryException
|
Daisy Open Source CMS | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||