org.alfresco.bm.eventprocessor
Class ProgressWorkflow

java.lang.Object
  extended by org.alfresco.bm.event.AbstractEventProcessor
      extended by org.alfresco.bm.http.AuthenticatedHttpEventProcessor
          extended by org.alfresco.bm.eventprocessor.ProgressWorkflow
All Implemented Interfaces:
org.alfresco.bm.event.EventProcessor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware

public class ProgressWorkflow
extends org.alfresco.bm.http.AuthenticatedHttpEventProcessor

Progresses a workflow one step in the process.

Input

Workflow id in mongo

Data

A MongoDB collection containing workflows

Actions

Fetches the workflow from mongo DB and progresses the workflow by completing the next active task. Depending on task-type and workflow-definition, other properties are used in the complete-form.

Output

EVENT_NAME_PROGRESS_WORKFLOW: worklow-id if worklfow isn't finished yet
No next event when worklfow is finished

Author:
Frederik Heremans

Nested Class Summary
 
Nested classes/interfaces inherited from class org.alfresco.bm.http.AuthenticatedHttpEventProcessor
org.alfresco.bm.http.AuthenticatedHttpEventProcessor.HttpRequestCallback<T>
 
Field Summary
static String EVENT_NAME_PROGRESS_WORKFLOW
           
 
Fields inherited from class org.alfresco.bm.event.AbstractEventProcessor
DEFAULT_WARN_DELAY, logger
 
Constructor Summary
ProgressWorkflow(org.alfresco.bm.http.HttpClientProvider httpClientProvider, org.alfresco.bm.http.AuthenticationDetailsProvider authenticationDetailsProvider, WorkflowDataService workflowDataService, org.alfresco.bm.user.UserDataService userDataService, WorkflowExecutorRegistry executorRegistry)
           
 
Method Summary
 org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
           
 
Methods inherited from class org.alfresco.bm.http.AuthenticatedHttpEventProcessor
executeHttpMethodAsAdmin, executeHttpMethodAuthenticated, getAuthDetailProvider, getHttpProvider, setTicketBasedAuthentication
 
Methods inherited from class org.alfresco.bm.event.AbstractEventProcessor
getWarnDelay, register, setBeanName, setEventName, setEventNames, setRegistry, setWarnDelay
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EVENT_NAME_PROGRESS_WORKFLOW

public static final String EVENT_NAME_PROGRESS_WORKFLOW
See Also:
Constant Field Values
Constructor Detail

ProgressWorkflow

public ProgressWorkflow(org.alfresco.bm.http.HttpClientProvider httpClientProvider,
                        org.alfresco.bm.http.AuthenticationDetailsProvider authenticationDetailsProvider,
                        WorkflowDataService workflowDataService,
                        org.alfresco.bm.user.UserDataService userDataService,
                        WorkflowExecutorRegistry executorRegistry)
Method Detail

processEvent

public org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
                                               throws Exception
Specified by:
processEvent in interface org.alfresco.bm.event.EventProcessor
Specified by:
processEvent in class org.alfresco.bm.http.AuthenticatedHttpEventProcessor
Throws:
Exception


Copyright © 2012. All Rights Reserved.