[
https://jira.jboss.org/jira/browse/JBPM-1210?page=com.atlassian.jira.plug...
]
Andries Inze updated JBPM-1210:
-------------------------------
Attachment: spring-jbpm-24022009-patch.zip
Added new svn patch (24022009)
Allows for the following process definitions:
<?xml version="1.0" encoding="UTF-8"?>
<process name="Spring">
<start>
<transition to="test" />
</start>
<spring name="test">
<bean>testBean</bean>
<method>testMethod</method>
<transition to="testWithParameters" />
</spring>
<spring name="testWithParameters">
<bean>testBean</bean>
<method>testMethodWithParameters</method>
<parameters>
<string value="a good test" />
</parameters>
<transition to="exclusive spring test" />
</spring>
<exclusive name="exclusive spring test"
handler-ref="testBean">
<transition name="no" to="wait" />
<transition name="yes" to="wait" />
</exclusive>
<state name="wait" />
</process>
The handler-ref refers to a spring bean.
spring configuration support
----------------------------
Key: JBPM-1210
URL:
https://jira.jboss.org/jira/browse/JBPM-1210
Project: JBoss jBPM
Issue Type: Feature Request
Components: PVM
Reporter: Tom Baeyens
Assignee: Mauricio Salatino
Priority: Minor
Fix For: jBPM 4.0.x
Attachments: spring-jbpm-24022009-patch.zip, spring-jbpm-v1.7z,
spring-jbpm-v1.zip
The first goal is to create an EnvironmentFactory implementation that is based on spring
configuration.
The class to complete is org.jbpm.pvm.internal.env.SpringEnvironmentFactory
The SpringEnvironmentFactory should relate to a spring ApplicationContext, I believe.
The first thing to do is create a test that shows how a spring configuration can be used
to create hibernate sessions.
Something like this:
static EnvironmentFactory environmentFactory =
SpringEnvironmentFactory.parseResource("org/jbpm/pvm/spring/springbeans.xml");
Environment environment = environmentFactory.openEnvironment();
try {
Session hibernateSession = environment.get(Session.class);
assertNotNull(hibernateSession);
} finally {
environment.close();
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira