[jboss-dev-forums] [jBPM Development] - Identifier of the RuntimeManager in JBPM 6.0
marcosdutto
do-not-reply at jboss.com
Fri Jun 14 15:03:42 EDT 2013
marcosdutto [https://community.jboss.org/people/marcosdutto] created the discussion
"Identifier of the RuntimeManager in JBPM 6.0"
To view the discussion, visit: https://community.jboss.org/message/823298#823298
--------------------------------------------------------------
Hi,
I am using JBPM 6 over JBoss7. and i have a problem creating RuntimeManagers. in particular PerRequestRuntimeManager.
This is my code
RuntimeEnvironmentBuilder envBuilder = RuntimeEnvironmentBuilder.getDefault().userGroupCallback(userGroupCallback)
.addAsset(ResourceFactory.newClassPathResource("pruebaBifNuevo.bpmn"), ResourceType.BPMN2);
RuntimeEnvironment environment = envBuilder.get();
RuntimeManager manager = RuntimeManagerFactory.Factory.get().newPerRequestRuntimeManager(environment);
But i can't create more than one manager at the same time because it make an error and throw this exception at Line 30: AbstractRuntimeManager.java
if (activeManagers.contains(identifier)) {
throw new IllegalStateException("RuntimeManager with id " + identifier + " is already active");
}
I can't understand why is throwing that exception, because nobody use the collection activeManagers to get any RuntimeManager. And in particular with a PerRequestRuntimeManager it doesn't have any sense, because I don't care of the identifier, I want only a manager.
Is there something wrong in my code? Where I can submit this bug?
Thanks in advance
Marcos Dutto
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/823298#823298]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130614/8b7c0e11/attachment.html
More information about the jboss-dev-forums
mailing list