[jBPM] - Event Based Gateway Split - xml parsing error
by Tobias Wittur
Tobias Wittur [http://community.jboss.org/people/tob1as] created the discussion
"Event Based Gateway Split - xml parsing error"
To view the discussion, visit: http://community.jboss.org/message/627360#627360
--------------------------------------------------------------
hi,
I am trying to use an event based gateway split. Since oryx is not saving event based splits, I modeled a parallel gateway instead.
I then tried to change the xml manually and execute it with the engine. However, I received an error. See at the bottom:
http://community.jboss.org/servlet/JiveServlet/showImage/2-627360-17015/C... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-627360-170...
The parallel gateway:
<bpmn2:parallelGateway id="_DF4A4948-3BEF-4E89-869E-8D44E1541900" name="Should be event split" gatewayDirection="Diverging">
<bpmn2:incoming>_C763BDA9-C7BA-4308-A6B1-746CA4ABE974</bpmn2:incoming>
<bpmn2:outgoing>_DE06FFCD-C6F8-4F01-8EC8-BCED4B8FC022</bpmn2:outgoing>
<bpmn2:outgoing>_847F1835-11D2-4D6E-A06B-FCEB3733DC34</bpmn2:outgoing>
</bpmn2:parallelGateway>
The manually changed event based gateway:
<bpmn2:eventBasedGateway id="_DF4A4948-3BEF-4E89-869E-8D44E1541900" name="Should be event split" gatewayDirection="Diverging">
<bpmn2:incoming>_C763BDA9-C7BA-4308-A6B1-746CA4ABE974</bpmn2:incoming>
<bpmn2:outgoing>_DE06FFCD-C6F8-4F01-8EC8-BCED4B8FC022</bpmn2:outgoing>
<bpmn2:outgoing>_847F1835-11D2-4D6E-A06B-FCEB3733DC34</bpmn2:outgoing>
</bpmn2:eventBasedGateway>
The error:
Element type "bpmn2:eventBasedGateway" must be followed by either attribute specifications, ">" or "/>".
I then erased the 3 red lines:
<bpmn2:eventBasedGateway id="_DF4A4948-3BEF-4E89-869E-8D44E1541900" name="Should be event split" gatewayDirection="Diverging">
<bpmn2:incoming>_C763BDA9-C7BA-4308-A6B1-746CA4ABE974</bpmn2:incoming>
<bpmn2:outgoing>_DE06FFCD-C6F8-4F01-8EC8-BCED4B8FC022</bpmn2:outgoing>
<bpmn2:outgoing>_847F1835-11D2-4D6E-A06B-FCEB3733DC34</bpmn2:outgoing>
</bpmn2:eventBasedGateway>
The parsing works, but of course the connections to the nodes following nodes are gone :( .
How could I go on from here?
Best regards,
Tobias
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627360#627360]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[jBPM] - When to call kSession.dispose()?
by Ryan Peterson
Ryan Peterson [http://community.jboss.org/people/rrpeterson] created the discussion
"When to call kSession.dispose()?"
To view the discussion, visit: http://community.jboss.org/message/627318#627318
--------------------------------------------------------------
I was wondering: How often should kSession.dispose() be called for any given session?
For instance, suppose you have the following:
// create kSession
JPAKnowledgeService.newStatefulKnowledgeSession()
// do some operations with kSession:
ksession.getWorkItemManager().registerWorkItemHandler(x, y);
...
// start the process instance
kSession.startProcess(processId, params)
// Should kSession.dispose() be called here, since we're doing doing work on the ksession for now?
Suppose we re-load the session later:
JPAKnowledgeService.loadStatefulKnowledgeSession()
// Should kSession.dispose() only be called here?
I'm mostly unsure if .dispose() needs to be called after each transaction with a kSession, or if it should only be called once the kSession is complete/aborted?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627318#627318]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[jBPM] - jBPM, Drools, AS7 does any of this work? Very confusing what is needed.
by Jim Dwyer
Jim Dwyer [http://community.jboss.org/people/JimDwyer] created the discussion
"jBPM, Drools, AS7 does any of this work? Very confusing what is needed."
To view the discussion, visit: http://community.jboss.org/message/625800#625800
--------------------------------------------------------------
I have been banging on this integration for to long. I have been integrating jBPM and AS7. It seems to be up and running as the jbpm-client and jbpm-client-server are running (with a few console exceptions ) in AS7. I have the jBPM5.1 database using Postgres. So things are integrating but it is slow going.
I went to upload a process definition and according to http://docs.jboss.org/jbpm/v5.1/userguide/ch15.html http://docs.jboss.org/jbpm/v5.1/userguide/ch15.html I need the Drools guvnor up and running as well. This is fine I want to use Drools anyway.
I have searched the web and forums for answers to the following questions. There seems to be much talk about things but no definative answers. If somebody can shed some light on my questions it would be appreciated.
Questions:
What is the best tool to use for developing jBPM workflows? Drools flow? Eclipse? BPMN2? Can I deploy a process from there?
How do I load a jBPM process definition into jBPM5.1? I would like to drop it in a directory on AS7 and have AS7 pick it up automatically and deploy it. Is that possible?
How do I define jBPM users and groups? I am using the user.properties and roles.properties files included in the jbpm-console-server and am able to log into the jbpm console. Are these the same users and groups for the jbpm tasks? It doesn't seem to be the case. If not: How do I load users and groups into jBPM5.1?
What version of Drools should I use for AS7? Has anybody integrated this successfully? Does drools 5.2 install into AS7? I was reading that there are issues and that drools 5.4 would fix them. Drools 5.4 doesn't seem to be available for download. Now what?
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/625800#625800]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 6 months
[Javassist] - how to get ClassPool in EclipseApplication
by Dennis Knotz
Dennis Knotz [http://community.jboss.org/people/sprigg] created the discussion
"how to get ClassPool in EclipseApplication"
To view the discussion, visit: http://community.jboss.org/message/627204#627204
--------------------------------------------------------------
Hi,
I have a problem with getting the ClassPool in my EclipseApplication.
Here's the Use Case: I have an EclipseApplication where I can "run" my Interpreter for diagrams. To evaluate the guards i wanted to change an evaluation method, so i can use the whole java spectrum of conditions without writing my own Parser.
Now my problem: testing in an small java project worked perfectly, but integrating the "evaluation-classes" into my application won't work. Debugging says that the ClassPool.getDefault(); throws an Exception (unfortunately a non catchable).
And the question: what am i doing wron? is there any other way to get the ClassPool? Or is there any other way to manipulate classes without that pool?
Here is the Code of my Evaluator ok, it's not a beauty ;-):
try{
ClassPool pool = ClassPool.getDefault();
[...]
}catch(Exception e)
{e.printStackTrace();}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627204#627204]
Start a new discussion in Javassist at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 7 months