In the release notes for jbpm 6.0, it says:
jBPM Services (CDI): To simplify integration of jBPM inside CDI-based applications, the jbpm-services module contains various CDI services that you can configure and use inside your application simply by injecting the necessary services (like a RuntimeManager or TaskService for example) inside your application, making integration easier than ever. (Chapter 25. Release Notes)
How would I actually go about doing this?
For example, say I have the following class:
package com.company;
import org.kie.api.runtime.manager.RuntimeManager;
public class MyWorkflowManager
{
private RuntimeManager runtimeManager;
public void setRuntimeManager( RuntimeManager runtimeManager )
{
this.runtimeManager = runtimeManager;
}
// ...
}
And the following spring context:
<beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd"> <bean id="myWorkflowManager" class="com.company.MyWorkflowManager"> <property name="runtimeManager" ??? /> </bean> </beans>
How would I wire up the RuntimeManager as the "runtimeManager" property of my class?