How to configure jBPM6 to load workflow definitions from classpath and filesystem ?

Solution Unverified - Updated -

Issue

  • Users sometimes package a set of custom WorkItemHandlers in their application, and these are present on the classpath when the application starts up. These custom WorkItemHandlers have to be loaded into jBPM6 engine via a drools.rulebase.conf file, a MyWorkItemHandlers.wid file, and a kmodule.xml file, all available in the META-INF directory within the runtime classpath. This design works as expected.
  • Now, there are requirements to dynamically add an additional series of kjars into the application at runtime, such that any workflow definitions, work item handlers and any classes packaged within these jars become available for use by jBPM6 engine and the application as well. Ideally, something similar to the KieScanner might look best suited for these requirements, but users might want to load these kjars from a filesystem directory, rather than from a Maven repository. Is there a way through Kie API or any other means to facilitate users to dynamically make these kjars 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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content