[JBoss jBPM] - End process with running subprocess
by kadlecp
Hello,
I have following scenario.
I have process that sometimes creates subprocess. The subprocess has several async actions (I call ESB service). The super process checks result value of the subprocess and according that value the superprocess continues.
I sometimes want to end superprocess prematurely with possible running subprocess. And that causes problems. The superprocess instance receives end, it ends root token and after that it ends the subprocess instance. After the subprocess instance ends, subprocess signals token of the superprocess which has been ended already, and that is wrong.
I have made following change to the org.jbpm.graph.exe.ProcessInstance
I have changed method ProcessInstance.end() slightly.
| public void end() {
| // if the subproces does not exist, end root token
| if (rootToken.getSubProcessInstance() == null) {
| rootToken.end();
| .... the code is unchanged
| } else
| // if subprocess instance exists, only end subprocess. The subprocess will signal this process later
| rootToken.getSubProcessInstance().end();
| }
|
It is important that I check result value of sub process (I have special variable). If the subprocess is ended prematuraly, I read the result value (it's not set) and the superprocess can do what ever action I can. And moreover I can be sure that subprocess ends before the super process.
What do you think? It could be new feature request...
Regards
Pavel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168338#4168338
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168338
17 years, 5 months
[JBoss Portal] - Setup Database error
by nicole_yhy
Hi, i'm new to jboss portal
i'm now trying to deploy the jboss portal using oracle database
when i run the jboss portal
i got such errors:
ERROR [Scheduler$Listener] Invoke of the Schedulable MBean failed
| javax.management.MBeanException
| at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.varia.scheduler.Scheduler$MBeanListener.handleNotification(Scheduler.java:1346)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.notification.NotificationListenerProxy.invoke(NotificationListenerProxy.java:153)
| at $Proxy11.handleNotification(Unknown Source)
| at javax.management.NotificationBroadcasterSupport.handleNotification(Unknown Source)
| at javax.management.NotificationBroadcasterSupport.sendNotification(Unknown Source)
| at javax.management.timer.Timer.sendNotification(Unknown Source)
| at javax.management.timer.Timer.notifyAlarmClock(Unknown Source)
| at javax.management.timer.TimerAlarmClock.run(Unknown Source)
| at java.util.TimerThread.mainLoop(Unknown Source)
| at java.util.TimerThread.run(Unknown Source)
| Caused by: org.jboss.portal.portlet.InvokerUnavailableException: Problem getting service description for producer self, please see the logs for more information.
| at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortlets(WSRPConsumerImpl.java:156)
| at org.jboss.portal.portlet.federation.impl.FederatedPortletInvokerService.getPortlets(FederatedPortletInvokerService.java:90)
| at org.jboss.portal.core.management.PortletDiscoveryService.processPortletDiscovery(PortletDiscoveryService.java:88)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| ... 20 more
| Caused by: java.io.IOException: Could not transmit message
| at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:204)
| at org.jboss.ws.core.client.SOAPRemotingConnection.invoke(SOAPRemotingConnection.java:77)
| at org.jboss.ws.core.CommonClient.invoke(CommonClient.java:337)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invokeInternal(CallImpl.java:517)
| at org.jboss.ws.core.jaxrpc.client.CallImpl.invoke(CallImpl.java:277)
| at org.jboss.ws.core.jaxrpc.client.PortProxy.invoke(PortProxy.java:151)
| at $Proxy218.getServiceDescription(Unknown Source)
| at org.jboss.portal.wsrp.consumer.ProducerInfo.getUnmanagedServiceDescription(ProducerInfo.java:618)
| at org.jboss.portal.wsrp.consumer.ProducerInfo.internalRefresh(ProducerInfo.java:303)
| at org.jboss.portal.wsrp.consumer.ProducerInfo.detailedRefresh(ProducerInfo.java:254)
| at org.jboss.portal.wsrp.consumer.ProducerInfo.refresh(ProducerInfo.java:249)
| at org.jboss.portal.wsrp.consumer.ProducerInfo.getPortletMap(ProducerInfo.java:566)
| at org.jboss.portal.wsrp.consumer.WSRPConsumerImpl.getPortlets(WSRPConsumerImpl.java:151)
| ... 27 more
| Caused by: org.jboss.remoting.CannotConnectException: Can not connect http client invoker.
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:333)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.transport(HTTPClientInvoker.java:135)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.ws.core.client.RemotingConnectionImpl.invoke(RemotingConnectionImpl.java:183)
| ... 39 more
| Caused by: java.net.SocketException: Unexpected end of file from server
| at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
| at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
| at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)
| at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)
| at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
| at java.net.HttpURLConnection.getResponseCode(Unknown Source)
| at org.jboss.remoting.transport.http.HTTPClientInvoker.useHttpURLConnection(HTTPClientInvoker.java:280)
| ... 44 more
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4168328#4168328
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4168328
17 years, 5 months