org.alfresco.bm.workflow
Class AdhocWorkflowExecutor

java.lang.Object
  extended by org.alfresco.bm.workflow.AdhocWorkflowExecutor
All Implemented Interfaces:
WorkflowExecutor

public class AdhocWorkflowExecutor
extends Object
implements WorkflowExecutor

Workflow executor that starts an Adhoc Activti process.

Author:
Frederik Heremans

Constructor Summary
AdhocWorkflowExecutor()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdhocWorkflowExecutor

public AdhocWorkflowExecutor()
Method Detail

getStartFormValues

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

Specified by:
getStartFormValues in interface WorkflowExecutor
Parameters:
workflow - the workflow to be started
user - user starting the workflow
Returns:
the JSON to use as request-body

getTaskFormValues

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

Specified by:
getTaskFormValues in interface WorkflowExecutor
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.