[JBoss jBPM] - Re: Queries to search the database for process instances ba
by andiXT
Hi,
I have the similar problem. I have some process instances which stores some variables of type serializable. I mean, variables are not simple String or long objects but custom beans which implements serializable. So, is it possible to make search query for such cases based on some property of such serializable beans?
Example: each process instance stores variable named "registrationInfo" which is of type RegistrationInfo:
| public class RegistrationInfo implements Serializable{
| private String username;
| private String email;
| private String password;
| ...
| }
|
Is it possible to make query for all process instances which store variable named "registrationInfo" and this variable has property "username" set to 'admin' for example? The purpose of this query to is check if there is a running process which stores registration information about user who has chosen some username. Just to check if such user name is not taken yet.
Is username whould stored as String variable I think there wouldn't problem to check that. But this username is stored inside of serializable bean, so I cannot guess how to fetch such records.
Thanks.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222881#4222881
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222881
17 years
[JBoss jBPM] - ClassLoader questions...
by schmoely
Hi jBPM community,
I just downloaded/installed the jBPM installer (jbpm-installer-3.2.6.SP1.jar) and it installed a jbpm directory in my server deploy directory (with the enterprise ear, the service sar and the console war).
I will be creating a number of processes that need to signal a web service when a particular node is reached. So I implement an ActionHandler on that node and in my handler, have it call a web service.
Problem is: the code that calls the web service has a butt load of jar dependencies (all the cxf stack) and I don't want to put them way up in server/lib - because that'll conflict with other wars deployed on the server.
Similarly, I don't want to deploy the jars in the sar/lib directory because then those classes will be forced to all other clients of jBPM.
I've been banging my head against the wall all day on this: is there a standard pattern or configuration change I can apply to get this realized? I've looked at the jbpm.classLoader property but can't fathom how to put it to work here...
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4222838#4222838
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4222838
17 years