org.alfresco.bm.workflow
Interface WorkflowExecutor

All Known Implementing Classes:
AdhocWorkflowExecutor, ParallelReviewWorkflowExecutor, ReviewWorkflowExecutor

public interface WorkflowExecutor

Describes a class capable of executing a certain worklfow. This includes starting a workflow and running through it (eg. finishing taks).

Author:
Frederik Heremans

Method Summary
 org.json.simple.JSONObject getStartFormValues(WorkflowData workflow, org.alfresco.bm.user.UserData user)
          Get the values to use when posting the start-form for this WorkflowData instance.
 org.json.simple.JSONObject getTaskFormValues(WorkflowData workflow, org.alfresco.bm.user.UserData user, org.json.simple.JSONObject taskInstance)
          Get the values to use when posting the task-form to complete the task instance.
 

Method Detail

getStartFormValues

org.json.simple.JSONObject getStartFormValues(WorkflowData workflow,
                                              org.alfresco.bm.user.UserData user)
Get the values to use when posting the start-form for this WorkflowData instance.

Parameters:
workflow - the workflow to be started
user - user starting the workflow
Returns:
the JSON to use as request-body

getTaskFormValues

org.json.simple.JSONObject getTaskFormValues(WorkflowData workflow,
                                             org.alfresco.bm.user.UserData user,
                                             org.json.simple.JSONObject taskInstance)
Get the values to use when posting the task-form to complete the task instance.

Parameters:
workflow - worklfow this task is part of
user - user completing the task
taskInstance - JSONObject containing task-instance
Returns:
the JSON to use as request-body


Copyright © 2012. All Rights Reserved.