Re: [rules-users] Confirm the usage of agenda-groups

2014-03-20 Thread Wolfgang Laun
Seems OK to me.
-W

On 19/03/2014, djb dbrownel...@hotmail.com wrote:
 Hi all,

 Sorry if it seems like this is an old question, but it's hard finding a
 simple unambiguous example.  It's a stack, right?  So I push them on
 'backwards'.

 I've got 5 groups of rules, and I want the groups to fire in the order I've
 described the groups as, below.

 I also don't want them to start firing as soon as a fact is inserted, which
 is what seems to happen, according to my activation listener.

 So, would I do this:
 --
 getAgendaGroup( last group to fire ).setFocus();
 getAgendaGroup( second last group to fire ).setFocus();
 getAgendaGroup( middle group to fire ).setFocus();
 getAgendaGroup( second group to fire ).setFocus();
 getAgendaGroup( first group to fire ).setFocus();

 insert(facts)

 fireAllRules()
 --
 ?



 Thanks



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Confirm-the-usage-of-agenda-groups-tp4028813.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] KnowledgeAgentImpl memory leak (5.5.0.Final)

2014-03-20 Thread alineasol
is it this problem a known bug?
We have noticed this problem in our production system. We can not change
Drools version easily. 



--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgentImpl-memory-leak-5-5-0-Final-tp4028798p4028819.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] KnowledgeAgentImpl memory leak (5.5.0.Final)

2014-03-20 Thread alineasol
We use a Linux system and we set the maximum memory size for the tomcat java
process, so we can not increase it.



--
View this message in context: 
http://drools.46999.n3.nabble.com/KnowledgeAgentImpl-memory-leak-5-5-0-Final-tp4028798p4028820.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] ResourceChangeScannerImpl - Thread stop problem (v5.5.0 final)

2014-03-20 Thread alineasol
Any idea about this?



--
View this message in context: 
http://drools.46999.n3.nabble.com/ResourceChangeScannerImpl-Thread-stop-problem-v5-5-0-final-tp4027160p4028821.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] ResourceChangeScannerImpl - Thread stop problem (v5.5.0 final)

2014-03-20 Thread Bharadwaj N
Try this.
http://stackoverflow.com/questions/7729399/how-to-quiet-drools-resource-scanner-logging


On Thu, Mar 20, 2014 at 1:32 PM, alineasol engineer...@alineasol.comwrote:

 Any idea about this?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/ResourceChangeScannerImpl-Thread-stop-problem-v5-5-0-final-tp4027160p4028821.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

[rules-users] Rules updating error

2014-03-20 Thread Ioannis Christodoulou
In my java ee application, I use drools 6.1.0.Beta1, deployed on jboss eap
6.2 (I have also deployed Kie Workbench 6.0.1.Final).

In order to get the latest updates on my rules (made on kie wb) I tried to
set kiescanner to LATEST. This seems to not be working always (I'm not
100% sure about the reason, it seems to happen when I have not re-deployed
the jar with the model classes I use in my rules, or I have not clicked on
builddeploy of the rules project), so I have reverted to using 1.0 as
the version and not changing the version when I update the rules project.

There is an issue with the application not validating, because I have a
guided decision table which uses a global variable and a function, but that
seems to not be an error after all (everything seems to build as it should).

However, while my application is running (and watching for updates through
scanner), if I make an update and deploy the rules project again, the
application retrieves the update and fails with a validation error about
not being able to analyse the expressions regarding the global function and
the global variable.

Any suggestions?

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

Re: [rules-users] Programmatically load rules classloader NullPointerException

2014-03-20 Thread GrantWang
Would someone please help with this? Did I do something wrong or is this a
bug? I am using 6.0.1. Thanks!



--
View this message in context: 
http://drools.46999.n3.nabble.com/Programmatically-load-rules-classloader-NullPointerException-tp4028783p4028827.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] Multithreaded update of facts in Drools 5.5 - how to ensure that a nested value isn't null

2014-03-20 Thread Per Sterner
Hello,

My question is:
How can I ensure that a nested property isn't null (in a multithreaded 
environment)?

This is the rule:

rule Drools Test3: Concurrency
dialect java
when
 $testObj : TestObject(
 $ref : subObject,
 $ref != null,
 $ref.message != null
 )
then
 System.out.println(Received-04-A:  + $testObj);
end

I am getting the following exception if I try to modify the fact in 
different threads.

  java.lang.NullPointerException: null
  at 
ConditionEvaluator8d1e3555e8c34810957bbb1670f51176.evaluate(null:-1)
  at 
org.drools.rule.constraint.MvelConstraint.evaluate(MvelConstraint.java:200)
  at 
org.drools.rule.constraint.MvelConstraint.isAllowed(MvelConstraint.java:157)
  at org.drools.reteoo.AlphaNode.modifyObject(AlphaNode.java:154)
  at 
org.drools.reteoo.SingleObjectSinkAdapter.propagateModifyObject(SingleObjectSinkAdapter.java:68)
  at org.drools.reteoo.AlphaNode.modifyObject(AlphaNode.java:157)
  at 
org.drools.reteoo.SingleObjectSinkAdapter.propagateModifyObject(SingleObjectSinkAdapter.java:68)
  at 
org.drools.reteoo.ObjectTypeNode.modifyObject(ObjectTypeNode.java:314)
  at 
org.drools.reteoo.EntryPointNode.modifyObject(EntryPointNode.java:265)
  at org.drools.common.NamedEntryPoint.update(NamedEntryPoint.java:483)
  at 
org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:976)
  at 
org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:949)
  at 
org.drools.impl.StatefulKnowledgeSessionImpl.update(StatefulKnowledgeSessionImpl.java:284)
 [...]

There are two threads running which modify the same reference in a 
testobject (subObject). They trigger a queued update of the fact.


One solution would be:
- insert the nested object in drools
- and modify the rule:

rule Drools Test3: Concurrency 2
dialect java
when
 $subObj : TestObject(
 message != null
 )
 $testObj : TestObject(
 subObject == $subObj
 )
then
 System.out.println(Received-04-A:  + $testObj);
end

Can I achieve a thread safety differently?

Thanks and regards,

   Per Sterner

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


[rules-users] Sliding window full length question

2014-03-20 Thread GrantWang
Hi, I found the following statements in Drools document:

Sliding windows start to match immediately and defining a sliding window
does not imply that the rule has to wait for the sliding window to be full
in order to match. For instance, a rule that calculates the average of an
event property on a window:length(10) will start calculating the average
immediately, and it will start at 0 (zero) for no-events, and will update
the average as events arrive one by one.

Would someone please let me know how I can wait for the sliding windows to
be full to match? Our requirement is always use the average reading over at
least 60 seconds.

Thanks!
Grant



--
View this message in context: 
http://drools.46999.n3.nabble.com/Sliding-window-full-length-question-tp4028829.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] part time intern @ Red Hat

2014-03-20 Thread Mark Proctor
I have a small budget for a part time intern for one year, 12K USD. The work 
can be 100% remote, from almost any country. This will mostly be UI work, 
improving our workbench.

If this interests you, email me off list.

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


Re: [rules-users] Programmatically load rules classloader NullPointerException

2014-03-20 Thread Davide Sottara
Can you try 6.1.0-SNAPSHOT?
I tried your code quickly and it seems to work
Davide

On 03/20/2014 03:25 PM, GrantWang wrote:
 Would someone please help with this? Did I do something wrong or is this a
 bug? I am using 6.0.1. Thanks!



 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Programmatically-load-rules-classloader-NullPointerException-tp4028783p4028827.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-20 Thread SrjTx
I don't know what is different today, but LATEST is working.  I think I had
too many changes going on at once, back to a good state.

(FYI, We've been cherry picking fixes from the master branch)

So, I'm getting close.
Now, I even see the message
The following artifacts have been updated: {..blah blah..}

But, what I am not seeing now is the changes in the then sections I made
in the rules (just printlns at this point).  I have to restart jboss to see
the changes.

The scanner is running and according to the example shown at

http://stackoverflow.com/questions/22205945/drools-6-add-rules-to-a-running-kiesession/22208775?noredirect=1#22208775
http://stackoverflow.com/questions/22205945/drools-6-add-rules-to-a-running-kiesession/22208775?noredirect=1#22208775
  



it seems like the sessions should automatically update.  Is that true?  Or,
do I have to create a new session after the contain is updated with the new
rules?





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028833.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-20 Thread Joe White
You have to create a new session. Only new sessions will have the updated 
kmodule information. 

-Original Message-
From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of SrjTx
Sent: Thursday, March 20, 2014 10:38 AM
To: rules-users@lists.jboss.org
Subject: Re: [rules-users] 6.0.1.F How to set Maven repo used by KieScanner?

I don't know what is different today, but LATEST is working.  I think I had 
too many changes going on at once, back to a good state.

(FYI, We've been cherry picking fixes from the master branch)

So, I'm getting close.
Now, I even see the message
The following artifacts have been updated: {..blah blah..}

But, what I am not seeing now is the changes in the then sections I made in 
the rules (just printlns at this point).  I have to restart jboss to see the 
changes.

The scanner is running and according to the example shown at

http://stackoverflow.com/questions/22205945/drools-6-add-rules-to-a-running-kiesession/22208775?noredirect=1#22208775
http://stackoverflow.com/questions/22205945/drools-6-add-rules-to-a-running-kiesession/22208775?noredirect=1#22208775
  



it seems like the sessions should automatically update.  Is that true?  Or, do 
I have to create a new session after the contain is updated with the new rules?





--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028833.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] 6.0.1.F How to set Maven repo used by KieScanner?

2014-03-20 Thread SrjTx
Is there a callback or something from the scanner that I can register for
that will let me know that there are deltas and I should create a new
session?



--
View this message in context: 
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028835.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] Updating project repositories

2014-03-20 Thread Joe White
I have updated my repository configuration but when I build and deploy by 
package two things happen:

-  The jar only gets deployed to my local repo it doesn't go out to the 
remote instance

-  The pom doesn't contain the full repository configuration when 
deployed. The snapshot and releases config are dropped

Am I missing a piece of config to get the jar pushed out to my remote repo?

My repository config inside the WB:
repositories
repository
idrecondo-repo/id
namepapaafrepo001-releases/name
releases
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/releases
snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/snapshots

urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/url
/repository
/repositories

Repo config inside the deployed pom:
repositories
repository
  idrecondo-repo/id
  namepapaafrepo001-releases/name
  urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/url
/repository
  /repositories


Joe White
CIO Technology Enabled Services
303-974-2849 (Office)
720-232-9023 (Cell)

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

[rules-users] Needs advice to help Drools on a big problem (and avoid GC overhead)

2014-03-20 Thread Raphael
Hi,

In our project, we use Drools to compute forbidden allocations as input for
an allocation problem  (for which we do not use Drools BTW).

The constraint of the problem (forbidden operation for given resources) are
expressed as drools rules.

We have about
-200 resources
-700 operations

Those are the Drools facts.
We have about 200 Drools rules describing the forbidden allocations

The problem here is that many rules produce duplicates forbids.
For instance :
Rule 1 may forbid Op1 on Res1  Res3
Rule 2 may forbid Op1 on Res2  res3

Currently the RHS of rules just insert forbids into a pure Java Set (no fact
insertion).
The Set takes care of avoiding duplicates, but still, we feel we could help
Drools by giving him a hint that
all rules are actually producing pairs of Resource, Allocation and that he
should not try to produce them more than once.

Currently the structure of each rule looks like that :

when
 $resource : Resource(someconditions)
 $operation : Operation(someconditions)
then
  globalSet.add(Pairresrouce, operation) 
end

With the size of the problem, we often end up with outOfMem/ GC limit.
When analyzing memory dump, we see about 
300.000 drools left tuple object.

I am not sure if we could help drools to reduce the Rete tree here.
I mean, the allocation matrix is already : 200*700 = 140.000 cells.
Drools only uses 2 nodes for each possible forbids, which seems already well
optimized.

We had several idea to improve that though, but we are not enough expert in
the internal of the RETE algorithm to decide if that's a good way to go :

1) Insert forbids as facts in the RHS and check they are not already there
in the LHS :
when
 $resource : Resource(someconditions)
 $operation : Operation(someconditions)
 not Forbid(res=$resource, op=$operation)
then
  insert(Forbid($resource, $operation))
end

2) Merge all rules in one big rule with a single RHS
Is it possible to have something like :
when
 // Rule 1 
 ($resource : Resource(someconditions)
 $operation : Operation(someconditions))
  or
 // Rule 2 
 ($resource : Resource(someconditions)
 $operation : Operation(someconditions))
 // Etc ...
then
  globalSet.add(Pairresrouce, operation) 
end

3) Define a common RHS somewhere and tell Drools all rules use this one.
Is there a possibility in Drools to define reusable RHS ? Would it help ?

4) Any other idea ?


Thanks in advance for your help.
Brgds,

Raphael Jolivet






















--
View this message in context: 
http://drools.46999.n3.nabble.com/Needs-advice-to-help-Drools-on-a-big-problem-and-avoid-GC-overhead-tp4028838.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] Rules updating error

2014-03-20 Thread Michael Anstis
From what I can gather from your email there are two problems. Please
confirm and then we can comment further:

(1) Validation of a guided decision table, that uses a global, reports a
validation error.

(2) Changes to the decision table's use of a global is not being detected
bt KieScanner.

Sent on the move
On 20 Mar 2014 11:28, Ioannis Christodoulou io.chris...@gmail.com wrote:

 In my java ee application, I use drools 6.1.0.Beta1, deployed on jboss eap
 6.2 (I have also deployed Kie Workbench 6.0.1.Final).

 In order to get the latest updates on my rules (made on kie wb) I tried to
 set kiescanner to LATEST. This seems to not be working always (I'm not
 100% sure about the reason, it seems to happen when I have not re-deployed
 the jar with the model classes I use in my rules, or I have not clicked on
 builddeploy of the rules project), so I have reverted to using 1.0 as
 the version and not changing the version when I update the rules project.

 There is an issue with the application not validating, because I have a
 guided decision table which uses a global variable and a function, but that
 seems to not be an error after all (everything seems to build as it should).

 However, while my application is running (and watching for updates through
 scanner), if I make an update and deploy the rules project again, the
 application retrieves the update and fails with a validation error about
 not being able to analyse the expressions regarding the global function and
 the global variable.

 Any suggestions?

 Thank you very much.


 ___
 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] Updating project repositories

2014-03-20 Thread Michael Anstis
I've asked a colleague to comment.

We do manipulate the pom for the UI but should retain original content that
is not modified by the Project Editor.

@Toni... What's your opinion?

Sent on the move
On 20 Mar 2014 18:03, Joe White joe.wh...@recondotech.com wrote:

 Also, that is the same configuration that is in my settings.xml for my
installed maven instance and the profile is active.



*From:* rules-users-boun...@lists.jboss.org [mailto:
rules-users-boun...@lists.jboss.org] *On Behalf Of *Joe White
*Sent:* Thursday, March 20, 2014 12:01 PM
*To:* Rules Users List
*Subject:* [rules-users] Updating project repositories



I have updated my repository configuration but when I build and deploy by
package two things happen:

-  The jar only gets deployed to my local repo it doesn't go out to
the remote instance

-  The pom doesn't contain the full repository configuration when
deployed. The snapshot and releases config are dropped



Am I missing a piece of config to get the jar pushed out to my remote repo?



*My repository config inside the WB:*

repositories

repository

idrecondo-repo/id

namepapaafrepo001-releases/name

releases

enabledtrue/enabled

updatePolicyalways/updatePolicy

checksumPolicyfail/checksumPolicy

/releases

snapshots

enabledtrue/enabled

updatePolicyalways/updatePolicy

checksumPolicyfail/checksumPolicy

/snapshots

url
http://papaafrepo001.recondo.vci:8081/artifactory/repo/url

/repository

/repositories



*Repo config inside the deployed pom:*

repositories

repository

  idrecondo-repo/id

  namepapaafrepo001-releases/name

  urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/url

/repository

  /repositories





Joe White

CIO Technology Enabled Services

303-974-2849 (Office)

720-232-9023 (Cell)



___
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] Efficiency questions about DSL

2014-03-20 Thread Michael Anstis
So many questions

I can comment on the workbench related aspects.

The workbench only includes DSL files for authoring DSLR (or RDSLR) files
that are in the same folder as the rule. I use the term folder as we
don't support same package (which would imply if the same package existed
in different JARs we'd include all DSL files - we do not).

The expander keyword is, AFAIK, deprecated. DSL/DSLR expansion depends
upon the files being in the same folder.

@Mario, @Mark, @Edson. Can you comment on whether KIE does handle DSL
expansion across different JARs?

Sent on the move
On 18 Mar 2014 09:20, mfalaize maxime.fala...@gmail.com wrote:

 Hi,

 I was wondering how to use efficiently DSL with my rules and I have several
 questions about it :

 - First, I have the impression that we can use DSL files only in the same
 package of the DSLR file. When I tried to load DSL files by the kmodule.xml
 (specifying the different packages in the packages attribute of kbase) it
 does not work. Do I have to load each DSL files programmatically or is
 there
 a way to load it automatically by the kmodule.xml (and if it is the case,
 how can we handle the parsing order of these files ?) ?

 - An underlying question is is this a good practice to divide DSL files ? I
 would like to translate all my rules in french and to put the generic
 translations in a unique DSL file to reuse it in all of my different DSLR
 files.

 - I noted that we can use more than one DSL file for one DSLR file (it
 works
 at the runtime) but when it is the case the DRL viewer of the DSL rule
 editor does not work and I don't have autocompletion. I tried to put
 several
 expander instructions but it fails. Is there a way to make it work ?

 I think DSL stuff is underestimate at this moment by the community and for
 my last question I would like to know what is the future plans about this
 feature ? Maybe I could help to develop it.

 Regards




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Efficiency-questions-about-DSL-tp4028774.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] Rules updating error

2014-03-20 Thread Ioannis Christodoulou
Well, only the second actually, since my understanding (from a previous
question I sent) is that the first is a known thing (issue?).
KieScanner loads the rules project without any issues the first time (upon
application startup) but shows a validation error if the rules project is
updated (minor update, definitely not causing a validation error),
reporting that it cannot Analyze the expressions involving the global
variable and the function.

Ευχαριστώ πολύ,
   Ιωάννης Χριστοδούλου


On Thu, Mar 20, 2014 at 9:02 PM, Michael Anstis michael.ans...@gmail.comwrote:

 From what I can gather from your email there are two problems. Please
 confirm and then we can comment further:

 (1) Validation of a guided decision table, that uses a global, reports a
 validation error.

 (2) Changes to the decision table's use of a global is not being detected
 bt KieScanner.

 Sent on the move
 On 20 Mar 2014 11:28, Ioannis Christodoulou io.chris...@gmail.com
 wrote:

 In my java ee application, I use drools 6.1.0.Beta1, deployed on jboss
 eap 6.2 (I have also deployed Kie Workbench 6.0.1.Final).

 In order to get the latest updates on my rules (made on kie wb) I tried
 to set kiescanner to LATEST. This seems to not be working always (I'm not
 100% sure about the reason, it seems to happen when I have not re-deployed
 the jar with the model classes I use in my rules, or I have not clicked on
 builddeploy of the rules project), so I have reverted to using 1.0 as
 the version and not changing the version when I update the rules project.

 There is an issue with the application not validating, because I have a
 guided decision table which uses a global variable and a function, but that
 seems to not be an error after all (everything seems to build as it should).

 However, while my application is running (and watching for updates
 through scanner), if I make an update and deploy the rules project again,
 the application retrieves the update and fails with a validation error
 about not being able to analyse the expressions regarding the global
 function and the global variable.

 Any suggestions?

 Thank you very much.


 ___
 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] Rules updating error

2014-03-20 Thread Michael Anstis
Ok.

You are correct (1) is a known issue that I am working on at the moment.

Can you give illustrative DRL for the original rule and updated rule that
causes problems for (2). It would help understand what could be the cause
(or submit a pull request containing a unit test).

Sent on the move
On 20 Mar 2014 19:20, Ioannis Christodoulou io.chris...@gmail.com wrote:

 Well, only the second actually, since my understanding (from a previous
 question I sent) is that the first is a known thing (issue?).
 KieScanner loads the rules project without any issues the first time (upon
 application startup) but shows a validation error if the rules project is
 updated (minor update, definitely not causing a validation error),
 reporting that it cannot Analyze the expressions involving the global
 variable and the function.

 Ευχαριστώ πολύ,
Ιωάννης Χριστοδούλου


 On Thu, Mar 20, 2014 at 9:02 PM, Michael Anstis 
 michael.ans...@gmail.comwrote:

 From what I can gather from your email there are two problems. Please
 confirm and then we can comment further:

 (1) Validation of a guided decision table, that uses a global, reports a
 validation error.

 (2) Changes to the decision table's use of a global is not being detected
 bt KieScanner.

 Sent on the move
 On 20 Mar 2014 11:28, Ioannis Christodoulou io.chris...@gmail.com
 wrote:

 In my java ee application, I use drools 6.1.0.Beta1, deployed on jboss
 eap 6.2 (I have also deployed Kie Workbench 6.0.1.Final).

 In order to get the latest updates on my rules (made on kie wb) I tried
 to set kiescanner to LATEST. This seems to not be working always (I'm not
 100% sure about the reason, it seems to happen when I have not re-deployed
 the jar with the model classes I use in my rules, or I have not clicked on
 builddeploy of the rules project), so I have reverted to using 1.0 as
 the version and not changing the version when I update the rules project.

 There is an issue with the application not validating, because I have a
 guided decision table which uses a global variable and a function, but that
 seems to not be an error after all (everything seems to build as it should).

 However, while my application is running (and watching for updates
 through scanner), if I make an update and deploy the rules project again,
 the application retrieves the update and fails with a validation error
 about not being able to analyse the expressions regarding the global
 function and the global variable.

 Any suggestions?

 Thank you very much.


 ___
 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

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

Re: [rules-users] Needs advice to help Drools on a big problem (and avoid GC overhead)

2014-03-20 Thread Mark Proctor
Did you try using the engine in equality mode? It will only ever allow one 
“equal” object to be inserted, others are just ignored.

Mark
On 20 Mar 2014, at 18:54, Raphael raphael.joli...@gmail.com wrote:

 Hi,
 
 In our project, we use Drools to compute forbidden allocations as input for
 an allocation problem  (for which we do not use Drools BTW).
 
 The constraint of the problem (forbidden operation for given resources) are
 expressed as drools rules.
 
 We have about
 -200 resources
 -700 operations
 
 Those are the Drools facts.
 We have about 200 Drools rules describing the forbidden allocations
 
 The problem here is that many rules produce duplicates forbids.
 For instance :
 Rule 1 may forbid Op1 on Res1  Res3
 Rule 2 may forbid Op1 on Res2  res3
 
 Currently the RHS of rules just insert forbids into a pure Java Set (no fact
 insertion).
 The Set takes care of avoiding duplicates, but still, we feel we could help
 Drools by giving him a hint that
 all rules are actually producing pairs of Resource, Allocation and that he
 should not try to produce them more than once.
 
 Currently the structure of each rule looks like that :
 
 when
 $resource : Resource(someconditions)
 $operation : Operation(someconditions)
 then
  globalSet.add(Pairresrouce, operation) 
 end
 
 With the size of the problem, we often end up with outOfMem/ GC limit.
 When analyzing memory dump, we see about 
 300.000 drools left tuple object.
 
 I am not sure if we could help drools to reduce the Rete tree here.
 I mean, the allocation matrix is already : 200*700 = 140.000 cells.
 Drools only uses 2 nodes for each possible forbids, which seems already well
 optimized.
 
 We had several idea to improve that though, but we are not enough expert in
 the internal of the RETE algorithm to decide if that's a good way to go :
 
 1) Insert forbids as facts in the RHS and check they are not already there
 in the LHS :
 when
 $resource : Resource(someconditions)
 $operation : Operation(someconditions)
 not Forbid(res=$resource, op=$operation)
 then
  insert(Forbid($resource, $operation))
 end
 
 2) Merge all rules in one big rule with a single RHS
 Is it possible to have something like :
 when
 // Rule 1 
 ($resource : Resource(someconditions)
 $operation : Operation(someconditions))
  or
 // Rule 2 
 ($resource : Resource(someconditions)
 $operation : Operation(someconditions))
 // Etc ...
 then
  globalSet.add(Pairresrouce, operation) 
 end
 
 3) Define a common RHS somewhere and tell Drools all rules use this one.
 Is there a possibility in Drools to define reusable RHS ? Would it help ?
 
 4) Any other idea ?
 
 
 Thanks in advance for your help.
 Brgds,
 
 Raphael Jolivet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 --
 View this message in context: 
 http://drools.46999.n3.nabble.com/Needs-advice-to-help-Drools-on-a-big-problem-and-avoid-GC-overhead-tp4028838.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] Needs advice to help Drools on a big problem (and avoid GC overhead)

2014-03-20 Thread Raphael Jolivet
Thanks for you quick answer.

Not yet,

For that I will need to switch to fact insertion instead of Java Set.
Do you think to will make a difference in the way the RETE Tree will be
built ?




2014-03-20 20:27 GMT+01:00 Mark Proctor mproc...@codehaus.org:

 Did you try using the engine in equality mode? It will only ever allow one
 equal object to be inserted, others are just ignored.

 Mark
 On 20 Mar 2014, at 18:54, Raphael raphael.joli...@gmail.com wrote:

  Hi,
 
  In our project, we use Drools to compute forbidden allocations as input
 for
  an allocation problem  (for which we do not use Drools BTW).
 
  The constraint of the problem (forbidden operation for given resources)
 are
  expressed as drools rules.
 
  We have about
  -200 resources
  -700 operations
 
  Those are the Drools facts.
  We have about 200 Drools rules describing the forbidden allocations
 
  The problem here is that many rules produce duplicates forbids.
  For instance :
  Rule 1 may forbid Op1 on Res1  Res3
  Rule 2 may forbid Op1 on Res2  res3
 
  Currently the RHS of rules just insert forbids into a pure Java Set (no
 fact
  insertion).
  The Set takes care of avoiding duplicates, but still, we feel we could
 help
  Drools by giving him a hint that
  all rules are actually producing pairs of Resource, Allocation and
 that he
  should not try to produce them more than once.
 
  Currently the structure of each rule looks like that :
 
  when
  $resource : Resource(someconditions)
  $operation : Operation(someconditions)
  then
   globalSet.add(Pairresrouce, operation)
  end
 
  With the size of the problem, we often end up with outOfMem/ GC limit.
  When analyzing memory dump, we see about
  300.000 drools left tuple object.
 
  I am not sure if we could help drools to reduce the Rete tree here.
  I mean, the allocation matrix is already : 200*700 = 140.000 cells.
  Drools only uses 2 nodes for each possible forbids, which seems already
 well
  optimized.
 
  We had several idea to improve that though, but we are not enough expert
 in
  the internal of the RETE algorithm to decide if that's a good way to go :
 
  1) Insert forbids as facts in the RHS and check they are not already
 there
  in the LHS :
  when
  $resource : Resource(someconditions)
  $operation : Operation(someconditions)
  not Forbid(res=$resource, op=$operation)
  then
   insert(Forbid($resource, $operation))
  end
 
  2) Merge all rules in one big rule with a single RHS
  Is it possible to have something like :
  when
  // Rule 1
  ($resource : Resource(someconditions)
  $operation : Operation(someconditions))
   or
  // Rule 2
  ($resource : Resource(someconditions)
  $operation : Operation(someconditions))
  // Etc ...
  then
   globalSet.add(Pairresrouce, operation)
  end
 
  3) Define a common RHS somewhere and tell Drools all rules use this one.
  Is there a possibility in Drools to define reusable RHS ? Would it help ?
 
  4) Any other idea ?
 
 
  Thanks in advance for your help.
  Brgds,
 
  Raphael Jolivet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  --
  View this message in context:
 http://drools.46999.n3.nabble.com/Needs-advice-to-help-Drools-on-a-big-problem-and-avoid-GC-overhead-tp4028838.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

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

Re: [rules-users] Sliding window full length question

2014-03-20 Thread Wolfgang Laun
I'd start a one-shot timer on the arrival of the first Event, to fire
after 60 seconds and insert an auxiliary fact OneMinute and make
those rules depend on the presence of this fact. (Hint: Use extends)

-W

On 20/03/2014, GrantWang grant.w...@intrado.com wrote:
 Hi, I found the following statements in Drools document:

 Sliding windows start to match immediately and defining a sliding window
 does not imply that the rule has to wait for the sliding window to be
 full
 in order to match. For instance, a rule that calculates the average of an
 event property on a window:length(10) will start calculating the average
 immediately, and it will start at 0 (zero) for no-events, and will update
 the average as events arrive one by one.

 Would someone please let me know how I can wait for the sliding windows to
 be full to match? Our requirement is always use the average reading over at
 least 60 seconds.

 Thanks!
 Grant



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Sliding-window-full-length-question-tp4028829.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] Needs advice to help Drools on a big problem (and avoid GC overhead)

2014-03-20 Thread Wolfgang Laun
I may fail to understand the fundamentals of this problem, but it seems
to me that it doesn't have the dynamic requirements that would
warrant a full blow up of all Resources and Operations at the same time.

We have the 300 rules, and I'm assuming that the pattern is the one
shown in OP's mail: a Resource subset times an Operation subset. So,
if you insert just one Resource (or Operation) fact together with
all Operation (or Resource) facts and fire all rules, you'll get all Forbids
for the one Resource with all Operations (or vice versa). Then, you
retract the singleton and insert the next one, fire all rules, and so on.

-W


On 20/03/2014, Raphael Jolivet raphael.joli...@gmail.com wrote:
 Thanks for you quick answer.

 Not yet,

 For that I will need to switch to fact insertion instead of Java Set.
 Do you think to will make a difference in the way the RETE Tree will be
 built ?




 2014-03-20 20:27 GMT+01:00 Mark Proctor mproc...@codehaus.org:

 Did you try using the engine in equality mode? It will only ever allow
 one
 equal object to be inserted, others are just ignored.

 Mark
 On 20 Mar 2014, at 18:54, Raphael raphael.joli...@gmail.com wrote:

  Hi,
 
  In our project, we use Drools to compute forbidden allocations as input
 for
  an allocation problem  (for which we do not use Drools BTW).
 
  The constraint of the problem (forbidden operation for given resources)
 are
  expressed as drools rules.
 
  We have about
  -200 resources
  -700 operations
 
  Those are the Drools facts.
  We have about 200 Drools rules describing the forbidden allocations
 
  The problem here is that many rules produce duplicates forbids.
  For instance :
  Rule 1 may forbid Op1 on Res1  Res3
  Rule 2 may forbid Op1 on Res2  res3
 
  Currently the RHS of rules just insert forbids into a pure Java Set (no
 fact
  insertion).
  The Set takes care of avoiding duplicates, but still, we feel we could
 help
  Drools by giving him a hint that
  all rules are actually producing pairs of Resource, Allocation and
 that he
  should not try to produce them more than once.
 
  Currently the structure of each rule looks like that :
 
  when
  $resource : Resource(someconditions)
  $operation : Operation(someconditions)
  then
   globalSet.add(Pairresrouce, operation)
  end
 
  With the size of the problem, we often end up with outOfMem/ GC limit.
  When analyzing memory dump, we see about
  300.000 drools left tuple object.
 
  I am not sure if we could help drools to reduce the Rete tree here.
  I mean, the allocation matrix is already : 200*700 = 140.000 cells.
  Drools only uses 2 nodes for each possible forbids, which seems already
 well
  optimized.
 
  We had several idea to improve that though, but we are not enough
  expert
 in
  the internal of the RETE algorithm to decide if that's a good way to go
  :
 
  1) Insert forbids as facts in the RHS and check they are not already
 there
  in the LHS :
  when
  $resource : Resource(someconditions)
  $operation : Operation(someconditions)
  not Forbid(res=$resource, op=$operation)
  then
   insert(Forbid($resource, $operation))
  end
 
  2) Merge all rules in one big rule with a single RHS
  Is it possible to have something like :
  when
  // Rule 1
  ($resource : Resource(someconditions)
  $operation : Operation(someconditions))
   or
  // Rule 2
  ($resource : Resource(someconditions)
  $operation : Operation(someconditions))
  // Etc ...
  then
   globalSet.add(Pairresrouce, operation)
  end
 
  3) Define a common RHS somewhere and tell Drools all rules use this
  one.
  Is there a possibility in Drools to define reusable RHS ? Would it help
  ?
 
  4) Any other idea ?
 
 
  Thanks in advance for your help.
  Brgds,
 
  Raphael Jolivet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  --
  View this message in context:
 http://drools.46999.n3.nabble.com/Needs-advice-to-help-Drools-on-a-big-problem-and-avoid-GC-overhead-tp4028838.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


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


Re: [rules-users] Needs advice to help Drools on a big problem (and avoid GC overhead)

2014-03-20 Thread Mark Proctor

On 20 Mar 2014, at 19:34, Raphael Jolivet raphael.joli...@gmail.com wrote:

 Thanks for you quick answer.
 
 Not yet,
 
 For that I will need to switch to fact insertion instead of Java Set.
 Do you think to will make a difference in the way the RETE Tree will be built 
 ?
No it’s just a “set” pre filter for insertions.

The only way to change how the network is built, is to change the rules 
themselves. You can improve node sharing, if the patterns are in the same order 
and have the same constraints.

You might find some improvements by moving to 6.0, where we have a new “lazy” 
algorithm. Which will only produce the LeftTuples on demand, for when a rule 
fires.
http://blog.athico.com/2013/11/rip-rete-time-to-get-phreaky.html

Mark
 
 
 
 
 2014-03-20 20:27 GMT+01:00 Mark Proctor mproc...@codehaus.org:
 Did you try using the engine in equality mode? It will only ever allow one 
 “equal” object to be inserted, others are just ignored.
 
 Mark
 On 20 Mar 2014, at 18:54, Raphael raphael.joli...@gmail.com wrote:
 
  Hi,
 
  In our project, we use Drools to compute forbidden allocations as input for
  an allocation problem  (for which we do not use Drools BTW).
 
  The constraint of the problem (forbidden operation for given resources) are
  expressed as drools rules.
 
  We have about
  -200 resources
  -700 operations
 
  Those are the Drools facts.
  We have about 200 Drools rules describing the forbidden allocations
 
  The problem here is that many rules produce duplicates forbids.
  For instance :
  Rule 1 may forbid Op1 on Res1  Res3
  Rule 2 may forbid Op1 on Res2  res3
 
  Currently the RHS of rules just insert forbids into a pure Java Set (no fact
  insertion).
  The Set takes care of avoiding duplicates, but still, we feel we could help
  Drools by giving him a hint that
  all rules are actually producing pairs of Resource, Allocation and that he
  should not try to produce them more than once.
 
  Currently the structure of each rule looks like that :
 
  when
  $resource : Resource(someconditions)
  $operation : Operation(someconditions)
  then
   globalSet.add(Pairresrouce, operation)
  end
 
  With the size of the problem, we often end up with outOfMem/ GC limit.
  When analyzing memory dump, we see about
  300.000 drools left tuple object.
 
  I am not sure if we could help drools to reduce the Rete tree here.
  I mean, the allocation matrix is already : 200*700 = 140.000 cells.
  Drools only uses 2 nodes for each possible forbids, which seems already well
  optimized.
 
  We had several idea to improve that though, but we are not enough expert in
  the internal of the RETE algorithm to decide if that's a good way to go :
 
  1) Insert forbids as facts in the RHS and check they are not already there
  in the LHS :
  when
  $resource : Resource(someconditions)
  $operation : Operation(someconditions)
  not Forbid(res=$resource, op=$operation)
  then
   insert(Forbid($resource, $operation))
  end
 
  2) Merge all rules in one big rule with a single RHS
  Is it possible to have something like :
  when
  // Rule 1
  ($resource : Resource(someconditions)
  $operation : Operation(someconditions))
   or
  // Rule 2
  ($resource : Resource(someconditions)
  $operation : Operation(someconditions))
  // Etc ...
  then
   globalSet.add(Pairresrouce, operation)
  end
 
  3) Define a common RHS somewhere and tell Drools all rules use this one.
  Is there a possibility in Drools to define reusable RHS ? Would it help ?
 
  4) Any other idea ?
 
 
  Thanks in advance for your help.
  Brgds,
 
  Raphael Jolivet
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
  --
  View this message in context: 
  http://drools.46999.n3.nabble.com/Needs-advice-to-help-Drools-on-a-big-problem-and-avoid-GC-overhead-tp4028838.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
 
 ___
 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] Updating project repositories

2014-03-20 Thread Joe White
So if I change the configuration in the WB UI should I expect the jar to end up 
in my remote repo? It is only ending up in my local repository.

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 1:10 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories


I've asked a colleague to comment.

We do manipulate the pom for the UI but should retain original content that is 
not modified by the Project Editor.

@Toni... What's your opinion?

Sent on the move
On 20 Mar 2014 18:03, Joe White 
joe.wh...@recondotech.commailto:joe.wh...@recondotech.com wrote:
Also, that is the same configuration that is in my settings.xml for my 
installed maven instance and the profile is active.

From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Joe White
Sent: Thursday, March 20, 2014 12:01 PM
To: Rules Users List
Subject: [rules-users] Updating project repositories

I have updated my repository configuration but when I build and deploy by 
package two things happen:

-  The jar only gets deployed to my local repo it doesn't go out to the 
remote instance

-  The pom doesn't contain the full repository configuration when 
deployed. The snapshot and releases config are dropped

Am I missing a piece of config to get the jar pushed out to my remote repo?

My repository config inside the WB:
repositories
repository
idrecondo-repo/id
namepapaafrepo001-releases/name
releases
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/releases
snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/snapshots

urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url
/repository
/repositories

Repo config inside the deployed pom:
repositories
repository
  idrecondo-repo/id
  namepapaafrepo001-releases/name
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url
/repository
  /repositories


Joe White
CIO Technology Enabled Services
303-974-2849tel:303-974-2849 (Office)
720-232-9023tel:720-232-9023 (Cell)


___
rules-users mailing list
rules-users@lists.jboss.orgmailto: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] Updating project repositories

2014-03-20 Thread Michael Anstis
That depends how you're configuring your project's distribution management.

Adding (I assume) your remote to the repositories section is only telling
maven a remote to query to *download* artifacts.

Sent on the move
On 20 Mar 2014 20:41, Joe White joe.wh...@recondotech.com wrote:

  So if I change the configuration in the WB UI should I expect the jar to
 end up in my remote repo? It is only ending up in my local repository.



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* Thursday, March 20, 2014 1:10 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Updating project repositories



 I've asked a colleague to comment.

 We do manipulate the pom for the UI but should retain original content
 that is not modified by the Project Editor.

 @Toni... What's your opinion?

 Sent on the move

 On 20 Mar 2014 18:03, Joe White joe.wh...@recondotech.com wrote:

  Also, that is the same configuration that is in my settings.xml for my
 installed maven instance and the profile is active.



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Joe White
 *Sent:* Thursday, March 20, 2014 12:01 PM
 *To:* Rules Users List
 *Subject:* [rules-users] Updating project repositories



 I have updated my repository configuration but when I build and deploy by
 package two things happen:

 -  The jar only gets deployed to my local repo it doesn't go out
 to the remote instance

 -  The pom doesn't contain the full repository configuration when
 deployed. The snapshot and releases config are dropped



 Am I missing a piece of config to get the jar pushed out to my remote repo?



 *My repository config inside the WB:*

 repositories

 repository

 idrecondo-repo/id

 namepapaafrepo001-releases/name

 releases

 enabledtrue/enabled

 updatePolicyalways/updatePolicy

 checksumPolicyfail/checksumPolicy

 /releases

 snapshots

 enabledtrue/enabled

 updatePolicyalways/updatePolicy

 checksumPolicyfail/checksumPolicy

 /snapshots

 url
 http://papaafrepo001.recondo.vci:8081/artifactory/repo/url

 /repository

 /repositories



 *Repo config inside the deployed pom:*

 repositories

 repository

   idrecondo-repo/id

   namepapaafrepo001-releases/name

   urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/url

 /repository

   /repositories





 Joe White

 CIO Technology Enabled Services

 303-974-2849 (Office)

 720-232-9023 (Cell)




 ___
 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] Needs advice to help Drools on a big problem (and avoid GC overhead)

2014-03-20 Thread Raphael Jolivet
Hmm, sure it makes sense. The operations and resources are independent. I
think I can safely split the problem into smaller ones. I will try this
approach.

Thanks for the tip
Le 20 mars 2014 20:51, Wolfgang Laun wolfgang.l...@gmail.com a écrit :

 I may fail to understand the fundamentals of this problem, but it seems
 to me that it doesn't have the dynamic requirements that would
 warrant a full blow up of all Resources and Operations at the same time.

 We have the 300 rules, and I'm assuming that the pattern is the one
 shown in OP's mail: a Resource subset times an Operation subset. So,
 if you insert just one Resource (or Operation) fact together with
 all Operation (or Resource) facts and fire all rules, you'll get all
 Forbids
 for the one Resource with all Operations (or vice versa). Then, you
 retract the singleton and insert the next one, fire all rules, and so on.

 -W


 On 20/03/2014, Raphael Jolivet raphael.joli...@gmail.com wrote:
  Thanks for you quick answer.
 
  Not yet,
 
  For that I will need to switch to fact insertion instead of Java Set.
  Do you think to will make a difference in the way the RETE Tree will be
  built ?
 
 
 
 
  2014-03-20 20:27 GMT+01:00 Mark Proctor mproc...@codehaus.org:
 
  Did you try using the engine in equality mode? It will only ever allow
  one
  equal object to be inserted, others are just ignored.
 
  Mark
  On 20 Mar 2014, at 18:54, Raphael raphael.joli...@gmail.com wrote:
 
   Hi,
  
   In our project, we use Drools to compute forbidden allocations as
 input
  for
   an allocation problem  (for which we do not use Drools BTW).
  
   The constraint of the problem (forbidden operation for given
 resources)
  are
   expressed as drools rules.
  
   We have about
   -200 resources
   -700 operations
  
   Those are the Drools facts.
   We have about 200 Drools rules describing the forbidden allocations
  
   The problem here is that many rules produce duplicates forbids.
   For instance :
   Rule 1 may forbid Op1 on Res1  Res3
   Rule 2 may forbid Op1 on Res2  res3
  
   Currently the RHS of rules just insert forbids into a pure Java Set
 (no
  fact
   insertion).
   The Set takes care of avoiding duplicates, but still, we feel we could
  help
   Drools by giving him a hint that
   all rules are actually producing pairs of Resource, Allocation and
  that he
   should not try to produce them more than once.
  
   Currently the structure of each rule looks like that :
  
   when
   $resource : Resource(someconditions)
   $operation : Operation(someconditions)
   then
globalSet.add(Pairresrouce, operation)
   end
  
   With the size of the problem, we often end up with outOfMem/ GC limit.
   When analyzing memory dump, we see about
   300.000 drools left tuple object.
  
   I am not sure if we could help drools to reduce the Rete tree here.
   I mean, the allocation matrix is already : 200*700 = 140.000 cells.
   Drools only uses 2 nodes for each possible forbids, which seems
 already
  well
   optimized.
  
   We had several idea to improve that though, but we are not enough
   expert
  in
   the internal of the RETE algorithm to decide if that's a good way to
 go
   :
  
   1) Insert forbids as facts in the RHS and check they are not already
  there
   in the LHS :
   when
   $resource : Resource(someconditions)
   $operation : Operation(someconditions)
   not Forbid(res=$resource, op=$operation)
   then
insert(Forbid($resource, $operation))
   end
  
   2) Merge all rules in one big rule with a single RHS
   Is it possible to have something like :
   when
   // Rule 1
   ($resource : Resource(someconditions)
   $operation : Operation(someconditions))
or
   // Rule 2
   ($resource : Resource(someconditions)
   $operation : Operation(someconditions))
   // Etc ...
   then
globalSet.add(Pairresrouce, operation)
   end
  
   3) Define a common RHS somewhere and tell Drools all rules use this
   one.
   Is there a possibility in Drools to define reusable RHS ? Would it
 help
   ?
  
   4) Any other idea ?
  
  
   Thanks in advance for your help.
   Brgds,
  
   Raphael Jolivet
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
   --
   View this message in context:
 
 http://drools.46999.n3.nabble.com/Needs-advice-to-help-Drools-on-a-big-problem-and-avoid-GC-overhead-tp4028838.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
 
 
 ___
 rules-users mailing list
 rules-users@lists.jboss.org
 https://lists.jboss.org/mailman/listinfo/rules-users

___
rules-users mailing list

Re: [rules-users] Updating project repositories

2014-03-20 Thread Joe White
I've got distribution management that matches my settings xml added to the pom 
but it doesn't seem to connect (or to attempt to connect)

distributionManagement
repository
  idrecondo-repo/id
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-release/url
/repository
snapshotRepository
  idrecondo-repo/id
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot/url
/snapshotRepository
  /distributionManagement



From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 2:56 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories


That depends how you're configuring your project's distribution management.

Adding (I assume) your remote to the repositories section is only telling maven 
a remote to query to *download* artifacts.

Sent on the move
On 20 Mar 2014 20:41, Joe White 
joe.wh...@recondotech.commailto:joe.wh...@recondotech.com wrote:
So if I change the configuration in the WB UI should I expect the jar to end up 
in my remote repo? It is only ending up in my local repository.

From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 1:10 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories


I've asked a colleague to comment.

We do manipulate the pom for the UI but should retain original content that is 
not modified by the Project Editor.

@Toni... What's your opinion?

Sent on the move
On 20 Mar 2014 18:03, Joe White 
joe.wh...@recondotech.commailto:joe.wh...@recondotech.com wrote:
Also, that is the same configuration that is in my settings.xml for my 
installed maven instance and the profile is active.

From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Joe White
Sent: Thursday, March 20, 2014 12:01 PM
To: Rules Users List
Subject: [rules-users] Updating project repositories

I have updated my repository configuration but when I build and deploy by 
package two things happen:

-  The jar only gets deployed to my local repo it doesn't go out to the 
remote instance

-  The pom doesn't contain the full repository configuration when 
deployed. The snapshot and releases config are dropped

Am I missing a piece of config to get the jar pushed out to my remote repo?

My repository config inside the WB:
repositories
repository
idrecondo-repo/id
namepapaafrepo001-releases/name
releases
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/releases
snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/snapshots

urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url
/repository
/repositories

Repo config inside the deployed pom:
repositories
repository
  idrecondo-repo/id
  namepapaafrepo001-releases/name
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url
/repository
  /repositories


Joe White
CIO Technology Enabled Services
303-974-2849tel:303-974-2849 (Office)
720-232-9023tel:720-232-9023 (Cell)


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

___
rules-users mailing list
rules-users@lists.jboss.orgmailto: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] Rules updating error

2014-03-20 Thread Ioannis Christodoulou
I can't really make a unit test, but I can provide example drl:
Assuming that the rule project contains a guided decision table and a drl
file:
Guided Decision Table producing drl:
rule guided rule
when
then
  myFunctionCall(myGlobalList);
end

The drl file:
import java.util.List;
global java.util.List myGlobalList;

function void myFunctionCall(List aList) {
  System.out.println(List contains:+list);
}

the rules are initiated by calling:
KieSession ksession = 
List globalList = new ArrayList();
ksession.setGlobal(myGlobalList, globalList);

On Thu, Mar 20, 2014 at 9:23 PM, Michael Anstis michael.ans...@gmail.comwrote:

 Ok.

 You are correct (1) is a known issue that I am working on at the moment.

 Can you give illustrative DRL for the original rule and updated rule that
 causes problems for (2). It would help understand what could be the cause
 (or submit a pull request containing a unit test).

 Sent on the move
 On 20 Mar 2014 19:20, Ioannis Christodoulou io.chris...@gmail.com
 wrote:

 Well, only the second actually, since my understanding (from a previous
 question I sent) is that the first is a known thing (issue?).
 KieScanner loads the rules project without any issues the first time
 (upon application startup) but shows a validation error if the rules
 project is updated (minor update, definitely not causing a validation
 error),
 reporting that it cannot Analyze the expressions involving the global
 variable and the function.

 Ευχαριστώ πολύ,
Ιωάννης Χριστοδούλου


 On Thu, Mar 20, 2014 at 9:02 PM, Michael Anstis michael.ans...@gmail.com
  wrote:

 From what I can gather from your email there are two problems. Please
 confirm and then we can comment further:

 (1) Validation of a guided decision table, that uses a global, reports a
 validation error.

 (2) Changes to the decision table's use of a global is not being
 detected bt KieScanner.

 Sent on the move
 On 20 Mar 2014 11:28, Ioannis Christodoulou io.chris...@gmail.com
 wrote:

 In my java ee application, I use drools 6.1.0.Beta1, deployed on jboss
 eap 6.2 (I have also deployed Kie Workbench 6.0.1.Final).

 In order to get the latest updates on my rules (made on kie wb) I tried
 to set kiescanner to LATEST. This seems to not be working always (I'm not
 100% sure about the reason, it seems to happen when I have not re-deployed
 the jar with the model classes I use in my rules, or I have not clicked on
 builddeploy of the rules project), so I have reverted to using 1.0 as
 the version and not changing the version when I update the rules project.

 There is an issue with the application not validating, because I have a
 guided decision table which uses a global variable and a function, but that
 seems to not be an error after all (everything seems to build as it 
 should).

 However, while my application is running (and watching for updates
 through scanner), if I make an update and deploy the rules project again,
 the application retrieves the update and fails with a validation error
 about not being able to analyse the expressions regarding the global
 function and the global variable.

 Any suggestions?

 Thank you very much.


 ___
 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


 ___
 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] Rules updating error

2014-03-20 Thread Michael Anstis
Are those the initial definitions?

What changes to cause KieScanner to report errors?

Sent on the move
On 20 Mar 2014 21:34, Ioannis Christodoulou io.chris...@gmail.com wrote:

 I can't really make a unit test, but I can provide example drl:
 Assuming that the rule project contains a guided decision table and a drl
 file:
 Guided Decision Table producing drl:
 rule guided rule
 when
 then
   myFunctionCall(myGlobalList);
 end

 The drl file:
 import java.util.List;
 global java.util.List myGlobalList;

 function void myFunctionCall(List aList) {
   System.out.println(List contains:+list);
 }

 the rules are initiated by calling:
 KieSession ksession = 
 List globalList = new ArrayList();
 ksession.setGlobal(myGlobalList, globalList);

 On Thu, Mar 20, 2014 at 9:23 PM, Michael Anstis 
 michael.ans...@gmail.comwrote:

 Ok.

 You are correct (1) is a known issue that I am working on at the moment.

 Can you give illustrative DRL for the original rule and updated rule that
 causes problems for (2). It would help understand what could be the cause
 (or submit a pull request containing a unit test).

 Sent on the move
 On 20 Mar 2014 19:20, Ioannis Christodoulou io.chris...@gmail.com
 wrote:

 Well, only the second actually, since my understanding (from a previous
 question I sent) is that the first is a known thing (issue?).
 KieScanner loads the rules project without any issues the first time
 (upon application startup) but shows a validation error if the rules
 project is updated (minor update, definitely not causing a validation
 error),
 reporting that it cannot Analyze the expressions involving the global
 variable and the function.

 Ευχαριστώ πολύ,
Ιωάννης Χριστοδούλου


 On Thu, Mar 20, 2014 at 9:02 PM, Michael Anstis 
 michael.ans...@gmail.com wrote:

 From what I can gather from your email there are two problems. Please
 confirm and then we can comment further:

 (1) Validation of a guided decision table, that uses a global, reports
 a validation error.

 (2) Changes to the decision table's use of a global is not being
 detected bt KieScanner.

 Sent on the move
 On 20 Mar 2014 11:28, Ioannis Christodoulou io.chris...@gmail.com
 wrote:

 In my java ee application, I use drools 6.1.0.Beta1, deployed on jboss
 eap 6.2 (I have also deployed Kie Workbench 6.0.1.Final).

 In order to get the latest updates on my rules (made on kie wb) I
 tried to set kiescanner to LATEST. This seems to not be working always
 (I'm not 100% sure about the reason, it seems to happen when I have not
 re-deployed the jar with the model classes I use in my rules, or I have 
 not
 clicked on builddeploy of the rules project), so I have reverted to using
 1.0 as the version and not changing the version when I update the rules
 project.

 There is an issue with the application not validating, because I have
 a guided decision table which uses a global variable and a function, but
 that seems to not be an error after all (everything seems to build as it
 should).

 However, while my application is running (and watching for updates
 through scanner), if I make an update and deploy the rules project again,
 the application retrieves the update and fails with a validation error
 about not being able to analyse the expressions regarding the global
 function and the global variable.

 Any suggestions?

 Thank you very much.


 ___
 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


 ___
 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] Updating project repositories

2014-03-20 Thread Joe White
In fact, if I manually go into the guvnor repository, copy the pom.xml directly 
from the workbench, and command line run mvn deploy the jar gets pushed out 
to my remote repository. So I know for sure the pom is configured correctly in 
the workbench

Is the workbench actually calling deploy or just install ? Where in the 
code would be a good starting point to dig a little deeper on this?

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Joe White
Sent: Thursday, March 20, 2014 3:15 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories

I've got distribution management that matches my settings xml added to the pom 
but it doesn't seem to connect (or to attempt to connect)

distributionManagement
repository
  idrecondo-repo/id
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-release/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-release%3c/url
/repository
snapshotRepository
  idrecondo-repo/id
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot%3c/url
/snapshotRepository
  /distributionManagement



From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 2:56 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories


That depends how you're configuring your project's distribution management.

Adding (I assume) your remote to the repositories section is only telling maven 
a remote to query to *download* artifacts.

Sent on the move
On 20 Mar 2014 20:41, Joe White 
joe.wh...@recondotech.commailto:joe.wh...@recondotech.com wrote:
So if I change the configuration in the WB UI should I expect the jar to end up 
in my remote repo? It is only ending up in my local repository.

From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 1:10 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories


I've asked a colleague to comment.

We do manipulate the pom for the UI but should retain original content that is 
not modified by the Project Editor.

@Toni... What's your opinion?

Sent on the move
On 20 Mar 2014 18:03, Joe White 
joe.wh...@recondotech.commailto:joe.wh...@recondotech.com wrote:
Also, that is the same configuration that is in my settings.xml for my 
installed maven instance and the profile is active.

From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Joe White
Sent: Thursday, March 20, 2014 12:01 PM
To: Rules Users List
Subject: [rules-users] Updating project repositories

I have updated my repository configuration but when I build and deploy by 
package two things happen:

-  The jar only gets deployed to my local repo it doesn't go out to the 
remote instance

-  The pom doesn't contain the full repository configuration when 
deployed. The snapshot and releases config are dropped

Am I missing a piece of config to get the jar pushed out to my remote repo?

My repository config inside the WB:
repositories
repository
idrecondo-repo/id
namepapaafrepo001-releases/name
releases
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/releases
snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/snapshots

urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url
/repository
/repositories

Repo config inside the deployed pom:
repositories
repository
  idrecondo-repo/id
  namepapaafrepo001-releases/name
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url
/repository
  /repositories


Joe White
CIO Technology Enabled Services
303-974-2849tel:303-974-2849 (Office)
720-232-9023tel:720-232-9023 (Cell)


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

___
rules-users mailing list
rules-users@lists.jboss.orgmailto:rules-users@lists.jboss.org

Re: [rules-users] Updating project repositories

2014-03-20 Thread Michael Anstis
The workbench attempts an install and deploy. GuvnorM2Repository in the
guvnor project is the class (IIRC).

Sent on the move
On 20 Mar 2014 21:47, Joe White joe.wh...@recondotech.com wrote:

  In fact, if I manually go into the guvnor repository, copy the pom.xml
 directly from the workbench, and command line run mvn deploy the jar gets
 pushed out to my remote repository. So I know for sure the pom is
 configured correctly in the workbench



 Is the workbench actually calling deploy or just install ? Where in
 the code would be a good starting point to dig a little deeper on this?



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Joe White
 *Sent:* Thursday, March 20, 2014 3:15 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Updating project repositories



 I've got distribution management that matches my settings xml added to the
 pom but it doesn't seem to connect (or to attempt to connect)



 distributionManagement

 repository

   idrecondo-repo/id

   url
 http://papaafrepo001.recondo.vci:8081/artifactory/recondo-release/url

 /repository

 snapshotRepository

   idrecondo-repo/id

   url
 http://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot/url

 /snapshotRepository

   /distributionManagement







 *From:* rules-users-boun...@lists.jboss.org [
 mailto:rules-users-boun...@lists.jboss.orgrules-users-boun...@lists.jboss.org]
 *On Behalf Of *Michael Anstis
 *Sent:* Thursday, March 20, 2014 2:56 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Updating project repositories



 That depends how you're configuring your project's distribution management.

 Adding (I assume) your remote to the repositories section is only telling
 maven a remote to query to *download* artifacts.

 Sent on the move

 On 20 Mar 2014 20:41, Joe White joe.wh...@recondotech.com wrote:

  So if I change the configuration in the WB UI should I expect the jar to
 end up in my remote repo? It is only ending up in my local repository.



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* Thursday, March 20, 2014 1:10 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Updating project repositories



 I've asked a colleague to comment.

 We do manipulate the pom for the UI but should retain original content
 that is not modified by the Project Editor.

 @Toni... What's your opinion?

 Sent on the move

 On 20 Mar 2014 18:03, Joe White joe.wh...@recondotech.com wrote:

  Also, that is the same configuration that is in my settings.xml for my
 installed maven instance and the profile is active.



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Joe White
 *Sent:* Thursday, March 20, 2014 12:01 PM
 *To:* Rules Users List
 *Subject:* [rules-users] Updating project repositories



 I have updated my repository configuration but when I build and deploy by
 package two things happen:

 -  The jar only gets deployed to my local repo it doesn't go out
 to the remote instance

 -  The pom doesn't contain the full repository configuration when
 deployed. The snapshot and releases config are dropped



 Am I missing a piece of config to get the jar pushed out to my remote repo?



 *My repository config inside the WB:*

 repositories

 repository

 idrecondo-repo/id

 namepapaafrepo001-releases/name

 releases

 enabledtrue/enabled

 updatePolicyalways/updatePolicy

 checksumPolicyfail/checksumPolicy

 /releases

 snapshots

 enabledtrue/enabled

 updatePolicyalways/updatePolicy

 checksumPolicyfail/checksumPolicy

 /snapshots

 url
 http://papaafrepo001.recondo.vci:8081/artifactory/repo/url

 /repository

 /repositories



 *Repo config inside the deployed pom:*

 repositories

 repository

   idrecondo-repo/id

   namepapaafrepo001-releases/name

   urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/url

 /repository

   /repositories





 Joe White

 CIO Technology Enabled Services

 303-974-2849 (Office)

 720-232-9023 (Cell)




 ___
 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] Updating project repositories

2014-03-20 Thread Joe White
Thanks Mike. I'll take a look.

From: rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 4:03 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories


The workbench attempts an install and deploy. GuvnorM2Repository in the guvnor 
project is the class (IIRC).

Sent on the move
On 20 Mar 2014 21:47, Joe White 
joe.wh...@recondotech.commailto:joe.wh...@recondotech.com wrote:
In fact, if I manually go into the guvnor repository, copy the pom.xml directly 
from the workbench, and command line run mvn deploy the jar gets pushed out 
to my remote repository. So I know for sure the pom is configured correctly in 
the workbench

Is the workbench actually calling deploy or just install ? Where in the 
code would be a good starting point to dig a little deeper on this?

From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Joe White
Sent: Thursday, March 20, 2014 3:15 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories

I've got distribution management that matches my settings xml added to the pom 
but it doesn't seem to connect (or to attempt to connect)

distributionManagement
repository
  idrecondo-repo/id
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-release/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-release%3c/url
/repository
snapshotRepository
  idrecondo-repo/id
  
urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/recondo-snapshot%3c/url
/snapshotRepository
  /distributionManagement



From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.org] On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 2:56 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories


That depends how you're configuring your project's distribution management.

Adding (I assume) your remote to the repositories section is only telling maven 
a remote to query to *download* artifacts.

Sent on the move
On 20 Mar 2014 20:41, Joe White 
joe.wh...@recondotech.commailto:joe.wh...@recondotech.com wrote:
So if I change the configuration in the WB UI should I expect the jar to end up 
in my remote repo? It is only ending up in my local repository.

From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Michael Anstis
Sent: Thursday, March 20, 2014 1:10 PM
To: Rules Users List
Subject: Re: [rules-users] Updating project repositories


I've asked a colleague to comment.

We do manipulate the pom for the UI but should retain original content that is 
not modified by the Project Editor.

@Toni... What's your opinion?

Sent on the move
On 20 Mar 2014 18:03, Joe White 
joe.wh...@recondotech.commailto:joe.wh...@recondotech.com wrote:
Also, that is the same configuration that is in my settings.xml for my 
installed maven instance and the profile is active.

From: 
rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org 
[mailto:rules-users-boun...@lists.jboss.orgmailto:rules-users-boun...@lists.jboss.org]
 On Behalf Of Joe White
Sent: Thursday, March 20, 2014 12:01 PM
To: Rules Users List
Subject: [rules-users] Updating project repositories

I have updated my repository configuration but when I build and deploy by 
package two things happen:

-  The jar only gets deployed to my local repo it doesn't go out to the 
remote instance

-  The pom doesn't contain the full repository configuration when 
deployed. The snapshot and releases config are dropped

Am I missing a piece of config to get the jar pushed out to my remote repo?

My repository config inside the WB:
repositories
repository
idrecondo-repo/id
namepapaafrepo001-releases/name
releases
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/releases
snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
/snapshots

urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo/urlhttp://papaafrepo001.recondo.vci:8081/artifactory/repo%3c/url
/repository
/repositories

Repo config inside the deployed pom:
repositories
repository
  idrecondo-repo/id
  namepapaafrepo001-releases/name
  

[rules-users] Module in Nexus Never Found

2014-03-20 Thread david.berkman
Creating a KieContainer with a ReleaseId to load a jar from a Nexus repo. The
ReleaseId has '-SNAPSHOT' coordinates. I know the jar exists in the repo,
that it can be accessed, and that it contains the appropriate .drl files,
because when I run my project from the command line, using the Maven exec
plugin...

mvn exec:java

...everything is fine, the jar is found and pulled, the artifacts appear in
the local .m2 repo, the rules get loaded, and I'm able to create and use a
KieSession. I can test the rules, and they work. All is well.

If I run my project in any other way, with the 'java ' command whilst
setting the classpath properly, using the Tanukisoft wrapper, etc. every bit
of code runs properly, all necessary jar files are available on the
classpath, but the KieScanner tells me it can't find the jar...

Caused by: java.lang.RuntimeException: Cannot find KieModule:
com.mycompany:mymodule:1.0-SNAPSHOT
at
org.drools.compiler.kie.builder.impl.KieServicesImpl.newKieContainer(KieServicesImpl.java:86)

My home directory seems like it's set correctly and  is available from
properties as 'user.home', I can see a resolver-status.properties file
created at the proper place in the user's .m2/repository, so something knows
where the repo is, and has access to it. The resolver-status.properties
contains only...

#NOTE: This is an internal implementation file, its format can be changed
without prior notice.
#Fri Mar 21 02:31:03 UTC 2014
maven-metadata-local.xml.lastUpdated=1395369063564
maven-metadata-central.xml.lastUpdated=1395369063955
maven-metadata-central.xml.error=
maven-metadata-local.xml.error=

No luck, unless I use mvn exec:java, and then everything is fine. However,
our normal distribution methodology is not going to allow me to via Maven
this way.

Anyone happen to know what I'm missing so this will work executing the
'java' command? Some jar maven loads during exec that I'm not including as a
dependency? Anything?

All help appreciated,
David



--
View this message in context: 
http://drools.46999.n3.nabble.com/Module-in-Nexus-Never-Found-tp4028861.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