How to configure jBPM6 to load workflow definitions from classpath and filesystem ?
Issue
- Users sometimes package a set of
custom WorkItemHandlers
in their application, and these are present on theclasspath
when the application starts up. Thesecustom WorkItemHandlers
have to be loaded intojBPM6 engine
via adrools.rulebase.conf
file, aMyWorkItemHandlers.wid
file, and akmodule.xml
file, all available in theMETA-INF
directory within the runtimeclasspath
. This design works as expected. - Now, there are requirements to dynamically add an additional series of
kjar
s into the application at runtime, such that any workflow definitions, work item handlers and any classes packaged within these jars become available for use byjBPM6 engine
and the application as well. Ideally, something similar to theKieScanner
might look best suited for these requirements, but users might want to load thesekjar
s from a filesystem directory, rather than from aMaven repository
. Is there a way throughKie API
or any other means to facilitate users to dynamically make thesekjar
s loaded and available to the runtime ?
Environment
- Red Hat JBoss BPM Suite (BPMS)
- 6.0.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.