@Service(value="blProcessSystemEventBuilder") public class ProcessSystemEventBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected Map<String,SystemEventFactory> |
eventFactories |
protected ScheduledJobService |
jobService |
protected com.broadleafcommerce.process.service.ProcessService |
processService |
protected List<SystemEventFactory> |
unsortedFactories |
Constructor and Description |
---|
ProcessSystemEventBuilder() |
Modifier and Type | Method and Description |
---|---|
protected void |
addEnabled(com.broadleafcommerce.process.domain.Process process,
SystemEvent event) |
protected void |
addPriority(com.broadleafcommerce.process.domain.Process process,
SystemEvent event) |
protected void |
addScopeType(com.broadleafcommerce.process.domain.Process process,
SystemEvent event) |
protected void |
addSerialExecution(com.broadleafcommerce.process.domain.Process process,
SystemEvent event) |
protected void |
addUniversal(com.broadleafcommerce.process.domain.Process process,
SystemEvent event) |
protected void |
addWorkerType(com.broadleafcommerce.process.domain.Process process,
SystemEvent event) |
SystemEvent |
build(Long processId) |
protected SystemEvent |
buildSystemEvent(Long processId)
We're setting the event type to
ProcessExecutionSystemEventConsumer.EVENT_TYPE , so that this event will
be picked up by ProcessExecutionSystemEventConsumer which should find the Process by id, then
pass the process to the ProcessExecutionManager for execution. |
protected SystemEvent |
buildSystemEvent(ScheduledJob job,
Long processId)
We're setting the event type to
ProcessExecutionSystemEventConsumer.EVENT_TYPE , so that this event will
be picked up by ProcessExecutionSystemEventConsumer which should find the Process by id, then
pass the process to the ProcessExecutionManager for execution. |
void |
init() |
protected com.broadleafcommerce.process.service.ProcessService processService
protected ScheduledJobService jobService
@Autowired(required=false) protected List<SystemEventFactory> unsortedFactories
protected Map<String,SystemEventFactory> eventFactories
@PostConstruct public void init()
public SystemEvent build(Long processId)
protected SystemEvent buildSystemEvent(ScheduledJob job, Long processId)
ProcessExecutionSystemEventConsumer.EVENT_TYPE
, so that this event will
be picked up by ProcessExecutionSystemEventConsumer
which should find the Process
by id, then
pass the process to the ProcessExecutionManager
for execution.protected SystemEvent buildSystemEvent(Long processId)
ProcessExecutionSystemEventConsumer.EVENT_TYPE
, so that this event will
be picked up by ProcessExecutionSystemEventConsumer
which should find the Process
by id, then
pass the process to the ProcessExecutionManager
for execution.protected void addSerialExecution(com.broadleafcommerce.process.domain.Process process, SystemEvent event)
protected void addEnabled(com.broadleafcommerce.process.domain.Process process, SystemEvent event)
protected void addUniversal(com.broadleafcommerce.process.domain.Process process, SystemEvent event)
protected void addWorkerType(com.broadleafcommerce.process.domain.Process process, SystemEvent event)
protected void addScopeType(com.broadleafcommerce.process.domain.Process process, SystemEvent event)
protected void addPriority(com.broadleafcommerce.process.domain.Process process, SystemEvent event)
Copyright © 2020. All rights reserved.