Package com.activeviam.risk.ref.cfg.impl
Class RiskWorkflowConfig
- java.lang.Object
-
- com.activeviam.risk.ref.cfg.impl.RiskWorkflowConfig
-
@Configuration public class RiskWorkflowConfig extends Object
- Author:
- QuartetFS
-
-
Field Summary
Fields Modifier and Type Field Description protected org.springframework.core.env.Environment
env
static String
PRIVATE
The Private workflow schemestatic String
PRODUCTION
The Approval workflow schemecom.qfs.snl.cfg.impl.ActiveMonitorServiceConfiguration
serviceConfig
-
Constructor Summary
Constructors Constructor Description RiskWorkflowConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Void
injectServices()
[Optional] Injects objects into plugin values.protected Void
registerDefaultWorkflows()
[Optional] [Bean] Registers default workflows to use for entities.Void
registerWorkflows()
Registers a list of workflows with the workflow serviceVoid
registerWorkflowSchemes()
Register workflow schemes with the workflow service.
-
-
-
Field Detail
-
serviceConfig
@Autowired public com.qfs.snl.cfg.impl.ActiveMonitorServiceConfiguration serviceConfig
-
PRODUCTION
public static final String PRODUCTION
The Approval workflow scheme- See Also:
- Constant Field Values
-
PRIVATE
public static final String PRIVATE
The Private workflow scheme- See Also:
- Constant Field Values
-
env
@Autowired protected org.springframework.core.env.Environment env
-
-
Method Detail
-
registerWorkflows
@Bean public Void registerWorkflows()
Registers a list of workflows with the workflow serviceWorkflow configurations are not persisted since it is easy to recreate it programmatically on each start of the server and that is not meant to evolve while the application runs.
This bean maps names to a given configuration of Activiti process id and a workflow unit key. Those names will then be used inside schemes, that groups a set of configurations.- Returns:
- Void
-
registerWorkflowSchemes
@DependsOn("registerWorkflows") @Bean public Void registerWorkflowSchemes()
Register workflow schemes with the workflow service.Workflow schemes regroup a set of workflow configurations within a single name.
This is useful to create meaningful groups instead of letting the user select manually one by one each workflows.- Returns:
- Void
-
registerDefaultWorkflows
@Bean @DependsOn("registerWorkflowSchemes") @Conditional(InitialMonitorLoadingCondition.class) protected Void registerDefaultWorkflows()
[Optional] [Bean] Registers default workflows to use for entities.- Returns:
- null
-
injectServices
@Bean public Void injectServices()
[Optional] Injects objects into plugin values.- Returns:
- null
-
-