org.alfresco.bm.process
Class PrepareProcesses
java.lang.Object
org.alfresco.bm.event.AbstractEventProcessor
org.alfresco.bm.process.PrepareProcesses
- All Implemented Interfaces:
- org.alfresco.bm.event.EventProcessor, org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanNameAware
public class PrepareProcesses
- extends org.alfresco.bm.event.AbstractEventProcessor
Prepare a specific number of processes.
This merely creates the test-local data that will be used for later processing.
Input
No input requirements
Data
A MongoDB collection (either empty or with existing process data).
Actions
Examines the MongoDB collection and ensures that there are at least a certain number
of unfinished processes existing.
Output
EVENT_NAME_PROCESSES_CREATED: No data
- Since:
- 1.0
- Author:
- Derek Hulley
| Fields inherited from class org.alfresco.bm.event.AbstractEventProcessor |
DEFAULT_WARN_DELAY, logger |
|
Constructor Summary |
PrepareProcesses(org.springframework.data.mongodb.core.MongoTemplate mongo,
String processData,
long processCount)
|
| 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 |
DEFAULT_USERS_PER_DOMAIN
public static final long DEFAULT_USERS_PER_DOMAIN
- See Also:
- Constant Field Values
EVENT_NAME_PROCESSES_CREATED
public static final String EVENT_NAME_PROCESSES_CREATED
- See Also:
- Constant Field Values
PrepareProcesses
public PrepareProcesses(org.springframework.data.mongodb.core.MongoTemplate mongo,
String processData,
long processCount)
- Parameters:
mongo - connection to MongoDBprocessData - name of DB collection containing process dataprocessCount - number of unfinished processes to create
setEventNameUsersCreated
public void setEventNameUsersCreated(String eventNameProcessesCreated)
- Override the
default event name when processes have been created.
processEvent
public org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
throws Exception
- Throws:
Exception
Copyright © 2012. All Rights Reserved.