org.alfresco.bm.process
Class PrepareProcesses

java.lang.Object
  extended by org.alfresco.bm.event.AbstractEventProcessor
      extended by 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

Field Summary
static long DEFAULT_USERS_PER_DOMAIN
           
static String EVENT_NAME_PROCESSES_CREATED
           
 
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)
           
 
Method Summary
 org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
           
 void setEventNameUsersCreated(String eventNameProcessesCreated)
          Override the default event name when processes have been created.
 
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

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
Constructor Detail

PrepareProcesses

public PrepareProcesses(org.springframework.data.mongodb.core.MongoTemplate mongo,
                        String processData,
                        long processCount)
Parameters:
mongo - connection to MongoDB
processData - name of DB collection containing process data
processCount - number of unfinished processes to create
Method Detail

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.