public class ScheduleWorkflows
extends org.alfresco.bm.event.AbstractEventProcessor
EVENT_NAME_PROCESS
: The process name#EVENT_NAME_SCHEDULE_WORKFLOWS
: No dataModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BATCH_SIZE |
static String |
EVENT_NAME_PROCESS |
Constructor and Description |
---|
ScheduleWorkflows(WorkflowDataService workflowDataService,
org.alfresco.bm.user.UserDataService userDataService,
long timeBetweenProcesses) |
Modifier and Type | Method and Description |
---|---|
org.alfresco.bm.event.EventResult |
processEvent(org.alfresco.bm.event.Event event) |
void |
setBatchSize(int batchSize)
Set the size of the batches the unscheduled workflows will be started in.
|
void |
setEventNameProcess(String eventNameProcess)
Override the
default event name to process an event |
public static final int DEFAULT_BATCH_SIZE
public static final String EVENT_NAME_PROCESS
public ScheduleWorkflows(WorkflowDataService workflowDataService, org.alfresco.bm.user.UserDataService userDataService, long timeBetweenProcesses)
mongo
- connection to MongoDBprocessData
- name of DB collection containing process detailsprocessCount
- total number of processes to scheduletimeBetweenProcesses
- how long between each processpublic void setEventNameProcess(String eventNameProcess)
default
event name to process an eventpublic org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event) throws Exception
Exception
public void setBatchSize(int batchSize)
batchSize
- size of a batchCopyright © 2012. All Rights Reserved.