[rules-users] Test Scenario not firing rule when a ruleflow-group is defined

2012-11-08 Thread mpgong
Hello, I created a simple rule using the guvnor drl editor - it looks like this: rule Rule1 no-loop true ruleflow-group CheckOne when $ca : TestFact() then System.out.println(Hello World); end when i create the scenario, where i insert a TestFact() object and

Re: [rules-users] Guvnor 5.4.Final can't save BPMN process imported from 5.3 repo

2012-10-30 Thread mpgong
Not sure what else i should have upgraded. I thought i could just export the existing repo and reimport it. I decided to recreate things in 5.4 since i didn't have that much in there. But when i tried to import my process from eclipse i'm getting this warning : not sure what is going on. I did

Re: [rules-users] Guvnor 5.4.Final can't save BPMN process imported from 5.3 repo

2012-10-30 Thread mpgong
Fixed the other issue with importing from eclipse. Is there documentation somewhere on how to properly upgrade from 5.3 to 5.4? I thought that maybe i would be able to recreate my packages and import the process from eclipse but that gave the same error above. Not sure Maybe you did not upgrade

[rules-users] Guvnor 5.4.Final can't save BPMN process imported from 5.3 repo

2012-10-29 Thread mpgong
Hello, I'm looking to upgrade to from drools 5.3 to 5.4 and i'm having some issues with Guvnor. The exported repo from 5.3 imported fine and my packages all built fine but when i go to edit a process and try to save it, after i click the check in button i get this error. I'm using designer 2.2

Re: [rules-users] how is Integer converted when comparing with primitive?

2012-09-27 Thread mpgong
Thanks for the detailed explanations. We added the a check for null so that rule doesn't fire anymore. -- View this message in context: http://drools.46999.n3.nabble.com/how-is-Integer-converted-when-comparing-with-primitive-tp4019975p4020012.html Sent from the Drools: User forum mailing

Re: [rules-users] how is Integer converted when comparing with primitive?

2012-09-27 Thread mpgong
I checked the documentations and it didn't mention that constraint format. I must have misread it as being valid and assumed it would work since there was never any errors. I will correct it and use something like Fact(val 10 4) or break them out into two. Thanks for the investigation. --

[rules-users] how is Integer converted when comparing with primitive?

2012-09-26 Thread mpgong
Hello I have a rule that looks something like this when $mydate : TaskRowDate(0 currentLateCount 100) then doSomething(); My problem is that currentLateCount is an Integer type because i want to be able to store null. 0 means something different in my app. The problem is when a

[rules-users] guvnor 5.4 final turning off authentication

2012-08-07 Thread mpgong
Hello, I'm trying to upgrade from 5.3 to 5.4 and i guess i must have configured 5.3 to not authenticate when accessing the resources in guvnor like the binaries, etc using the REST api because when i try to access them under 5.4 i'm getting the 401 response. I read that security is configured in

[rules-users] Guvnor test case with fact with Object fields

2012-05-31 Thread mpgong
Hello, I have a fact that has is also my entity model and it has a field that is a class called state which holds previous and current state values (enum). So i have a condition that gets the state and gets the two values to check. The issue i'm running into is with creating a test case in

[rules-users] Using declared type from decision table/drl with Guvnor Test Scenario

2012-05-23 Thread mpgong
Hello, Is it possible to use a declared type from the decision table or drl as a given item with Guvnor test scenario? When i create a new test scenario and click on given, i don't see the declared type I only see items from my model jar. I can only see declared types if i define them in Guvnor

[rules-users] How to use Guvnor effectively?

2012-05-22 Thread mpgong
Hello, I have a feeling that i'm not using guvnor correctly. My issue is that when i use the knowledge agent to load a package from guvnor it takes just as long to get the knowledge base as it does if i were to use the knowledge builder and add rules resources. So when i do a build package in

Re: [rules-users] How to use Guvnor effectively?

2012-05-22 Thread mpgong
Here is what my change-set.xml looks like. change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance' xs:schemaLocation='http://drools.org/drools-5.0/change-set

Re: [rules-users] How to use Guvnor effectively?

2012-05-22 Thread mpgong
Well, when loading the pkg directly into the knowledge builder it takes about 200ms or so which is what we want. It takes about 20secs to load accessing guvnor using the changeset. So the pkg is compiled correctly. The question is then why it takes so long to load from the change set via the

Re: [rules-users] Drools: Using Declared Types in Decision Tables

2012-05-22 Thread mpgong
Didn't want to start another thread but i have a question about declare types in decision tables. What is the format? In the documentation is defines the keyword 'Declare'. I use this under the same column as the RuleSet and to the right i define the type as such PmbDataType field1:String

Re: [rules-users] How to use Guvnor effectively?

2012-05-22 Thread mpgong
There is the resource scanner which i believe is what you are referring to, but that is off by default and i didn't enable it. We are rebuilding the kbase on demand with a new kagent (probably not the best think to do). But i wouldn't expect it to take as long as it does. -- View this message

[rules-users] Classnotfound exception on POJO model upload in guvnor

2012-05-18 Thread mpgong
Hello, I'm trying to use Guvnor but when i upload my POJO models that my DRL needs i get a classnotfoundexception even though i uploaded the jar that has the class in it first. So i basically upload a jar that provides some common classes,utilities, that have no dependencies other than on the

Re: [rules-users] Classnotfound exception on POJO model upload in guvnor

2012-05-18 Thread mpgong
Thanks, that makes sense. I was suspecting that would be the case. I'll give that a go. -- View this message in context: http://drools.46999.n3.nabble.com/Classnotfound-exception-on-POJO-model-upload-in-guvnor-tp4001060p4001282.html Sent from the Drools: User forum mailing list archive at

[rules-users] Loading A PKG from Guvnor using Knowledge Agent

2012-02-01 Thread mpgong
Hello, I'm trying to load a pkg that is deployed to guvnor but i am getting a npe (below). The Package builds fine in guvnor so i don't think there is any issues there. Any idea what i might be doing wrong? Are there example quickstarts that i can run for Guvnor. Thanks.