Package com.activeviam.risk.ref.workflows.batch.impl

In this package, we show how to replace the default workflow processing for events.

In the core product, when new events are received from agents, they are persisted and forwarded to the workflow engine to trigger workflow action IWorkflowService.WorkflowTypes.MONITOR_EVENT. The default action will create a new workflow process for each event.

In this package, we replace this by creating a unique workflow handling all received events in the same pass.
This is done by replacing the extended plugin value EventProcessExecutor.PLUGIN_KEY of type IEventProcessExecutor.
Additionally, a custom WorkflowConfig class is created to use or not the batch system. If configured with BatchWorkflowConfig, batch treatment is applied. Otherwise, it falls back to the default system.