Re: [rules-users] firing rules twice in single session on single object

2012-10-12 Thread Sai Nadh
good morning sir,

first of all
i am very thankful to your support,
but it is not working properly, first of all i want to explain my
requirements
please pay little time for me

I have 1000 records of some data like sales amount

I have two rules like below

rule Mr First Rule
salience 100
when
#conditions
sales : Sales (salesAmount =200)
then
#actions
sales.set SalesMessage(goodsales);

  end

 rule My second Rule
salience 80
when
#conditions
sales : Sales (salesAmount200)
then
#actions
sales.set SalesMessage(badsales);

  end


Here i want to insert facts from the list

if the salesAmount list is modified in the same session( fact object is
modified)

how can i fire the rules again in the same session

please help me in this scenario and if possible please provide some docs
also


regards
sai


On Thu, Oct 11, 2012 at 5:30 PM, abhinay_agarwal 
abhinay_agar...@infosys.com wrote:

 If you want the same rule to fire again and again then just modify the fact
 such that the WHEN condition is satisfied.

 For example in the HELLO WORLD sample Code :

 rule Hello World
 no-loop
 when
 m : Message( status == Message.HELLO, myMessage : message )
 then
 System.out.println( myMessage );
 m.setMessage( Goodbye cruel world );
 m.setStatus( Message.GOODBYE );
 update( m );
 end

 You can alter and change the m.setStatus( Message.HELLO) and you can see
 the
 rule gets refired again.

 But this will make the rule to refire itself again and again, making it
 fall
 inside an infinite loop, which is logically not acceptable(For this reason
 no-loop exists).

 So my opinion would be modify your rule set to make few rules, such that
 each of them satisfies under some condition and gets fired !!

 Regards,
 Abhinay



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/rules-users-firing-rules-twice-in-single-session-on-single-object-tp4020220p4020224.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users




-- 
*Regards*
*SAI BABA NADH*

+91 7411680125
* *
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Custom Form with DSL

2012-10-12 Thread Michael Anstis
This sounds as though it's a bug.

Can you please create a JIRA (https://issues.jboss.org/browse/GUVNOR) and
attach a repository export demonstrating the issue.

Thanks,

Mike

On 11 October 2012 06:06, bhochhi bhoc...@aol.com wrote:

 I were able to launch the custom form in DSL, however the rule condition is
 not mapped to corresponding DRL. I don't know if this is a bug or just
 something is missing. my DSL mapping looks like this:

 [when]
  my dsl is {varName:CF:MyFactType.fieldName} =
 System.out.println({varName})

 I have working set created then configured custom form for fieldName. All
 things working but rule is not validating. When I check drl source, I found
 the mapping is not taking place, its still displaying DSL expression in DRL
 source instead of displaying:

 System.out.println(values from cf)

 Any ideas? I have tried this in guvnor 5.4.0.final and 5.5.beta1



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Custom-Form-with-DSL-tp4020207.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] firing rules twice in single session on single object

2012-10-12 Thread abhinay_agarwal
Hey sai,

First of all make sure whether you will be having a list of objects
containing salesAmount or list of salesAmount.

If you are having a list, then your list should also be present in the WHEN
condition, such that when the state of your list changes then the rule gets
fired !!

Regards,
Abhinay



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-firing-rules-twice-in-single-session-on-single-object-tp4020220p4020241.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] firing rules twice in single session on single object

2012-10-12 Thread Sai Nadh
let me clear this by following code


public static void main(String[] args){

KnowledgeBase knowledgeBase = createKnowledgeBase();
ArrayListSalesAmount testSalesAmounts= getSalesAmount();
StatefulKnowledgeSession session =
knowledgeBase.newStatefulKnowledgeSession();

for(SalesAmount eachSalesAmount: testSalesAmounts){
 session.insert(eachSalesAmount);
 session.fireAllRules();
   }

}


public static ArrayListSalesAmount getTestSalesAmounts(){
ArrayListSalesAmount testSalesAmount = new ArrayListSalesAmount();

for(int i =0; i15;i++){
Random random = new Random();
SalesAmount.testSalesAmount= new SalesAmount();
testSalesAmount.setId(i);
testSalesAmount.setSalesAmount(random.nextInt(500));

testSalesAmounts.add(testSalesAmount);
}
  return  testSalesAmounts;
 }



SalesAmounts is assigned  randomly using util class

and each fact is inserted  at a time in the loop control

if after the loop , the data changes how can i fire the rules

please modify my code if any mistakes you find


regards
sai

On Fri, Oct 12, 2012 at 2:05 PM, abhinay_agarwal 
abhinay_agar...@infosys.com wrote:

 Hey sai,

 First of all make sure whether you will be having a list of objects
 containing salesAmount or list of salesAmount.

 If you are having a list, then your list should also be present in the WHEN
 condition, such that when the state of your list changes then the rule gets
 fired !!

 Regards,
 Abhinay



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/rules-users-firing-rules-twice-in-single-session-on-single-object-tp4020220p4020241.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread Wolfgang Laun
Hi,

a nice problem... see below

On 12/10/2012, mohan mohan.narang...@gmail.com wrote:
 Hi laune,
 I'll explain the process briefly. I’m getting voice call events from our
 billing system. We want give some offers if call made inside specific cell
 (uploaded this fact to WM in advance) . But we have to give offer only once
 per day. So repeated calls inside this cell won’t eligible for offer again.
 To achieve this we initiate a new event(NotificationEvent) and insert into
 WM and set metadata @expires(24h) against each mobile no. Ultimately over
 1000K NotificationEvents are residing in WM per day and guess it will
 trigger OutOfMemory exception.  How to handle such a case? Do we need to use
 caching mechanism?


Unclear: Is NotificationEvent in the preceding paragraph the
OfferedEvent in your rule below? And the expiry would have to be set
for OfferedEvent, not each mobile no (as written above).

Also, clarify once per day. It seems that you want not again in the
next 24 hours but it can also be interpreted as only once between
0:00 and 24:00. (The latter would be much easier to handle.)

Beware: nothing of the code below is tested.

Reducing the number of facts can be done by registering offers made in a
one fact per offerId (assuming a mobile number can be stored in a long,
which should be possible):

declare OffersMade
  offerId : int
  origin2time : MapLong,Long
end

You match a call event to an offer:

rule Call matches Offer
when
$vc : VoiceCallEvent( $ct : eventTime,
  $cell : cellID,
  $mobile : originNumber)
$offer : CymOfferInfo($valTo : validTo.time = $ct,
  cellId == $cell,
  $offerId : offerType.getId,
  $msgContent : cepMsgTemplates.getId)
then
end

Then there's two cases: you don't have a matching OffersMade yet, or
you have but the caller isn't registered:

rule No such offer yet
extends Call matches Offer
when
not OffersMade( offerId == $offerId )
then
OffersMade offersMade = new OffersMade();
offersMade.setOfferId( $offerId );
Map o2t = new HashMap();
offersMade.setOrigin2Time( o2t );
o2t.put( $mobile, $ct.getTime() );
insert( offersMade );
MdbServiceUtil.sendSMS( $mobile, $msgContent );
retract( $vc );
end

rule No offer for this origin
extends Call matches Offer
when
$om: OffersMade( offerId == $offerId,
 origin2time.keySet not contains $mobile )
then
$om.getOrigin2Time().put( $mobile, $ct.getTime() );
update( $om );
MdbServiceUtil.sendSMS( $mobile, $msgContent );
retract( $vc );
end

Finally you need to get rid of old entries. This can be done in a rule
with a timer:

rule erase old offers
timer (cron:* 0/15 * * * ?)
when
$om: OffersMade()
then
boolean change = false;
long limit = (new Date()).getTime() - 24*60*60*1000;
for( Map.Entry entry: $om.getOrigin2Time().entrySet() ){
if( (Long)entry.getValue() = limit ){
   $om.getOrigin2Time().remove( entry.getKey() );
   change = true;
}
}
if( change ) update( $om );
end

This still requires two Long objects per offer made (and overhead for the Map).

You might reduce this further by storing the time only once per
OffersMade, so that it is sufficient to have a Set for the
originNumbers:

declare OffersMade
  offerId : int
  offerTime : long
  origins : SetLong
end

Of course it would be obtuse to have one OffersMade per millisecond,
which means that offerTime must be reduced to ticks of some reasonable
granularity, I'd say between 1m and 1h. The required rule set is
similar to the preceding one, even simpler, as it is, for instance,
possible to discard an OffersMade object entirely after 24 hours:

rule discard old set
timer( int: 24h )
when
$om: OffersMade
then
retract( $om );
end

-W



 Thanks.

 see below code snippet

 rule Voice CYM offer selector
 dialect java
 no-loop true
 when
 $vc : VoiceCallEvent( $ct : eventTime, $cell : cellID, $mobile :
 originNumber) from entry-point IN-VOICE-CALL-EVENT
 $offer : CymOfferInfo($valTo : validTo.time = $ct, cellId ==
 $cell,$offerId : offerType.getId, $msgContent : cepMsgTemplates.getId)
 not( OfferedEvent(mobileNo == $mobile , offerId ==  $offerId ))
 then
CYMOfferMessage genMsg = new CYMOfferMessage();
OfferedEvent offered = new OfferedEvent();
offered.setMobileNo($mobile);
offered.setOfferId((String)$offerId);
genMsg.setMobile($mobile);
genMsg.setMsgContent($msgContent);

 /* atttach offer here */

 /*  drop SMS message to queue  block offer trigger again*/
 mdbService.dropMessage(genMsg);
 insert(offered);
 end



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp4020185p4020235.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.

 

Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread mohan
Hi laune, 

really appreciate your valuable time  dedication on this.
Yes I did a mistake that there is no NotificationEvent and that should be
OfferedEvent.
Primary keys of the OfferedEvent  are mobileNo  offerId. i.e should not
send particular offer notification to perticuler mobile within next 24 hour.
once per day : not again in the next 24 hours” . (not calender days)

I’m checking your code and will try to apply. If there are any suggestion or
any amendments based on above input please post.

Thanks a lot



--
View this message in context: 
http://drools.46999.n3.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp4020185p4020246.html
Sent from the Drools: User forum mailing list archive at Nabble.com.

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Planner for purchasing optimization - good fit for problem?

2012-10-12 Thread Geoffrey De Smet

  
  

Op 11-10-12 21:34, Schneider, Bill
  schreef:


  
  
  
  
Geoffrey, 
Thanks for the
quick response. 


As Im learning
more about my scenario, it feels more like a mixed-integer
problem than a combinatorial problem. The objective
function is linear in the decision variables. I would model
the decision variables as the quantities of each item from
each vendor. 
  
  

This might be the biggest hurdle in Planner. A variable that
represents a quantity, for which is it's unrealistic to make a pool
of all values is currently difficult (but not impossible) in
Planner. Future work will improve support for this - but currently
you 'll likely need to implement custom moves (see manual).

  
 The
conditional offers I could model as a separate vendor/bid,
with a binary decision variable for condition met? and
inequalities to constrain the quantities that depend on the
binary variable. Some of the global constraints can be
modeled in the same way, like at most two vendors.

It sounds like
there are some advantages to using Drools Planner in terms
of readability and maintainability of the relationships and
constraints  you have the full expressive power of DRL (or
Java), and are not limited to inequalities. That could
make it easier to program for new types of rules or
constraints later.


Are there any
advantages to using Drools Planner from a
computational-complexity standpoint as well? Would it *hurt*
to use in terms of CPU/memory, or even learning curve, for a
problem that is possibly not combinatorial, and might be
solvable with other means?
  

In my experience, if it scales beyond 10 000 values (= bids) and 10
000 purchases, LP and MIP's memory requirements are impossible today
and metaheuristics are the only way.
See Google roadef 2012 competition:
http://blog.athico.com/2012/06/roadef-2012-first-results-for-dataset-b.html
And that's even without scaling out the number of constraints (=
score rules).

  


Also  are you
aware of any case studies or examples of Drools Planner
being used in the purchasing domain like this?
  
  

Not in the purchasing domain - I suspect the quantity complexity is
hindering adoption in that area currently.

  


Thanks again!

--Bill


  
From:
rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org]
On Behalf Of Geoffrey De Smet
Sent: Thursday, October 11, 2012 10:35 AM
To: Rules Users List
Subject: Re: [rules-users] Drools Planner for
purchasing optimization - good fit for problem?
  


[]
- If you want to upscale, go Metaheuristics (for example
with Planner). If you want to downscale, linear programming
might be a better fit. (Compo's like ROADEF 2012 assert this
statement).
- LP will require you to write your constraints as
mathematical equitations based on arrays and primitives, for
example "x  y * 1.21". Planner uses a declarative OO
approach using drools rules (or even just plain Java), for
example "Invoice ($x  yWithVAT)".
- If you have different conditional price types, you might
want to look into using a drools decision table to easily
declare that conditional logic - and use that as in Planner.
Especially if those rules change often.



Thanks for any help you can give.
--Bill




___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

  
  
  
  
  ___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



  

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] firing rules twice in single session on single object

2012-10-12 Thread Davide Sottara
A rule like

when
  sales : Sales (salesAmount =200)
then 
  sales.setSalesMessage(goodsales);
end

will not trigger any new evaluation because the engine can't detect the
change. You'll need to make the engine aware of the change : 

when
  sales : Sales (salesAmount =200)
then 
  modify (sales) { setSalesMessage(goodsales); }
end

Notice that modify does NOT simply cause rules to re-fire. It causes a
reevaluation of the object which has been modified. Any rule with a pattern
that matches the new version of the object will become active gain. In your
case, since you do not have any constraints on the salesMessage, any
precondition that was holding before the set will be still holding and your
rule will LOOP. You will have to add a salesMessage == null condition in
the LHS, or mark the Sales class as @propertyReactive.

I would also like to understand your requirement of firing rules TWICE..
do you need to evaluate your fact both before and after setting the message?
(the salesamount would be unchanged)

Davide





--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-firing-rules-twice-in-single-session-on-single-object-tp4020220p4020249.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Drools Planner for purchasing optimization - good fit for problem?

2012-10-12 Thread Schneider, Bill
Geoffrey,
Thanks, this was very helpful.
--Bill

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Geoffrey De Smet
Sent: Friday, October 12, 2012 11:11 AM
To: Rules Users List
Subject: Re: [rules-users] Drools Planner for purchasing optimization - good 
fit for problem?


Op 11-10-12 21:34, Schneider, Bill schreef:
Geoffrey,
Thanks for the quick response.

As I'm learning more about my scenario, it feels more like a mixed-integer 
problem than a combinatorial problem.  The objective function is linear in the 
decision variables.  I would model the decision variables as the quantities of 
each item from each vendor.
This might be the biggest hurdle in Planner. A variable that represents a 
quantity, for which is it's unrealistic to make a pool of all values is 
currently difficult (but not impossible) in Planner. Future work will improve 
support for this - but currently you 'll likely need to implement custom moves 
(see manual).

The conditional offers I could model as a separate vendor/bid, with a binary 
decision variable for condition met? and inequalities to constrain the 
quantities that depend on the binary variable.   Some of the global constraints 
can be modeled in the same way, like at most two vendors.
It sounds like there are some advantages to using Drools Planner in terms of 
readability and maintainability of the relationships and constraints - you have 
the full expressive power of DRL (or Java), and are not limited to 
inequalities.   That could make it easier to program for new types of rules or 
constraints later.

Are there any advantages to using Drools Planner from a 
computational-complexity standpoint as well?  Would it *hurt* to use in terms 
of CPU/memory, or even learning curve, for a problem that is possibly not 
combinatorial, and might be solvable with other means?
In my experience, if it scales beyond 10 000 values (= bids) and 10 000 
purchases, LP and MIP's memory requirements are impossible today and 
metaheuristics are the only way.
See Google roadef 2012 competition: 
http://blog.athico.com/2012/06/roadef-2012-first-results-for-dataset-b.html
And that's even without scaling out the number of constraints (= score rules).


Also - are you aware of any case studies or examples of Drools Planner being 
used in the purchasing domain like this?
Not in the purchasing domain - I suspect the quantity complexity is hindering 
adoption in that area currently.


Thanks again!

--Bill
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Custom Form with DSL

2012-10-12 Thread bhochhi

Thanks Mike!
I created the JIRA. https://issues.jboss.org/browse/GUVNOR-1956.

Regards
Rupesh



--
View this message in context: 
http://drools.46999.n3.nabble.com/Custom-Form-with-DSL-tp4020207p4020250.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Custom Form with DSL

2012-10-12 Thread GPatel
Is there a way to pass the editing context to the custom form? For 
example, in the rule below:

[when] type of mineral is {mineralName:CF:Mineral.name}and country of 
mining is {countryName:CF:Country.name}

If the mineral Quartz is selected, then the custom form displaying the 
country list should only display Quartz-producting countries. For this, 
the fact that mineral type Quartz was selected would need to be passed to 
the custom form. Is that possible?

Thanks
Ghanshyam



From:   Michael Anstis michael.ans...@gmail.com
To: Rules Users List rules-users@lists.jboss.org, 
Date:   10/12/2012 12:57 AM
Subject:Re: [rules-users] Custom Form with DSL
Sent by:rules-users-boun...@lists.jboss.org



This sounds as though it's a bug.

Can you please create a JIRA (https://issues.jboss.org/browse/GUVNOR) and 
attach a repository export demonstrating the issue.

Thanks,

Mike

On 11 October 2012 06:06, bhochhi bhoc...@aol.com wrote:
I were able to launch the custom form in DSL, however the rule condition 
is
not mapped to corresponding DRL. I don't know if this is a bug or just
something is missing. my DSL mapping looks like this:

[when]
 my dsl is {varName:CF:MyFactType.fieldName} =
System.out.println({varName})

I have working set created then configured custom form for fieldName. All
things working but rule is not validating. When I check drl source, I 
found
the mapping is not taking place, its still displaying DSL expression in 
DRL
source instead of displaying:

System.out.println(values from cf)

Any ideas? I have tried this in guvnor 5.4.0.final and 5.5.beta1



--
View this message in context: 
http://drools.46999.n3.nabble.com/Custom-Form-with-DSL-tp4020207.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users



-
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you ___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Iterating facts

2012-10-12 Thread Davide Sottara
FactType (and FactField etc..) are an internal representation of a declared
type's CLASS, hence you can get names, types, etc.. but obviously NOT any
instance's values from there. 

You'll need something like this:

FactType factType = ksession.getKnowledgeBase().getFactType(pckg, Project)
ListFactField fFields =  factType.getFields(); 

// get all Project INSTANCES currently in the WM
Collection objs = kSession.getObjects( new ClassObjectFilter(
factType.getFactClass() );
for ( Object o : objs ) 
  for ( FactField field : fFields )  
Object fieldValue = factType.get( o, field.getName() );


FactType exposes generic get and set methods which use a reflection-like
mechanism to operate on instances extracted from the WM. Notice that since
declared types are transformed into classes at RUNTIME, there is no way to
do it at compile time without this meta approach.

Best
Davide







--
View this message in context: 
http://drools.46999.n3.nabble.com/Iterating-facts-tp4020214p4020254.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] [Drools Fusion] Accessing Events' time (read-only) with Drools in STREAM mode, REALTIME clock

2012-10-12 Thread Davide Sottara
Stefano Bragaglia wrote
 Hi guys,
  I just realised that it is not possible to take advantage of the
 default time handling and access the timestamp value at the same time. 

Agreed, one may want to write both qualitative ( A after B ) and
quantitative constraints ( A.time  x ) on an event. While this is possible
when the even timestamp is assigned externally, this is very hard to do with
the fusion-managed timestamp. Unfortunately, what you propose won't work,
since that particular configuration (setting a @timestamp field) would break
the assumption of immutable events. 

We would need something like:

//operator-like, even better with implicit unification
Event( this happensAt $t )  // timestamp
Event( this lasts $d ) // duration

//accessor-like
Event( $t := happensAt, lasts  100 )

Probably this needs to be taken to the dev channel or to the jira feature
requests

Best
Davide






--
View this message in context: 
http://drools.46999.n3.nabble.com/Drools-Fusion-Accessing-Events-time-read-only-with-Drools-in-STREAM-mode-REALTIME-clock-tp4020251p4020256.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread alopez
Hi, 

I'm migrating rules from a Guvnor 5.2.x site to the new beta, I did this by
exporting the old repo and importing in the new one. 

I can see the packages and rules OK now in the new 5.5 Beta 1, creating
snapshots works OK. But build does not, I get an: 

500 The call failed on the server; see server log for details 

http://drools.46999.n3.nabble.com/file/n4020260/Screen_Shot_2012-10-12_at_4.06.40_PM.png
 

This is every time I try to build, either with the Build whole package
option of the built in selector option. 

Is this happening to someone else? Is this way of migrating rules the
recommended procedure? 

Thanks



--
View this message in context: 
http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread Michael Anstis
You are following the recommended migration approach.

Does the server log show anything more interesting than that in the pop-up?

On 12 October 2012 20:14, alopez alo...@termmed.com wrote:

 Hi,

 I'm migrating rules from a Guvnor 5.2.x site to the new beta, I did this by
 exporting the old repo and importing in the new one.

 I can see the packages and rules OK now in the new 5.5 Beta 1, creating
 snapshots works OK. But build does not, I get an:

 500 The call failed on the server; see server log for details

 
 http://drools.46999.n3.nabble.com/file/n4020260/Screen_Shot_2012-10-12_at_4.06.40_PM.png
 

 This is every time I try to build, either with the Build whole package
 option of the built in selector option.

 Is this happening to someone else? Is this way of migrating rules the
 recommended procedure?

 Thanks



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread alopez
Thanks, and I forgot to explain that, the console in the server is completely
silent, if I create a snapshot I can see some Info messages displaying,
but when building and the error appears the console has no messages.



--
View this message in context: 
http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260p4020262.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread Michael Anstis
What about the log file created by your Application Server?

e.g. Tomcat places them in /apache-tomcat-6.0.30/logs; JBoss AS7.1 in
/jboss-as-7.1.1.Final/standalone/log

You may need to refer to your Application Server's documentation.

On 12 October 2012 20:39, alopez alo...@termmed.com wrote:

 Thanks, and I forgot to explain that, the console in the server is
 completely
 silent, if I create a snapshot I can see some Info messages displaying,
 but when building and the error appears the console has no messages.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260p4020262.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread alopez
Yes, that is the one we are monitoring (tomcat in this case), we see this:

INFO  12-10 11:58:59,435 (LoggingHelper.java:info:49) USER:admin
CREATING MODULE SNAPSHOT for module: [ihtsdoBaseRules] snapshot name:
[ihtsdoBaseRules

but it does not show anything new if we try to build...



--
View this message in context: 
http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260p4020264.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread Michael Anstis
OK, strange, but I have no reason to doubt you.

We will need your repository export file to investigate further, or at
least a minimal 5.2 export that demonstrates the problem.

Please raise a JIRA (https://issues.jboss.org/browse/GUVNOR) and attach the
same.

With kind regards,

Mike

On 12 October 2012 21:04, alopez alo...@termmed.com wrote:

 Yes, that is the one we are monitoring (tomcat in this case), we see this:

 INFO  12-10 11:58:59,435 (LoggingHelper.java:info:49) USER:admin
 CREATING MODULE SNAPSHOT for module: [ihtsdoBaseRules] snapshot name:
 [ihtsdoBaseRules

 but it does not show anything new if we try to build...



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260p4020264.html
 Sent from the Drools: User forum mailing list archive at Nabble.com.
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] 5.5 Beta1 Guvnor Issue 500 The call failed on the server

2012-10-12 Thread alopez
Thanks, will do that.



--
View this message in context: 
http://drools.46999.n3.nabble.com/5-5-Beta1-Guvnor-Issue-500-The-call-failed-on-the-server-tp4020260p4020266.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] java.lang.OutOfMemoryError: Java heap space

2012-10-12 Thread lhorton
Has this issue been fixed, or is it still necessary to remove any event
listeners so that the session is freed?



--
View this message in context: 
http://drools.46999.n3.nabble.com/java-lang-OutOfMemoryError-Java-heap-space-tp54778p4020267.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users