[rules-users] Drools Timers

2014-09-23 Thread Demian Calcaprina
Hey Guys, I am trying to use to use the timer in the rule, but I don't fully understand it. I have a simple rule which says rule Test timer(int: 1s) when Something() then System.out.println(Something Happens); end And I insert 100 Someting() object, after 1 second I see

[rules-users] Question about length windows

2014-05-01 Thread Demian Calcaprina
Hi Guys, I have one question about how lenght windows will work. I have a rule like this. Basically, it is a crosses function, where the value of my object crosses a value. rule mytest dialect mvel when t2_1 : Tick( value 102.352 ) over window:length (1) t1_1 : Tick( this before t2_1 , value =

[rules-users] Guvnor JCR repository

2014-02-09 Thread Demian Calcaprina
Hi Guys, I am using Guvnor 5.5. For moving packages between environments, I am doing an export, and then import in the new package. I have a lof of assets in each package. I am using the DB storage for the jcr repository. After some months, the DB has grown a LOT! (like 3.5GB). Is there a way

[rules-users] Problem when creating KieModuleModel

2014-01-15 Thread Demian Calcaprina
Hi Guys! I am having a problem using drools 6 in my project. And I was able to reproduce it in one of the examples.. I just got this example: https://github.com/droolsjbpm/drools/tree/master/drools-examples-api/kiemodulemodel-example built the 2 dependant projects, kiebase inclusion and

Re: [rules-users] Problem when creating KieModuleModel

2014-01-15 Thread Demian Calcaprina
Thanks Mark, very instructive. On Wed, Jan 15, 2014 at 5:21 PM, Mark Proctor mproc...@codehaus.org wrote: http://bit.ly/1eKm7lC Mark On 15 Jan 2014, at 19:35, Demian Calcaprina calcacue...@gmail.com wrote: Hi Guys! I am having a problem using drools 6 in my project. And I was able

[rules-users] Problem with declare event

2014-01-14 Thread Demian Calcaprina
Hey Guys, I am having a drools compilation error when declaring an error. I tried to isolate this as much as possible. https://github.com/droolsjbpm/drools/blob/master/drools-compiler/src/test/java/org/drools/compiler/integrationtests/IncrementalCompilationTest.java#L43 I just added after the

Re: [rules-users] What is the rest API to modify the import setting of a package in Guvnor?

2014-01-09 Thread Demian Calcaprina
yup, by updating the drools asset I was meaning a PUT to the drools asset :) On Thu, Jan 9, 2014 at 10:38 PM, LeonJi whathappe...@gmail.com wrote: Thank you. With put method to http://host:port /guvnor/rest/packages/samplePackage/assets/drools/source, it resolve my problem perfectly.

[rules-users] Two Guvnor instances sharing repository

2013-11-09 Thread Demian Calcaprina
Hi Guys, I have two guvnor instances. They are using a mysql db repository. I would like both to point to the same database. I configured them both to use the same database in the repository.xml, but it starting throwing errors and they were not in sync. Errors are like this 11:43:29,597 WARN

Re: [rules-users] Rule Example

2013-11-07 Thread Demian Calcaprina
It would be nice if you can put some of your requirements here. So that people who has similar requirements may benefit for the discussion.. Regards, Demian On Thu, Nov 7, 2013 at 8:28 AM, chakez30 dspecialis...@yahoo.com wrote: rule if you have nothing good to say when Response(

Re: [rules-users] News from the community - 5.6.0.CR1 is out!

2013-11-01 Thread Demian Calcaprina
Thanks a lot Davide! This is really nice. We will be using it soon and let the community know if we find something to report. Thanks again, Demian On Fri, Nov 1, 2013 at 6:04 PM, Davide Sottara dso...@gmail.com wrote: Finally Drools 5.6.0.CR1 community edition has been released! It has

Re: [rules-users] Help on writing a rule

2013-10-22 Thread Demian Calcaprina
Yes! I receive many price change events.. but, as I am using window length = 1, I would expect to have the activation cancelled for the previous one? I am not sure how to express this: when there is some price change, and some signal, and there has not been any order over the last minute, then

Re: [rules-users] Help on writing a rule

2013-10-22 Thread Demian Calcaprina
Mauricio, In fact, I used to have this and the price change without window:length.. but when t : PriceChange() signal : Signal( id == 1234 ) not OrderCreated( id == 1234 ) over window:time (1m) But this will cause more and more duplicates orders

Re: [rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Demian Calcaprina
Hey Alexander, Would this be related to this? https://issues.jboss.org/browse/DROOLS-243 If it is this one, you can do something like this as a workaround before constructing the KBase: Operator op = BeforeEvaluatorDefinition.BEFORE; Operator op = AfterEvaluatorDefinition.AFTER; This will

Re: [rules-users] AfterEvaluatorDefinition NullPointer Exception in deserialized ksession

2013-10-11 Thread Demian Calcaprina
ByteArrayInputStream( serializedKnowledgeSession); knowledgeSession = marshaller.unmarshall(bais2); Also: Is this going to be fixed in 5.6.0 ? (@Mark Proctor?) - Alex On 11.10.2013, at 16:09, Demian Calcaprina calcacue...@gmail.com wrote: Hey Alexander, Would this be related to this? https

Re: [rules-users] Guvnor REST api, compile package

2013-09-04 Thread Demian Calcaprina
About 1, .../rest/packages/{packageName}/binary will triger the compile and then return the PKG. But not sure what will happen if the compilation fails.. you can try! From the documentation: Returns the compiled binary of the package {packageName} as a binary stream. If the package has not been

Re: [rules-users] Problem with PKG from guvnor

2013-08-27 Thread Demian Calcaprina
Thanks Genene. In fact I was able to get the cause of my issue. I created a ticket with the explanation and a pull request with a possible solution. https://issues.jboss.org/browse/DROOLS-243 Thanks, Demian On Tue, Aug 27, 2013 at 12:26 PM, Genene Geda gg...@ghx.com wrote: Hi-, I think I

[rules-users] Problem with Guvnor using Rest API

2013-07-13 Thread Demian Calcaprina
Hey Guys. I am using guvnor 5.5.0.Final. I am accesing to from another app using the REST API. I am currently having a problem. I create a new package, sending a post to guvnor/rest/packages/, sending it an xml version of PackageMetadata. Then, I create assets (drl files), by sending a post to

Re: [rules-users] Guvnor Rest API for uploading model

2013-05-29 Thread Demian Calcaprina
Great, thanks for that. I just copied also the drools header from global package to my new package and worked! On Wed, May 29, 2013 at 5:13 AM, rjr201 rich.j.ri...@gmail.com wrote: I think this might be the same problem I was having..

Re: [rules-users] BPMN2 Question

2013-05-19 Thread Demian Calcaprina
I guess you have a process with an split node with some condition? It seems that in the condition there is something called session that it is not being found? On Sun, May 19, 2013 at 4:42 PM, starfish15 pooja.gh...@accenture.comwrote: Hello, I am very new to BPMN. We are currently using

Re: [rules-users] Status of GuvnorNG

2013-04-01 Thread Demian Calcaprina
Hey Michael. I am just trying to open the existing rules in Guvnor Playground project. And I get an error in the screen, Unable to complete your request. The following exception occurred: Unable to get KieModule, Errors Existed. and some into the logs, 2013-04-01 11:22:49,571

Re: [rules-users] Guvnor - Operations with snapshots

2011-10-09 Thread Demian Calcaprina
Jervis, thanks for the response! When is a package updated? In 5.2, I could make version to be updates through UI, explicitly using Save Changes. Is there another way to achieve it? Thanks again, Demian 2011/10/8 jliu j...@redhat.com On 2011/10/7 9:54, Demian Calcaprina wrote: Hi again

Re: [rules-users] Guvnor - Operations with snapshots

2011-10-06 Thread Demian Calcaprina
On Tue, Oct 4, 2011 at 9:57 AM, Demian Calcaprina calcacue...@gmail.comwrote: Thanks Jervis. I currently use Guvnor 5.2, and saw that I can use version so I will try to use them. - Is there something I will be missing about versions, by using 5.2? - Do you know when a new version is created

Re: [rules-users] Guvnor - Operations with snapshots

2011-10-04 Thread Demian Calcaprina
? Thanks! Demian 2011/10/3 jliu j...@redhat.com On 2011/10/4 1:54, Demian Calcaprina wrote: Hi everyone. I am using Guvnor 5.2, and I need to make some operations from my application. Specifically, I need to make two operations remotely: - List Snapshots, as it is possible to list packages

[rules-users] Guvnor - Operations with snapshots

2011-10-03 Thread Demian Calcaprina
Hi everyone. I am using Guvnor 5.2, and I need to make some operations from my application. Specifically, I need to make two operations remotely: - List Snapshots, as it is possible to list packages. - Create a new snapshot from a package. Is this possible to make these operation through rest