[jboss-user] [JBoss jBPM] - Re: EventListener does not get executed?
"kukeltje" wrote : | If you want to fire this event on e.g. node-enter, use the correct event name. | I read the user guide again, what you meant is by default, the event attribute of on element can only be either "start" or "end", right? anonymous wrote : So if you want this event to fire, fire an event somewhere with the 'FillStock' as a name. Is there a way that I can fire a specific event with a type rather than start and end? I have no previous experience on jBPM 3. :) Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4245146#4245146 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4245146 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - EventListener does not get executed?
I am using jBPM 4.0, jdk1.5.0_19, and try to run a simple process contains a event listener inside a state node. When I run the test case, it seems that the process executes that state node (GetFromStock) and move to the next, but the attached Event listener does not run (i.e. the variable does not get updated). process file | | http://jbpm.org/4.0/jpdl";> | | | | | | | | | | | | | | | | | | | | | | | | Event Listener /** | * | */ | package org.jbpm.order; | | import org.jbpm.api.listener.EventListener; | import org.jbpm.api.listener.EventListenerExecution; | | public class GetFromStockListener implements EventListener { | | public void notify(EventListenerExecution execution) throws Exception { | | Integer newStock = 300; | | execution.setVariable("goodsInStock", newStock); | | System.out.println("New stock: " + newStock); | } | } | Test case public void testOrder() throws Exception { | | HashMap vars = new HashMap(); | vars.put("goodsOrdered", new Integer(100)); | vars.put("goodsInStock", new Integer(50)); | | ProcessInstance pi = executionService | .startProcessInstanceByKey("order", vars); | String pid = pi.getId(); | | assertTrue(pi.isActive("PlaceOrder")); | | List tasks = taskService.findPersonalTasks("alex"); | Task task = (Task) tasks.get(0); | taskService.completeTask(task.getId()); | | pi = executionService.findProcessInstanceById(pid); | assertTrue(pi.isActive("GetFromStock")); | | String exeId = pi.findActiveExecutionIn("GetFromStock").getId(); | assertNotNull(exeId); | // | executionService.signalExecutionById(exeId, "Stock to Check"); | assertEquals(300, executionService.getVariable(exeId, "goodsInStock")); | } Thanks in advanced View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244963#4244963 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244963 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - How to run jBPM 4.0 examples
I am a newbie to jBPM, I just tried to run the test java from the package in Eclipse (i.e. DecisionConditionsTest.java etc) But I was given the follow exception Could not connect to: : 3081 | java.net.ConnectException: Connection refused: connect | at java.net.PlainSocketImpl.socketConnect(Native Method) | at java.net.PlainSocketImpl.doConnect(Unknown Source) | at java.net.PlainSocketImpl.connectToAddress(Unknown Source) | at java.net.PlainSocketImpl.connect(Unknown Source) | at java.net.SocksSocketImpl.connect(Unknown Source) | at java.net.Socket.connect(Unknown Source) | at java.net.Socket.connect(Unknown Source) | at java.net.Socket.(Unknown Source) | at java.net.Socket.(Unknown Source) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.connect(RemoteTestRunner.java:570) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:381) | at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197) It seems that could not connect to jBPM server?? Appreciate any help :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244458#4244458 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244458 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - Re: STDERR in JBoss startup with jBPM 4.0
anonymous wrote : The errors are no errors but info Yes, I noticed that as well, the prefix ERROR [STDERR] plus I followed the incorrect console URL so couldn't get into gwt made me feel there are something wrong... I wonder why ERROR [STDERR] is in there if it's meant to be normal INFO. anonymous wrote : http://localhost:8080/jbpm-console It works on me now anonymous wrote : could you file a jira for this? I am not very sure how to file a jira :(, can you please point me the right place. Derrick View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243620#4243620 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243620 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss jBPM] - STDERR in JBoss startup with jBPM 4.0
Hi all, I am new to jBPM, just tried to installed jBPM 4.0, after the installation, I started JBoss 5, it output lots of ERROR: | 22:35:13,234 ERROR [STDERR] 63 [main] WARN org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - The use of javax.ws.rs.core.Applica | tion is deprecated, please use javax.ws.rs.Application as a context-param instead | 22:35:13,250 ERROR [STDERR] 79 [main] INFO org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap - Adding listed @Provider class org.j | boss.bpm.report.FileWriter | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider DataSourceProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider DefaultTextPlain | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.StringTextStar | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.InputStreamProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.ByteArrayProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.FormUrlEncodedProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.FormUrlEncodedProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Added built in provider org.jboss.resteasy.plugins.provide | rs.StreamingOutputProvider | 22:35:13,265 ERROR [STDERR] 94 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provid | ers.multipart.MultipartReader | 22:35:13,281 ERROR [STDERR] 110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.multipart.ListMultipartReader | 22:35:13,281 ERROR [STDERR] 110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.multipart.MultipartFormDataReader | 22:35:13,281 ERROR [STDERR] 110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.multipart.MapMultipartFormDataReader | 22:35:13,281 ERROR [STDERR] 110 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.MultipartWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.MultipartFormDataWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.ListMultipartWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.MapMultipartFormDataWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.multipart.MultipartFormAnnotationReader | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in providerorg.jboss.resteasy.plugins.provid | ers.multipart.MultipartFormAnnotationWriter | 22:35:13,296 ERROR [STDERR] 125 [main] INFO org.jboss.resteasy.plugins.providers - Adding built in provider org.jboss.resteasy.plugins.provi | ders.IIOImageProvider | The jBPM user guide says anonymous wrote : And you can surf to the jBPM console You can login as one of the following users: It points to the URL http://localhost:8080/gwt-console, but I was given 404 when tried to open it. Any idea? Thanks Derrick View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4243532#4243532 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4243532 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user