Re: [rules-users] externalization of input constraints in a rule

2011-10-20 Thread Michael Anstis
The same principle applies, but instead of inserting a single SSN container, you insert a generic parameters container:- rule rule 1 when Parameters( rule == rule 1, $ssn : ssn, $citizenship : citizenship ) Person( ssn = $ssn, citizenship == $citizenship ) then If your

Re: [rules-users] externalization of input constraints in a rule

2011-10-20 Thread Wolfgang Laun
As an alternative, use different classes for the parameter containers. There could be one called Ssn (just ssn), one SsnCitizen, etc. SsnCitizen( $ssn : ssn, $citizenship : citizenship ) Person( ssn = $ssn, citizenship == $citizenship ) Be careful, though, and DO NOT make SsnCitizen a

[rules-users] Problem in adding a Class to PKG

2011-10-20 Thread DerLonG
Hi, I have a problem when i compile a spreadsheet into a PKG. Hope you can help me. (Bevor this i used Guvnor to create a PKG from Spreadsheet, but i decide to do this by my own) The question is, how do I add this class to the package builder? This is my Programm: public static void

Re: [rules-users] drools persistence contract

2011-10-20 Thread michalbali
Hi again, Anyone? It would be nice to get a confirmation that migration of persisted session/processes is not possible when upgrading Drools. Thank you! Best regards, Michal -- View this message in context:

Re: [rules-users] Problem in adding a Class to PKG

2011-10-20 Thread Wolfgang Laun
Did you import KundenEntscheidung into the spreadsheet? Can you import and use the class in a simple handcoded DRL? -W On 20 October 2011 11:42, DerLonG longbo...@gmx.de wrote: Hi, I have a problem when i compile a spreadsheet into a PKG. Hope you can help me. (Bevor this i used Guvnor to

Re: [rules-users] Rules from Multiple DRLs use the same namespace

2011-10-20 Thread Wolfgang Laun
There is code in Drools where package contents are heavily modified, viz. in the Resource Change Monitor. Therefore, your plan to remove the rules (and the package) from DRL #1 to clean the slate for DRL #2 which is written using the same package name, should not cause any problems. -W On 19

Re: [rules-users] Problem in adding a Class to PKG

2011-10-20 Thread DerLonG
I imported the class in my DRL with the following lines: import de.test.xml.KundenEntscheidung; global KundenEntscheidung dieKundenEntscheidung; But i can't use it in a simple hand coded DRL :( ... How can i generate the DRL from the class file? -- View this message in context:

Re: [rules-users] Problem in adding a Class to PKG

2011-10-20 Thread Wolfgang Laun
On 20 October 2011 11:58, DerLonG longbo...@gmx.de wrote: I imported the class in my DRL with the following lines: import de.test.xml.KundenEntscheidung; global KundenEntscheidung dieKundenEntscheidung; But i can't use it in a simple hand coded DRL :( ... If you can't import it with a DRL

Re: [rules-users] Problem in adding a Class to PKG

2011-10-20 Thread DerLonG
Yes, i have to import the Java class file. Sorry, I forgot to mention that. -- View this message in context: http://drools.46999.n3.nabble.com/Problem-in-adding-a-Class-to-PKG-tp3437199p3437252.html Sent from the Drools: User forum mailing list archive at Nabble.com.

Re: [rules-users] drools persistence contract

2011-10-20 Thread Mauricio Salatino
Hi Michal, I'm not aware of any changes.. but we need to check with mark and kris for the timers stuff that now are being persisted. My gut feeling is that usually if you are playing with binaries it's very difficult to keep that compatible with old versions. Also you mention that you are moving

[rules-users] Regarding BPEL

2011-10-20 Thread Sumeet Karawal
Hi, I required some information whether jBPM supports BPEL. I searched and found something regarding its use in jBPM v3.x. But got nothing regarding BPEL for versions 4.x and 5.x. Is jBPM compatible with BPEL or is there anyway to have BPEL functionality with jBPM. jBPM creates the process

Re: [rules-users] Help needed - how to get Number and intValue in Guvnor

2011-10-20 Thread Praveen
Hello, Anyone out there who has come across the above issue? Regards, Praveen. -- View this message in context: http://drools.46999.n3.nabble.com/Help-needed-how-to-get-Number-and-intValue-in-Guvnor-tp3430730p3437459.html Sent from the Drools: User forum mailing list archive at Nabble.com.

[rules-users] Changing To Drools

2011-10-20 Thread rahulkrishnan
Hi 1.My Requirement is a System of High Transactions/Second(in 1000's Range). Is it good to implement that in drools 2.if i use drl in such a way that the in the then part complex operations are done by calling a java function. is this method good? -- View this message in context:

Re: [rules-users] Changing To Drools

2011-10-20 Thread Mauricio Salatino
Hi rahulkrishnan, Drools will do a good job in matching the objects for those transactions, but my usual answer to this kind of questions is: do you already have those 1000/s objects in memory inside your system? because depending on the type of objects that you want to handle is if you can

Re: [rules-users] Regarding BPEL

2011-10-20 Thread Mauricio Salatino
jBPM5 is focused on the standard BPMN 2.0 that is being adopted by most of the BPM vendors. jPDL was a proprietary language and for that reason it will be left in the future. Cheers On Thu, Oct 20, 2011 at 8:57 AM, Sumeet Karawal sumeet.kara...@tcs.comwrote: Hi, I required some information

[rules-users] Define global variables at the top of a rules file

2011-10-20 Thread Martin A
Hello, I'd like to set global rules variables at the top of a rules file, like so: global int WELCOME_SCREEN = 1; so that I may easily refer to them from inside the rules, instead of hardcoding them somewhere in code. Is this possible? Best regards, Martin

Re: [rules-users] Define global variables at the top of a rules file

2011-10-20 Thread Michael Anstis
Not as far as I know, but it has been asked before. Interestingly, you can initialize the value of declared facts' fields... and this doesn't appear a million miles away. Scotty? Mark? JIRA? 2011/10/20 Martin A wml...@gmail.com Hello, I'd like to set global rules variables at the top of a

[rules-users] MVEL integration article

2011-10-20 Thread Mark Proctor
Here is an article on MVEL integration that I and mike wrote: http://www.theserverside.com/feature/Adding-MVEL-to-the-Java-Developers-Toolkit Mark ___ rules-users mailing list rules-users@lists.jboss.org

Re: [rules-users] Regarding BPEL

2011-10-20 Thread Jamie
I'm not sure your answer directly addresses the question. BPMN and BPEL aren't the same thing - BPMN is an unstructured diagramming notation that an be directly executed from within Drools, where as BPEL is a semi-structured language. While most BPMN flows can be translated to BPEL, not

[rules-users] Sliding Length Windows

2011-10-20 Thread diana-mendes
Hello, I'm having trouble using sliding length windows. Either I'm implementing them wrong or I have misunderstood how they're supposed to work. I have a class named Notif: *public class Notif implements Serializable{ ... private String specificProblem; ... public String

Re: [rules-users] Define global variables at the top of a rules file

2011-10-20 Thread Wolfgang Laun
You can do this by setting the global from a high salience rule from within your DRL. Leave the conition empty - such a rule only fires once. -W 2011/10/20 Martin A wml...@gmail.com Hello, I'd like to set global rules variables at the top of a rules file, like so: global int WELCOME_SCREEN

Re: [rules-users] drools persistence contract

2011-10-20 Thread Mark Proctor
On 20/10/2011 12:49, Mauricio Salatino wrote: Hi Michal, I'm not aware of any changes.. but we need to check with mark and kris for the timers stuff that now are being persisted. My gut feeling is that usually if you are playing with binaries it's very difficult to keep that compatible with

[rules-users] KnowledgeBuilder.add(Resource, ResourceType) thread problem?

2011-10-20 Thread chriscarr
I have a rules server that will handle executing different flows as requests come in. For each thread, the following snippet is used: final KnowledgeBuilder builder = KnowledgeBuilderFactory.newKnowledgeBuilder(); final Resource resource = ResourceFactory.newClassPathResource(bpmnFile,

Re: [rules-users] KnowledgeBuilder.add(Resource, ResourceType) thread problem?

2011-10-20 Thread chriscarr
public static void main(final String[] args) { // -- // Read the resources once just to confirm that they are correct. System.out.println(Before First Read...); readResource(simple-one.bpmn);

Re: [rules-users] [planner] Performance question

2011-10-20 Thread Guilherme Kunigami
2011/10/19 Geoffrey De Smet ge0ffrey.s...@gmail.com ** Op 19-10-11 15:00, Guilherme Kunigami schreef: In this use case, that is probably a bad idea in my experience. Why? Well I hope this makes any sense: *You need to allow the optimization algorithms to break it now and then to tunnel

[rules-users] Guvnor -- Decision Table

2011-10-20 Thread johnz
Is it possible to export a decision table to excel or csv ? If yes, could someone tell me how (using v 5.2) -- View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Decision-Table-tp3439636p3439636.html Sent from the Drools: User forum mailing list archive at Nabble.com.