[JBoss jBPM] - Re: integration with JBoss Rules engine?
by umquat
"mpopova" wrote : Great, thanks a lot for the answer.
| I just want to clarify one thing: so, basically, you are saying that it is possible to modify the workflow process definition at run time, yes?
|
| Indeed, this is exactly what I am looking for - to be able, at any point in the execution of one process instance , to modify the rest of the workflow process instance based on the input from , for example, a rule engine.
|
| A good example of this functionality is an Out-Of-Office rule - at each approval step (process node), before sending a notification for approval to the approver, check whether he is out of office, and if so - replace this approver with a new one and possibly modify the rest of the approval chain as well.
|
| Thanks
| Marina
I'm learning jBPM but I'm interested in drools as well. This question got me thinking: Why would you want to modify a workflow definition at runtime?
The out-of-office rule seems overkill to me. Why not assign a given task to a group of users, so that anyone could "pick" this task up and execute, instead of going through hoops to check if one given user is in the office or not?
Maybe a better approach would be to define a bigger, more robust workflow?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149468#4149468
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149468
17 years, 11 months
[JBossWS] - Re: Endpoint already registered
by bsisson
I would like to provide additional information for this issue. Our whole team has looked at this issue and cannot find a work around or the cause of the issue but we have figured out the sequence that triggers the issue.
1) We created a web service using annotations (@WebService(name = "TestWs") and it runs fine.
2) We created a class (People) that is annotated for xml marshalling (@XmlRootElement).
3) In the web service a database is queried and the data is stored in the People class.
4) Using javax.xml.bind the class is marshalled into a xml string.
5) At this point, in debut mode, there are occasions (depending upon the class fields) the marshaller will either work fine or the it wil fail. If it works fine the xml string is returned to the Web Service Explorer (built into Eclipse) and if it fails the error message string is returned to the Web Service Explorer.
6) Then we make changes to the People class (add or delete fields) and we get a message asking us if we want to continue, stop or restart the server. If we select continue the server runs find but only picks up the old version of the People class and not the new changes. The issues begin when we chose stop or restart server.
When the server is restarted there are two key issues: (1) If I search the console I cannot find a reference to my web service after the restart. The first time I start the server I see a reference that the web service was deplyed. (2) When I used the Web Service Explorer to find the web service I get an exception: javax.xml.ws.WebServiceException: Cannot obtain endpoint for: jboss.ws:context=/PSDynamicWebProject,endpoint=TestWs
At this point nothing we do in Eclipse can eliminate this exception. We have tried restarting the JBoss server, clicking on the module and doing a full publish and nothing works. The only resolution to get around this at this point has been to shutdwon Eclipse completely and restart it. This works until we have to change the class again and we go through the same steps.
We are in the start-up phase of re-writing our web applicaitons here and are evaluating JBoss and JBoss tools. We would really like to find a reslution to this since we are using Eclipse as our IDE and any help would be apprecaited.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149462#4149462
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149462
17 years, 11 months
[Clustering/JBoss] - JBossTreeCache issues
by landoo
Hi,
We are upgrading our jboss servers to version 4.2.2 and having issues related to JBossTreeCache. The application was running fine with JBoss 4.0.2.
Here is the error that JBoss throws while starting up:
org.jboss.cache.CacheException: Initial state transfer failed: Channel.getState() returned false
at org.jboss.cache.TreeCache.fetchStateOnStartup(TreeCache.java:3363)
at org.jboss.cache.TreeCache.startService(TreeCache.java:1555)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
I've even set the "InitialStateRetrievalTimeout" attribute to 50000 but no use.
Any help will be appreciated.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149461#4149461
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149461
17 years, 11 months
[Installation, Configuration & DEPLOYMENT] - Configure JAAS security for default app with Jetty
by george001
Hello,
I am using JBoss 4.2.2 GA with Jetty 6.1 latest sar and I have setup a default app but I am having a hard time finding any instructions on how to map that app into a jaas secured application policy:
| <application-policy name = "default">
| <authentication>
| <login-module code="org.jboss.security.auth.spi.UsersRolesLoginModule"
| flag = "required">
| <module-option name="usersProperties">props/users.properties</module-option>
| <module-option name="rolesProperties">props/roles.properties</module-option>
| </login-module>
| </authentication>
| </application-policy>
|
I tried "default", "/", "*" as the name attribute of the element and restarted the server each time and still I am getting:
| 2008-05-08 09:20:49,603 ERROR [org.jboss.security.auth.spi.UsersRolesLoginModule] Failed to load users/passwords/role files
| java.io.IOException: No properties file: users.properties or defaults: defaultUsers.properties found
| at org.jboss.security.auth.spi.Util.loadProperties(Util.java:315)
|
This is one of those simple and easy to solve -> you have to spend hours on searching for information. If anyone knows the name of the class parsing the xml and points me to a subversion link :) I will be greatly appreciative if a straight answer is not available that is..
Thanks in advance and best!
George
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4149453#4149453
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4149453
17 years, 11 months