public class ScheduleWorkflows
extends org.alfresco.bm.event.AbstractEventProcessor
EVENT_NAME_START_WORKFLOW: the workflow IDEVENT_NAME_SCHEDULE_WORKFLOWS: The process nameEVENT_NAME_WORKFLOWS_SCHEDULED: No data| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_BATCH_SIZE |
static String |
EVENT_NAME_SCHEDULE_WORKFLOWS |
static String |
EVENT_NAME_START_WORKFLOW |
static String |
EVENT_NAME_WORKFLOWS_SCHEDULED |
| Constructor and Description |
|---|
ScheduleWorkflows(WorkflowDAO workflowDAO,
long timeBetweenWorkflows) |
| 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 |
setEventNameScheduleWorkflows(String eventNameScheduleWorkflows)
Override the
default event name |
void |
setEventNameStartWorkflow(String eventNameStartWorkflow)
Override the
default event name |
void |
setEventNameWorkflowsScheduled(String eventNameWorkflowsScheduled)
Override the
default event name |
getName, getWarnDelay, isAutoCloseSessionId, isAutoPropagateSessionId, isChart, processEvent, register, resumeTimer, setAutoCloseSessionId, setAutoPropagateSessionId, setBeanName, setChart, setEventName, setEventNames, setRegistry, setWarnDelay, stopTimer, suspendTimer, toStringpublic static final int DEFAULT_BATCH_SIZE
public static final String EVENT_NAME_START_WORKFLOW
public static final String EVENT_NAME_SCHEDULE_WORKFLOWS
public static final String EVENT_NAME_WORKFLOWS_SCHEDULED
public ScheduleWorkflows(WorkflowDAO workflowDAO, long timeBetweenWorkflows)
public void setEventNameStartWorkflow(String eventNameStartWorkflow)
default event namepublic void setEventNameScheduleWorkflows(String eventNameScheduleWorkflows)
default event namepublic void setEventNameWorkflowsScheduled(String eventNameWorkflowsScheduled)
default event namepublic org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
throws Exception
processEvent in class org.alfresco.bm.event.AbstractEventProcessorExceptionpublic void setBatchSize(int batchSize)
batchSize - size of a batchCopyright © 2016. All rights reserved.