public class PrepareWorkflows
extends org.alfresco.bm.event.AbstractEventProcessor
EVENT_NAME_WORKFLOWS_CREATED: No data| Modifier and Type | Field and Description |
|---|---|
static List<String> |
DEFAUL_WORKFLOW_DEFINITIONS |
static String |
EVENT_NAME_WORKFLOWS_CREATED |
| Constructor and Description |
|---|
PrepareWorkflows(WorkflowDataService workflowDataService,
long workflowCount) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
getWorkflowDefinition(long number)
Get the workflow-definition to use for a new process
|
org.alfresco.bm.event.EventResult |
processEvent(org.alfresco.bm.event.Event event) |
void |
setEventNameWorkflowsCreated(String eventNameWorkflowsCreated)
Override the
default event name when processes have been created. |
void |
setWorkflowDefinitions(List<String> workflowDefinitions)
Set the worklfow-definition id's that will be used when creating new processes.
|
public static final String EVENT_NAME_WORKFLOWS_CREATED
public PrepareWorkflows(WorkflowDataService workflowDataService, long workflowCount)
workflowDataService - service to useworkflowCount - number of workflows to createpublic void setEventNameWorkflowsCreated(String eventNameWorkflowsCreated)
default event name when processes have been created.public org.alfresco.bm.event.EventResult processEvent(org.alfresco.bm.event.Event event)
throws Exception
Exceptionpublic void setWorkflowDefinitions(List<String> workflowDefinitions)
workflowDefinitions - the definitions to use. This should be a fully-qualified workflow definition
id, including engine-id. Eg. activiti$adhocprotected String getWorkflowDefinition(long number)
number - a workflow number, cycling back to start if it exceeds the number of workflowsCopyright © 2012. All Rights Reserved.