tag:blogger.com,1999:blog-5869426.post5034980020562581953..comments2024-03-25T09:15:58.430+00:00Comments on Drools & jBPM: Making decisions with Rule Flow and more wonderful screenshots :)Mark Proctorhttp://www.blogger.com/profile/03304277188725220501noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-5869426.post-90633583558920462272007-05-21T01:04:00.000+01:002007-05-21T01:04:00.000+01:00Mark, I figured out how to get the Spilt working. ...Mark, I figured out how to get the Spilt working. It was my fault, not a bug. However, it’s worth explaining as others might find the same subtle issue. As you said, the spilt adds some specialised rules to the package builder to evaluate the split constraints. This gets done quietly when you call addProcessFromFile to add your ruleflow .rfm file to the process builder. However, if you’ve already added your rule package to the rulebase before calling addProcessFromFile, then when you call rulebase.addProcess(..) to add the ruleflow process the specialised constraint rules never get added to the rulebase. Hence the split always gives the exception I mentioned in my last comment. The solution is to add the rule package to the rulebase after adding all processes (i.e. call ruleBase.addPackage after calling addProcessFromFile).shahadhttps://www.blogger.com/profile/10479884460615894597noreply@blogger.comtag:blogger.com,1999:blog-5869426.post-71067505481117142732007-05-20T19:30:00.000+01:002007-05-20T19:30:00.000+01:00When a ruleflow-group is reached, if none of the c...When a ruleflow-group is reached, if none of the conditions evaluate to true, then it throws that exception. Although I'm now wondering if we should, optionally, allow it to just wait until one of those constraints situations occur, or even allow a duration to be specified, heh or even an wait experation style LHS constraint. We'll double check next week that what you are reporting isn't a bug. You might want to wait for the milestone release, as at the moments it's very much a work in progress.Mark Proctorhttps://www.blogger.com/profile/03304277188725220501noreply@blogger.comtag:blogger.com,1999:blog-5869426.post-34196449220639541772007-05-20T16:04:00.000+01:002007-05-20T16:04:00.000+01:00Nice work. I see I'm not the only one who develops...Nice work. I see I'm not the only one who develops looping rule flows. I tried out the new spit functionality in the latest snapshot (20 May). I could only add a single line to the textual editor box in a split constraint editor. Is this a design decision? It would be nice if the final release allows multiple lines (i.e. columns) in a split constraint. I couldn't actually run any flows with an XOR or OR Split, even if I set the constraints to true for all outputs (always get: java.lang.IllegalArgumentException: XOR split could not find at least one valid outgoing connection for split Split). I assume this is just because it is not fully functional yet.shahadhttps://www.blogger.com/profile/10479884460615894597noreply@blogger.com