| org.outerj.daisy.workflow.WorkflowManager
All known Subclasses: org.outerj.daisy.workflow.clientimpl.RemoteWorkflowManager, org.outerj.daisy.workflow.serverimpl.WorkflowManagerImpl,
WorkflowManager | public interface WorkflowManager (Code) | | 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
org.outerj.daisy.repository.Repository 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. | WfPoolManager | getPoolManager() | List<WfTask> | getPooledTasks(Locale locale) | WfProcessInstance | getProcess(String processInstanceId, Locale locale) | WfProcessDefinition | getProcessDefinition(String processDefinitionId, Locale locale) | Map<String, Integer> | getProcessInstanceCounts() Returns the number of process instances of each process definition. | List<WfProcessInstance> | getProcesses(QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) | 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) | SearchResultDocument | searchProcesses(List<QuerySelectItem> selectItems, QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) | SearchResultDocument | searchTasks(List<QuerySelectItem> selectItems, QueryConditions queryConditions, List<QueryOrderByItem> orderByItems, int chunkOffset, int chunkLength, Locale locale) | 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) |
assignTask | WfTask assignTask(String taskId, WfActorKey actor, boolean overwriteSwimlane, Locale locale) throws RepositoryException(Code) | | Assigns (possibly re-assigns) a task to the given actor (user or pools).
Parameters: overwriteSwimlane - if the task is associated with a swimlane, should the swimlane be reassigned too? Usually yes. |
deleteProcessDefinition | void deleteProcessDefinition(String processDefinitionId) throws RepositoryException(Code) | | Deletes a workflow definition.
Warning: this removes all process instances that use this workflow definition.
|
deployProcessDefinition | WfProcessDefinition deployProcessDefinition(InputStream is, String mimeType, Locale locale) throws RepositoryException(Code) | | Defines (deploys) a new workflow definition.
It is the responsibility of the caller to close the input stream.
Parameters: mimeType - Use application/zip for zipped workflow archives, or text/xml for XML-described workflows. |
getProcessInstanceCounts | Map<String, Integer> getProcessInstanceCounts() throws RepositoryException(Code) | | Returns the number of process instances of each process definition. The key in the map
is the process definition id, the value the instance count.
|
loadSampleWorkflows | void loadSampleWorkflows() throws RepositoryException(Code) | | Re-installs the built-in sample workflows. Can be useful after upgrading.
|
unassignTask | WfTask unassignTask(String taskId, Locale locale) throws RepositoryException(Code) | | Unassigns a task from its current assignee, putting it back in the pool. Unassignment
is not allowed if there are no pooled actors to fall back too.
|
|
|