org.alfresco.bm.process
Class ExecuteProcess
java.lang.Object
org.alfresco.bm.event.AbstractEventProcessor
org.alfresco.bm.process.ExecuteProcess
- All Implemented Interfaces:
- org.alfresco.bm.event.EventProcessor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
public class ExecuteProcess
- extends org.alfresco.bm.event.AbstractEventProcessor
Execute an unfinished process
Input
Process name
Data
A MongoDB collection containing unprocessed data.
Actions
Fetches the process from the MongoDB collection and executes it.
There is no real processing for this sample, but the basic principle of
running a process from associated data, marking it as done and recording
the result is demonstrated.
A certain number of failures are demostrated as well.
Output
EVENT_NAME_PROCESS_DONE: The process name
- Since:
- 1.0
- Author:
- Derek Hulley
| Fields inherited from class org.alfresco.bm.event.AbstractEventProcessor |
DEFAULT_WARN_DELAY, logger |
|
Constructor Summary |
ExecuteProcess(org.springframework.data.mongodb.core.MongoTemplate mongo,
String processData)
|
| 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 |
EVENT_NAME_PROCESS_DONE
public static final String EVENT_NAME_PROCESS_DONE
- See Also:
- Constant Field Values
ExecuteProcess
public ExecuteProcess(org.springframework.data.mongodb.core.MongoTemplate mongo,
String processData)
- Parameters:
mongo - connection to MongoDBprocessData - name of DB collection containing process details
setEventNameProcessDone
public void setEventNameProcessDone(String eventNameProcessDone)
- Override the
default event name for 'process done'.
processEvent
public org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
throws Exception
- Throws:
Exception
Copyright © 2012. All Rights Reserved.