[jBPM] - Re: Event Based Gateway Split - xml parsing error
by Tobias Wittur
Tobias Wittur [http://community.jboss.org/people/tob1as] created the discussion
"Re: Event Based Gateway Split - xml parsing error"
To view the discussion, visit: http://community.jboss.org/message/627474#627474
--------------------------------------------------------------
Thanks Tihomir,
I am happy to help reporting. However, I do not want to spam your issue tracker. So far, most of my findings were known issues already.
Regarding the example.
It seems like the engine does not accept a event based gateway to have any entities inside. Incoming and Outgoing edges within the gateway are not parsed.
This is what oryx would probably produce, since gateways usually have the incoming and outgoing edges inside:
<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>
This is what the designer produces:
<eventBasedGateway id="_2" name="Split" gatewayDirection="Diverging" */>*
The sequence Flows are not within the process tags, but not within the gateway>
<sequenceFlow id="_11-_2" sourceRef="_11" targetRef="_2" />
<sequenceFlow id="_2-_3" sourceRef="_2" targetRef="_3" />
<sequenceFlow id="_2-_4" sourceRef="_2" targetRef="_4" />
The xml of the designer works.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627474#627474]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months
[jBPM] - Simple example of using Log Service task?
by olddave
olddave [http://community.jboss.org/people/olddave] created the discussion
"Simple example of using Log Service task?"
To view the discussion, visit: http://community.jboss.org/message/627464#627464
--------------------------------------------------------------
Hi,
I have a process that has a few Exec that some moving of files around and running a tool before the real work of the Process starts. But they don't seem to work and I cannot see why not. So what would be useful for general debugging is to log some of the output of the statements
So I have a Exec with Java code like this:
if(System.getProperty("os.name").equals("Linux")) {
Runtime.getRuntime().exec("cat ./vendor_files/req/hdr ./vendor_files/req/request ./vendor_files/req/footer > ./vendor_files/req/e_desc.req");
} else if(System.getProperty("os.name").indexOf("Windows") = 0) {
Runtime.getRuntime().exec("copy C:/vendor_files/req/hdr + C:/vendor_files/req/request + C:/vendor_files/req/footer C:/vendor_files/req/e_desc.req");
}
I'd like to have a log service task that logs the output from System.getProperty("os.name") and
Runtime.getRuntime().exec("cat ./vendor_files/req/hdr ./vendor_files/req/request ./vendor_files/req/footer > ./vendor_files/req/e_desc.req");
To see if they work as expected. I see I could run these in the On-entry action, but how to assign to a parameter from here? Also where does thisLog service task log things to?
Thx.
Ed
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627464#627464]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months
[EJB3] - TimerBean: Only one @Timeout on SLSB?
by Pasquale Imbemba
Pasquale Imbemba [http://community.jboss.org/people/pi4630] created the discussion
"TimerBean: Only one @Timeout on SLSB?"
To view the discussion, visit: http://community.jboss.org/message/627369#627369
--------------------------------------------------------------
I've two private methdos on my SLSB, say A and B.
Both methods are annotated with @Timeout, return void, and take Timer as an argument.
Two public methods implemented by the interface are basically doing the same thing: according to which one has been called, the create a TimerInfo instance (a container class [POJO] that implements java.io.Serializable, carrying a "label" and an "element", both String), set this instance as Info when creating the timer. Of course, before I create one, I lookup if a timer with that label and that element already exists.
My client invokes the exposed method that should finish in having method A invoked.
I then set two breakpoints, one at the beginning of A, the other at the beginning of B.
When I debug my SLSB with a timer created with timerInfo set so that method A should be invoked, the breakpoint in A never gets active, but it the one in B! Of course, at the beginning of these private methods I check which timer is calling me and therefore do not execute the logic.
A workaround could be using @Timeout only on *one* method, and then call the A or B according to the TimerInfo set, sort of "deviator" method.
I enclose the sourcecode of my SLSB... I wonder what I've missed or completely got wrong about Timers.
Thanks
~pasquale
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/627369#627369]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months
[jBPM] - problem about jbpm5.1 web console
by HUI LIU
HUI LIU [http://community.jboss.org/people/brianlh] created the discussion
"problem about jbpm5.1 web console"
To view the discussion, visit: http://community.jboss.org/message/614794#614794
--------------------------------------------------------------
I have installed jbpm5.1 by "ant install.demo" and started it.
When I access jbpm5.1.0 web console http://localhost:8080/jbpm-console/app.htm http://localhost:8080/jbpm-console/app.htm and review the process list,
then an exception is thrown out.
Who can give me some advice to solve the problem?
Thanks in advance.
=========================================
URL: 'http://localhost:8080/gwt-console-server/rs/process/definitions' Action: 'org.jboss.bpm.console.client.process.UpdateDefinitionsAction' Exception: 'class com.google.gwt.http.client.RequestException' HTTP 500: Etat HTTP 500 - type Rapport d'exception message description Le serveur a rencontr� une erreur interne () qui l'a emp�ch� de satisfaire la requ�te. exception org.jboss.resteasy.spi.UnhandledException: java.lang.IllegalStateException: Failed to load: org.jbpm.integration.console.ManagementFactoryImpl org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319) org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230) org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360) org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93) org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68) javax.servlet.http.HttpServlet.service(HttpServlet.java:717) org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59) org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)=========================================
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/614794#614794]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 2 months
[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...]
13 years, 2 months