Package org.flowable.cmmn.engine
Class CmmnEngines
java.lang.Object
org.flowable.cmmn.engine.CmmnEngines
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static List<EngineInfo>
protected static Map<String,
EngineInfo> protected static Map<String,
EngineInfo> protected static Map<String,
CmmnEngine> protected static boolean
static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static CmmnEngine
buildCmmnEngine
(URL resource) static void
destroy()
closes all cmmn engines.static CmmnEngine
getCmmnEngine
(String cmmnEngineName) Obtain a cmmn engine by name.static EngineInfo
getCmmnEngineInfo
(String cmmnEngineName) Get initialization results.static List<EngineInfo>
Get initialization results.static Map<String,
CmmnEngine> provides access to cmmn engine to application clients in a managed server environment.static CmmnEngine
static void
init()
Initializes all CMMN engines that can be found on the classpath for resourcesflowable.cmmn.cfg.xml
and for resourcesflowable-cmmn-context.xml
(Spring style configuration).protected static void
initCmmnEngineFromSpringResource
(URL resource) static boolean
static void
registerCmmnEngine
(CmmnEngine cmmnEngine) Registers the given cmmn engine.static EngineInfo
retries to initialize a cmmn engine that previously failed.static void
setInitialized
(boolean isInitialized) static void
unregister
(CmmnEngine cmmnEngine) Unregisters the given cmmn engine.
-
Field Details
-
NAME_DEFAULT
- See Also:
-
isInitialized
protected static boolean isInitialized -
cmmnEngines
-
cmmnEngineInfosByName
-
cmmnEngineInfosByResourceUrl
-
cmmnEngineInfos
-
-
Constructor Details
-
CmmnEngines
public CmmnEngines()
-
-
Method Details
-
init
public static void init()Initializes all CMMN engines that can be found on the classpath for resourcesflowable.cmmn.cfg.xml
and for resourcesflowable-cmmn-context.xml
(Spring style configuration). -
initCmmnEngineFromSpringResource
-
registerCmmnEngine
Registers the given cmmn engine. NoEngineInfo
will be available for this cmmn engine. An engine that is registered will be closed when thedestroy()
is called. -
unregister
Unregisters the given cmmn engine. -
buildCmmnEngine
-
getCmmnEngineInfos
Get initialization results. -
getCmmnEngineInfo
Get initialization results. Only info will we available for cmmn engines which were added in theinit()
. NoEngineInfo
is available for engines which were registered programmatically. -
getDefaultCmmnEngine
-
getCmmnEngine
Obtain a cmmn engine by name.- Parameters:
cmmnEngineName
- is the name of the cmmn engine or null for the default cmmn engine.
-
retry
retries to initialize a cmmn engine that previously failed. -
getCmmnEngines
provides access to cmmn engine to application clients in a managed server environment. -
destroy
public static void destroy()closes all cmmn engines. This method should be called when the server shuts down. -
isInitialized
public static boolean isInitialized() -
setInitialized
public static void setInitialized(boolean isInitialized)
-