Drools Flow migration to jBPM 5

If you are smart and wants to migrate from Drools Flow to jBPM 5 remember to configure the processInstanceFactory and processSignalFactory, using a Properties object or configuring them into the drools.conf file, before the creation of a KnowledgeSession.

Properties properties = new Properties();
KnowledgeSessionConfiguration config = KnowledgeBaseFactory.newKnowledgeSessionConfiguration(properties);
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession(config, EnvironmentFactory.newEnvironment());

otherwise you’ll obtain this RuntimeException

java.lang.RuntimeException: java.lang.ClassNotFoundException: Unable to load class: org.drools.process.instance.impl.DefaultProcessInstanceManagerFactory

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s