Package com.aquima.interactions.process
Class ProcessEngineFactory
java.lang.Object
com.aquima.interactions.process.ProcessEngineFactory
- All Implemented Interfaces:
IProcessEngineFactory
Factory class which knows how to construct a process engine.
- Since:
- 7.1
- Author:
- Jon van Leuven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(IProcessExtensionFactory factory, IProcessEngineDS processEngineDataSource, IRuleEngine ruleEngine, IMetaModel model, IProject project, IProcessCaseDao dao, ProcessSettings settings, ILicenseProvider licenseProvider, ITraceEngine traceEngine, IScheduler scheduler, ILegacyToggles legacyToggles) This method creates a new process engine using the specified data source.static IProcessEngineFactory
Acquires an instance of IProcessEngineFactory.static void
setFactory
(IProcessEngineFactory factory) Sets a new process engine factory.
-
Field Details
-
Constructor Details
-
Method Details
-
getInstance
Acquires an instance of IProcessEngineFactory. A different implementation can be registered to the ClassFactory by thePROPERTY
constant within this class. Note: Once constructed the actual factory is statically cached. therefore once this class is loaded always the same instance is returned.- Returns:
- The actual factory implementation.
-
setFactory
Sets a new process engine factory.- Parameters:
factory
- the new process engine factory
-
create
public IProcessEngine create(IProcessExtensionFactory factory, IProcessEngineDS processEngineDataSource, IRuleEngine ruleEngine, IMetaModel model, IProject project, IProcessCaseDao dao, ProcessSettings settings, ILicenseProvider licenseProvider, ITraceEngine traceEngine, IScheduler scheduler, ILegacyToggles legacyToggles) Description copied from interface:IProcessEngineFactory
This method creates a new process engine using the specified data source.- Specified by:
create
in interfaceIProcessEngineFactory
- Parameters:
factory
- The factory used by the processengine.processEngineDataSource
- The data source providing the flow information.ruleEngine
- Rule engine containing the various business rules and the expression parser.model
- The model that should be used for the case data.project
- The project that contains object definitions.dao
- The DAO that should be used to persist process information.settings
- processEngine settings to uselicenseProvider
- The optional license provider that is used to check if process engine construction is allowed.traceEngine
- The trace engine to usescheduler
- The scheduler used for controlling jobs.legacyToggles
- parameter for providing legacy behavior for temporarily support of backwards compatibility.- Returns:
- Process engine implementation for the specified data source.
-