Re: [rules-users] KieScanner cannot fetch LATEST Jars from custom Maven repository - Maven - 3.6.3

2020-02-18 Thread Michael Anstis
Are you building the project in the Workbench after your rule changes?

On Tue, 18 Feb 2020, 08:26 suriya devan,  wrote:

>
> Hello All,
>
> I am using a drool version 7.x. I am able to get KieScanner to work on my
> local maven repository using "LATEST". But everytime I update the rules on
> workbench, I have to manually run mvn install in order to update my local
> repository so that KieScanner can pickup the changes. Is that how it is? Or
> is it possible to force a download every time the scanner runs?
>
> I need to fetch the latest jars from my custom repo.
>
> My configuration
>
>
>  KieServices ks = KieServices.Factory.get();
> ReleaseId releaseId = ks.newReleaseId( "com.test", "poc", "LATEST" );
>
> KieContainer kContainer = ks.newKieContainer(releaseId);
> KieScanner kieScanner = ks.newKieScanner(kContainer);
>
> kieScanner.start( 1L );
>
> Scanner scanner = new Scanner(System.in);
>
> while (true) {
> kieScanner.scanNow();
> String line = scanner.nextLine();
> runRule(kContainer);
> }}
>
>
>
> I have configured my custom repo in maven confg settings file. . But no luck
>
>
> 
> development
> 
> true
> 
> 
> 
> customRepo
> https://
>
> customRepo
>
> 
> 
> false
>   always
> 
> 
> true
> always
> 
> 
> 
> 
> 
>
>
>  
>development
>  
>
> Any one please advise to resolve the issue?
>
> ___
> 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] Private message regarding: [drools-usage] Update data model in Drools Workbench

2017-04-26 Thread Michael Anstis
I don't know KIE Server very well. What is this "InstallRequest" of which
you speak!?

I assume KIE Server's artifact resolution mechanism is vanilla Maven, in
which case whether you want to install or deploy depends on whether KIE
Server is running on the same host as your local Maven repository.

If it is; then install should be sufficient; as Maven (used by KIE Server)
will first try to resolve artifacts against the local repository. If not;
then Maven will fail to resolve locally and try the configured remotes.

I don't know the life-cycle of KIE Server's "container" so an answer for
that needs to come from my colleagues.

Please use drools-usage mailing list.

On 26 April 2017 at 07:31, wang Sherry <wang@gmail.com> wrote:

> Michael,
>
> Thanks for the reply. The jar file is already been installed into m2
> repository on KIE server.  Here is the folder structure of m2 repository
> after each install.   I am using InstallRequest API to install the jar
> and pom artifact.  Do I need to Deploy as well? I disposed the container
> and recreated it again... No new rules were applied...
>
> [image: Inline images 1]
>
> On 26 April 2017 at 08:36, Michael Anstis <michael.ans...@gmail.com>
> wrote:
>
>> Seems like you're using KIE Server? Is it KIE Server that is not "seeing"
>> the revised  Snapshots? What is the maven refresh policy for snapshots on
>> the server running KIE Server? It'll only detect updates once a day by
>> default.
>> On 25 Apr 2017 21:31, "wang Sherry" <wang@gmail.com> wrote:
>>
>>> Hi, Michael,
>>>
>>> I followed your  solution to auto generate kjar. I added the dependency
>>> and  install the jar using Install to KIE's maven repository.  Each time
>>> new timestamp is added to pom.xml of the kjar. After install, the container
>>> is disposed and recreated as well. But it will only take effect after a
>>> restart.  I am using latest JBPM 7 Beta8
>>>
>>> https://groups.google.com/forum/?utm_medium=email_source
>>> =footer#!msg/drools-usage/0MwV2n3juYo/41Mk7NumJwAJ
>>>
>>>
>>> Thanks
>>> Sherry
>>>
>>>
>>> On 24 April 2017 at 21:32, Michael Anstis <michael.ans...@gmail.com>
>>> wrote:
>>>
>>>> Nope, sorry. The cache is "internal" and not for public (API) usage.
>>>>
>>>> What problem do you have? What application server are you using?
>>>>
>>>> On 24 April 2017 at 01:03, wang Sherry <wang@gmail.com> wrote:
>>>>
>>>>> Hi, Michael ,
>>>>>
>>>>> Is there any API that could be used to refresh the cache?  I changed
>>>>> description in pom.xml each time when generating the JAR and then install
>>>>> it to m2 repository of KIE. It never refresh the cache
>>>>>
>>>>> On Monday, 9 May 2016 21:14:53 UTC+12, Michael Anstis wrote:
>>>>>>
>>>>>> There is a cache of class meta-data extracted from the Project's
>>>>>> classes and Project's dependencies.
>>>>>>
>>>>>> The cache is cleared whenever a change to the pom.xml, kmodule.xml or
>>>>>> Project .java file is detected.
>>>>>>
>>>>>> Since you are only uploading a new JAR the Workbench is not detecting
>>>>>> any changes and the cache is not cleared.
>>>>>>
>>>>>> Try editing the pom.xml after uploading your new JAR (e.g. just
>>>>>> change the Project Description and save).
>>>>>>
>>>>>> On 9 May 2016 at 10:09, Marius Lazar <marius...@gmail.com> wrote:
>>>>>>
>>>>>>> I have uploaded a jar containing my data model to workbench through
>>>>>>> "Artifact repository" and set the version to "1.0-SNAPSHOT". Then I 
>>>>>>> added
>>>>>>> the jar as a dependency to my project and I have built some rules with 
>>>>>>> it (
>>>>>>> no need to add the jar to "Config" because the class inside jar is in 
>>>>>>> the
>>>>>>> same package ).
>>>>>>>
>>>>>>> Now I want to update the data model. After I generate a new jar with
>>>>>>> the new data model (added a new property) and upload it again through
>>>>>>> "Artifact repository", I want to see the new field when I try to update 
>>>

Re: [rules-users] Regarding Programmatically Adding Rules to Workbench

2017-03-18 Thread Michael Anstis
We promote use of jgit or similar Git libraries to manipulate the
underlying repositories rather than providing a REST API to manipulate
assets.

That said you don't need to worry unduly about manipulating assets with a
low level Git library; you can clone workbench repositories, manipulate
assets at the file system level - e.g. add, edit or delete files and
folders - git add, git commit and git push and the changes will appear in
the Workbench.

You'll need to go to the Administration Perspective, get the ssh url for
the repository you want to manipulate.
On 18 Mar 2017 05:18, "Shazin Sadakath"  wrote:

> Hi,
>
> I am working a on a Drools based Promotion Engine where from an External
> Application I need to create the rules and load it to Drools Workbench
> Programmatically preferably using REST API. Is there a similar
> functionality implemented in Drools Workbench or does it need custom
> development?
>
> Thanks in advance.
>
> Regards,
> Shazin
>
> ___
> 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] Need help in drool workbench

2016-12-20 Thread Michael Anstis
Can you explain how one region manages to break an others rules!?


On 20 December 2016 at 13:09, RANJAN Nalini 
wrote:

> Hi Team,
>
>
>
> Hope you are doing good..
>
>
>
> We are new in drool workbench and we are planning to use drools workbench
> for our upcoming project..
>
>
>
> This development we are going to do across different region..
>
>
>
> Currently we have common drools workbench which hosted in one PC…Major
> issue which we are facing is that whenever we do modification from one
> region and its break to other region development..
>
>
>
> Is there any way to do our development without impacting to other region
> code ?.
>
>
>
> Do we have any mechanism to disable rule which has been written by one
> developer and it can be enable only when flag will be true(like toggle
> features) ?
>
>
>
>
>
> *Regards,*
>
> *Nalini Ranjan*
>
>
>
> =
>
> Ce message et toutes les pieces jointes (ci-apres le "message")
> sont confidentiels et susceptibles de contenir des informations
> couvertes par le secret professionnel. Ce message est etabli
> a l'intention exclusive de ses destinataires. Toute utilisation
> ou diffusion non autorisee interdite.
> Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE
> et ses filiales declinent toute responsabilite au titre de ce message
> s'il a ete altere, deforme falsifie.
>
> =
>
> This message and any attachments (the "message") are confidential,
> intended solely for the addresses, and may contain legally privileged
> information. Any unauthorized use or dissemination is prohibited.
> E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any
> of its subsidiaries or affiliates shall be liable for the message
> if altered, changed or falsified.
>
> =
>
> ___
> 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] Drools 6 BRMS workflow

2014-09-01 Thread Michael Anstis
If your JAR imported without error (see the server log) and you've added
them as an import in the corresponding editor (Config tab) then they
should be available for authoring.

If your JAR classes are in the same package as the rules in the workbench
you can skip importing them.

If this is not working please raise a GUVNOR JIRA providing the exact steps
and JARs to replicate.


On 1 September 2014 11:30, djb dbrownel...@hotmail.com wrote:

 Hey all,

 I'm having trouble with the BRMS/workbench.  Making an existing project
 accessible via the guided rule editor is more difficult than I imagined.  I
 am getting nowhere.

 Currently my rules are all in DRL files in my domain model, and my project
 structure is:

 EAR / WEB-APP / DOMAIN MODEL / ENTITY SERVICE / ENTITY FACADE / ENTITY
 MODEL

 So I need the classes in the domain model, entity facade and entity model
 available to the BRMS.  They are available from SVN, or Maven, or as jars.

 So I import these jars as Artifacts... and add them as dependencies using
 'Add from Repository'

 now I want to use the BRMS to allow users to edit rules.

 How do I go about doing this?  I presume I need to set it up in the data
 modeller, but my classes and packages don't show up in the drop down... ?




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Drools-6-BRMS-workflow-tp4030735.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] BRMS 6 -Problem in web Guided editor Drop down selection

2014-08-27 Thread Michael Anstis
Click on the pencil icon and choose the value type (literal, formula etc).

The red error indicator should then disappear.


On 25 August 2014 20:14, rsureshbe rsures...@gmail.com wrote:

 We have bought BRMS 6 from JBOSS recently. Currently configuring an BRMS
 rules setup in DEV and INT, encountering an issue with web guided editor,
 we
 need your help in resolving the error. Issue is

 1) I have data model jar  contains Class A along with get/setter, created
 new web guided rule and when i try to configure rule conditions that
 currentVolume is greater than volume in BRL fragment popup(overlay) screen,
 in that Edit button not opening, showing some constraint error. Attached
 the
 screen-print.

 Class A
 private BigDecimal volume;

 private BigDecimal currentVolmue;

 private BigDecimal totalVolume;

 http://drools.46999.n3.nabble.com/file/n4030716/WebGuide_error.jpg



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/BRMS-6-Problem-in-web-Guided-editor-Drop-down-selection-tp4030714p4030716.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] Drools : Load Rules from workbench, update from application and deploy it again programmatically

2014-08-14 Thread Michael Anstis
You should read up on KieScanner.

This can be configured to poll the Maven repository behind the workbench;
so that whenever you Build  Deploy the project KieScanner will download
the latest KJAR.

See http://blog.athico.com/2013/12/deployment-with-drools-60.html to begin
with.


On 12 August 2014 11:13, ketan.jariwala jariwalake...@ymail.com wrote:

 Hello everyone,
 I am having drools workbench running on tomcat server. And my java
 application is also getting all the rules deployed on drools workbench.
Now i want to modify/create the rules from my application dynamically
 and
 want to deploy it again to workbench so that my application and workbench
 can synchronize all the time.

 *Note: * Currently, I am working with drools 6.0.1.






 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Drools-Load-Rules-from-workbench-update-from-application-and-deploy-it-again-programmatically-tp4030635.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] Annotation @PropertyReactive not works

2014-08-11 Thread Michael Anstis
The problem does not appear to be within Guvnor as such; that just uses the
underlying Drools engine.

Can you provide a standalone unit test demonstrating the issue?


On 11 August 2014 13:53, David Moros Claramunt davidmo...@gmail.com wrote:

 thanks, it works

 I have put the sufix .drl at package URL and works

 But now, i have the same problem executing the scenarios test from Guvnor,
 do you know if issue is in 5.6.0.Final version and patched in later
 versions?

 Thnaks,


 2014-08-08 15:26 GMT+02:00 Davide Sottara dso...@gmail.com:

 If I remember correctly this is a known issue. Unfortunately drools 5.6
 is final and can't be patched. Downloading the source drl rather than the
 compiled pkg could be a workaround.

 Please let me know if it works

 Sent via the ASUS PadFone X, an ATT 4G LTE smartphone


  Original Message 
 From:davidmoros davidmo...@gmail.com
 Sent:Fri, 08 Aug 2014 05:03:29 -0500
 To:rules-users@lists.jboss.org
 Subject:[rules-users] Annotation @PropertyReactive not works

 I'm developing a system rules with drools, how any novice I found the
 problem
 of infinite loops, in unitary test I resolved with annotation
 @PropertyReactive and all works fine, until I uploaded my model and rules
 to
 Guvnor.
 Now I have developed a webservice that download the PKG from Guvnor, with
 change-set and seems that the annotation @PropertyReactive not works
 because
 of the same rule is reevaluated constantly although the consecuences the
 rule not change the value of attributes of LHS of rule, and infinite loops
 appears
 The error only occurs when I download the PKG from Guvnor, if I refer the
 file DRL directly all woks fine

 Can anybody help me?

 I use 5.6.0.Final Version for Drools and Guvnor, Guvnor and my webservice
 are deployed in Tomcat

 Thanks in advance



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Annotation-PropertyReactive-not-works-tp4030602.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] Sequential and Decision Tables

2014-08-11 Thread Michael Anstis
The sequential flag controls the rule's salience per XLS worksheet.

Rule's RHS are executed according to their salience values and hence the
sequential flag will control the rules RHS execution order.

See
http://docs.jboss.org/drools/release/6.1.0.Final/drools-docs/html/ch06.html#d0e3942
and
http://docs.jboss.org/drools/release/6.1.0.Final/drools-docs/html/DroolsLanguageReferenceChapter.html#d0e6859
for more information.

If you want to control the execution across multiple Decision Tables you'll
need to define the rows salience manually, with the highest priority
Decision Table having values higher than the lower priority tables.


On 11 August 2014 15:17, sjrcgtek steve.cg...@gmail.com wrote:

 Apologies if this is already answered but I could not find it.

 Drools Version 6.1.0.Final

 I have three Excel DTs which I would like to fire in order.  The Sequential
 option appears to just order the rules within an excel DT.  I confirmed
 that
 by printing the resulting rules and see that the generated rules from
 different sheets have the same priority.

 I can manually set the PRIORITY in the actual sheets, but that makes
 inserting sheets or even lines in a sheet cumbersome.

 Is there a way to tell drools to fire all rules across all DT's
 sequentially?

 Thanks.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Sequential-and-Decision-Tables-tp4030631.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] Annotation @PropertyReactive not works

2014-08-09 Thread Michael Anstis
Regarding the Guvnor question; we don't support the time element of dates
at the moment.
It should however be a simple change and I am happy to support you
submitting a pull request to fix in a later version. Unfortunately we
simply do not have the time to fix ourselves at present.

Sent on the move
On 9 Aug 2014 16:20, David Moros Claramunt davidmo...@gmail.com wrote:

 Do you know if the issue is solved in some later version?

 Also, I have another problem with Guvnor, in scenarios test I can´t set a
 date with time in Date field, is possible set it?I have changed the format
 Date and DateTime in .properties but fail the conversion too

 thanks,


 2014-08-08 15:26 GMT+02:00 Davide Sottara dso...@gmail.com:

 If I remember correctly this is a known issue. Unfortunately drools 5.6
 is final and can't be patched. Downloading the source drl rather than the
 compiled pkg could be a workaround.
 Please let me know if it works

 Sent via the ASUS PadFone X, an ATT 4G LTE smartphone


  Original Message 
 From:davidmoros davidmo...@gmail.com
 Sent:Fri, 08 Aug 2014 05:03:29 -0500
 To:rules-users@lists.jboss.org
 Subject:[rules-users] Annotation @PropertyReactive not works

 I'm developing a system rules with drools, how any novice I found the
 problem
 of infinite loops, in unitary test I resolved with annotation
 @PropertyReactive and all works fine, until I uploaded my model and rules
 to
 Guvnor.
 Now I have developed a webservice that download the PKG from Guvnor, with
 change-set and seems that the annotation @PropertyReactive not works
 because
 of the same rule is reevaluated constantly although the consecuences the
 rule not change the value of attributes of LHS of rule, and infinite loops
 appears
 The error only occurs when I download the PKG from Guvnor, if I refer the
 file DRL directly all woks fine

 Can anybody help me?

 I use 5.6.0.Final Version for Drools and Guvnor, Guvnor and my webservice
 are deployed in Tomcat

 Thanks in advance



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Annotation-PropertyReactive-not-works-tp4030602.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] Mocking Guvnor

2014-08-08 Thread Michael Anstis
I assume you have a service encapsulating your use of Drools?

Why not mock this service to use an implementation that returns what you
need?


On 8 August 2014 03:13, san_hegde santhosh.he...@hp.com wrote:

  Hi ,



 We have requirement where in during functional testing we do not want to
 connect to Guvnor rather want to mock it.



 For example mocking could be like this.



 We send Fact object as input during calling
 knowledgeSession.execute() method and in rule we update the result in that
 fact object itself. So here can we mock the output fact object, so that
 during functional testing we no need to connect to Guvnor rather mocked
 result fact object is returned.





 Thank you

 Santhosh Hegde A

 --
 View this message in context: Mocking Guvnor
 http://drools.46999.n3.nabble.com/Mocking-Guvnor-tp4030601.html
 Sent from the Drools: User forum mailing list archive
 http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html 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] Mocking Guvnor

2014-08-08 Thread Michael Anstis
Sounds like your service uses KnowledgeAgent that detects changes to rules
in Guvnor based upon a changeset?

Either way your requirement remains the same: *your* application
architecture needs to support (at least) the ability to provide different
changesets (for testing you can use a changeset that points to a local
folder containing rules rather than Guvnor).

You're not going to be able to avoid mocking some part of your application
if you don't want to get rules from Guvnor (although I prefer the term
pluggable - CDI use of @Specialises or @Alternative would be a good
example, but IDK if you use CDI).

Sent on the move
On 8 Aug 2014 18:03, san_hegde santhosh.he...@hp.com wrote:

  Actually during functional testing we want to test our service which in
 turn calls rules and we want to test the service with changing rules.  But
 we do not want to change the rules in Guvnor rather we want to somehow mock
 it.  Means depending on our tests we want to use different modified rules.
 For this if we can mock the session or guvnor or somehow so that we session
 can return the mocked fact depending on our test.



 Thank you

 Santhosh Hegde A



 *From:* Stephen Masters [via Drools] [mailto:ml-node+[hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030609i=0]
 *Sent:* Friday, August 08, 2014 9:10 PM
 *To:* Ajekar, Santhosh Hegde (HP-IT)
 *Subject:* Re: [rules-users] Mocking Guvnor



 Possibly also worth pointing out that inserting a fact and executing a
 session do not connect to Guvnor anyway?



 Although, as Mike mentions, the simplest approach tends to be to create a
 service which wraps knowledge base access and mock that. Although you could
 also mock the session.



 Although, I must admit I’m not sure what question is being asked...



 Steve





 On 8 Aug 2014, at 13:07, Michael Anstis [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030608i=0 wrote:



  I assume you have a service encapsulating your use of Drools?



 Why not mock this service to use an implementation that returns what you
 need?



 On 8 August 2014 03:13, san_hegde [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030608i=1 wrote:

  Hi ,



 We have requirement where in during functional testing we do not want to
 connect to Guvnor rather want to mock it.



 For example mocking could be like this.



 We send Fact object as input during calling
 knowledgeSession.execute() method and in rule we update the result in that
 fact object itself. So here can we mock the output fact object, so that
 during functional testing we no need to connect to Guvnor rather mocked
 result fact object is returned.





 Thank you

 Santhosh Hegde A


  --

 View this message in context: Mocking Guvnor
 http://drools.46999.n3.nabble.com/Mocking-Guvnor-tp4030601.html
 Sent from the Drools: User forum mailing list archive
 http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html at
 Nabble.com.

 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4030608i=2
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4030608i=3
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4030608i=4
 https://lists.jboss.org/mailman/listinfo/rules-users
  --

 *If you reply to this email, your message will be added to the discussion
 below:*

 http://drools.46999.n3.nabble.com/Mocking-Guvnor-tp4030601p4030608.html

 To start a new topic under Drools: User forum, email [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030609i=1
 To unsubscribe from Drools: User forum, click here.
 NAML
 http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 --
 View this message in context: RE: [rules-users] Mocking Guvnor
 http://drools.46999.n3.nabble.com/Mocking-Guvnor-tp4030601p4030609.html
 Sent from the Drools: User forum mailing list archive
 http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html 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] Mocking Guvnor

2014-08-08 Thread Michael Anstis
My advice is still to mock the service. If the service is too fat (I.e.
has alot of business functionality) split it into thinner layers until
you isolate the Drools usage and then write a different implementation of
this for your tests.

Sent on the move
On 8 Aug 2014 19:29, Ajekar, Santhosh Hegde (HP-IT) santhosh.he...@hp.com
wrote:

  Hi Michael,

 Yes, you are correct. We use the KnowledgeAgent that detects changes to
 rules in Guvnor based upon a changeset.

 One more question.  Is there any way I can mock StatelessKnowledgeSession
 so that I can mock the output Fact object.





 Thank you

 Santhosh Hegde A



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* Friday, August 08, 2014 11:28 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Mocking Guvnor



 Sounds like your service uses KnowledgeAgent that detects changes to rules
 in Guvnor based upon a changeset?

 Either way your requirement remains the same: *your* application
 architecture needs to support (at least) the ability to provide different
 changesets (for testing you can use a changeset that points to a local
 folder containing rules rather than Guvnor).

 You're not going to be able to avoid mocking some part of your application
 if you don't want to get rules from Guvnor (although I prefer the term
 pluggable - CDI use of @Specialises or @Alternative would be a good
 example, but IDK if you use CDI).

 Sent on the move

 On 8 Aug 2014 18:03, san_hegde santhosh.he...@hp.com wrote:

 Actually during functional testing we want to test our service which in
 turn calls rules and we want to test the service with changing rules.  But
 we do not want to change the rules in Guvnor rather we want to somehow mock
 it.  Means depending on our tests we want to use different modified rules.
 For this if we can mock the session or guvnor or somehow so that we session
 can return the mocked fact depending on our test.



 Thank you

 Santhosh Hegde A



 *From:* Stephen Masters [via Drools] [mailto:ml-node+[hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030609i=0]
 *Sent:* Friday, August 08, 2014 9:10 PM
 *To:* Ajekar, Santhosh Hegde (HP-IT)
 *Subject:* Re: [rules-users] Mocking Guvnor



 Possibly also worth pointing out that inserting a fact and executing a
 session do not connect to Guvnor anyway?



 Although, as Mike mentions, the simplest approach tends to be to create a
 service which wraps knowledge base access and mock that. Although you could
 also mock the session.



 Although, I must admit I’m not sure what question is being asked...



 Steve





 On 8 Aug 2014, at 13:07, Michael Anstis [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030608i=0 wrote:



 I assume you have a service encapsulating your use of Drools?



 Why not mock this service to use an implementation that returns what you
 need?



 On 8 August 2014 03:13, san_hegde [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030608i=1 wrote:

 Hi ,



 We have requirement where in during functional testing we do not want to
 connect to Guvnor rather want to mock it.



 For example mocking could be like this.



 We send Fact object as input during calling
 knowledgeSession.execute() method and in rule we update the result in that
 fact object itself. So here can we mock the output fact object, so that
 during functional testing we no need to connect to Guvnor rather mocked
 result fact object is returned.





 Thank you

 Santhosh Hegde A


  --

 View this message in context: Mocking Guvnor
 http://drools.46999.n3.nabble.com/Mocking-Guvnor-tp4030601.html
 Sent from the Drools: User forum mailing list archive
 http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html at
 Nabble.com.

 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4030608i=2
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4030608i=3
 https://lists.jboss.org/mailman/listinfo/rules-users



 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4030608i=4
 https://lists.jboss.org/mailman/listinfo/rules-users
  --

 *If you reply to this email, your message will be added to the discussion
 below:*

 http://drools.46999.n3.nabble.com/Mocking-Guvnor-tp4030601p4030608.html

 To start a new topic under Drools: User forum, email [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030609i=1
 To unsubscribe from Drools: User forum, click here.
 NAML
 http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace

Re: [rules-users] BuildDeploy - Drools Document

2014-08-01 Thread Michael Anstis
Please submit a pull request for an update to the documentation and we will
happily accept it.

Sent on the move
On 1 Aug 2014 23:20, Ricardo sprabak...@gmail.com wrote:

 15.7.4.1. Build  Deploy

 Build  Depoy builds the current project and deploys the KJAR into the
 workbench internal Maven repository.



 the above statement from the drools document says deploys into internal
 document but you can deploy to remote maven repo modifying pom.xml. The
 above statement restriction the extended functionality of Build and Deploy.



 -
 with kind regards,

 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Build-Deploy-Drools-Document-tp4030554.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] [drools-wb] how to move an asset to another package ?

2014-07-28 Thread Michael Anstis
I didn't see your other questions.. was the list that short? ;)

As for move if you raise a GUVNOR JIRA it'll get addressed when we get
time --- of course, we're more than happy to mentor you with a pull request
too :)


On 23 July 2014 17:34, jps j...@jps.ch wrote:

 Hi,

 Thank you for the reply and the workaround.

 Will you add this kind of functionnality in the future ? We expect to
 deploy
 drools-wb to business users so they have a business-user-friendly
 environment to author their rules. But you know - we can't ask our business
 users to do a git clone + git push :)

 This leads me to other questions about git operations, but that's going to
 be another post.


 Regards,
 --jps




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/drools-wb-how-to-move-an-asset-to-another-package-tp4030422p4030461.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] Decision table max rows

2014-07-17 Thread Michael Anstis
Simplistically, split your decision table into smaller ones.

To answer your question more fully; the maximum number of rows that can
exist in a XLS is (IIRC) 65535.

That said; how many can be processed on a given computer, depends on how
much RAM has been associated with the JVM heap and how many decision table
columns are on a row.

With kind regards,

Mike



On 17 July 2014 04:49, J Rose u...@comcast.net wrote:

 What is the maximum number of rows you can use in a decision table?  I need
 to use over 12,000 rows but seem to get an out of memory error for even
 1,000 rows.  I already increased the memory used.
 What are my options if I need to lookup values for that many rows?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Decision-table-max-rows-tp4030382.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] condition altered while unmarshalling a drl to guided rule

2014-07-17 Thread Michael Anstis
Fixed.

6.2.0-SNAPSHOT (master branch) has improved Expression handling.

6.1.0.Final will include the fix for this issue; but other aspects of
Expression handling are not as developed as 6.2.0-SNAPSHOT.


On 16 July 2014 16:40, Michael Anstis michael.ans...@gmail.com wrote:

 https://issues.jboss.org/browse/GUVNOR-2109

 Working on a fix.


 On 16 July 2014 14:27, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I created a guided rule and when I open it again some conditions which I
 wrote using the --Text-- option from drop down are altered.
 It seems the issue is only with unmarshalling because condition remains
 unaltered in rdrl file until you save it again so everything is fine if
 you
 change it every time you make any change to the rule or save it.

 Below is the scenario to reproduce(use 6.1CR2) :-

 1) Made a Maven-ized JAR containing the following classes:

 package com.demo;

 import java.util.List;

 public class Foo {

 private List myList;

 public List getMyList() {
 return myList;
 }

 public void setMyList( List myList ) {
 this.myList = myList;
 }
 }

 public class Bar {

 private String myString;

 public String getMyString() {
 return myString;
 }

 public void setMyString( String myString ) {
 this.myString = myString;
 }
 }

 2) Uploaded JAR to the workbench's Artifact Repository

 3) Added a project dependency on this artifact

 4) Added an Import Suggestion for java.util.List

 5) Created a new Guided Rule

 6) Imported Foo,Bar and java.util.List (Config tab)

 7) Created the following rule:

 package org.mortgages;

 import java.lang.Number;
 import java.util.List;
 import org.anstis.MyListClass;

 rule r1
   dialect mvel
 when
  $foo : Foo()
  Bar : Bar( myString == $foo.myList.get(1))
 then
 end

 8) Validate rule :- will be vaidated
 9) Save and close rule

 Now when rule will be opened again this get(1) will change to get moreover
 while creating rule get(index) method is not specified in dropdown so
 selected -- Text -- option to create the rule.

 DRL remains in valid format until overwritten in another save.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/condition-altered-while-unmarshalling-a-drl-to-guided-rule-tp4030375.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] condition altered while unmarshalling a drl to guided rule

2014-07-16 Thread Michael Anstis
https://issues.jboss.org/browse/GUVNOR-2109

Working on a fix.


On 16 July 2014 14:27, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I created a guided rule and when I open it again some conditions which I
 wrote using the --Text-- option from drop down are altered.
 It seems the issue is only with unmarshalling because condition remains
 unaltered in rdrl file until you save it again so everything is fine if you
 change it every time you make any change to the rule or save it.

 Below is the scenario to reproduce(use 6.1CR2) :-

 1) Made a Maven-ized JAR containing the following classes:

 package com.demo;

 import java.util.List;

 public class Foo {

 private List myList;

 public List getMyList() {
 return myList;
 }

 public void setMyList( List myList ) {
 this.myList = myList;
 }
 }

 public class Bar {

 private String myString;

 public String getMyString() {
 return myString;
 }

 public void setMyString( String myString ) {
 this.myString = myString;
 }
 }

 2) Uploaded JAR to the workbench's Artifact Repository

 3) Added a project dependency on this artifact

 4) Added an Import Suggestion for java.util.List

 5) Created a new Guided Rule

 6) Imported Foo,Bar and java.util.List (Config tab)

 7) Created the following rule:

 package org.mortgages;

 import java.lang.Number;
 import java.util.List;
 import org.anstis.MyListClass;

 rule r1
   dialect mvel
 when
  $foo : Foo()
  Bar : Bar( myString == $foo.myList.get(1))
 then
 end

 8) Validate rule :- will be vaidated
 9) Save and close rule

 Now when rule will be opened again this get(1) will change to get moreover
 while creating rule get(index) method is not specified in dropdown so
 selected -- Text -- option to create the rule.

 DRL remains in valid format until overwritten in another save.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/condition-altered-while-unmarshalling-a-drl-to-guided-rule-tp4030375.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] drools-wb 6.1.0.CR2-wildfly - Decision table

2014-07-15 Thread Michael Anstis
Hi,

I tried to replicate using your steps (but with a simple JAR, no parent,
no other transitive dependencies etc) and it worked OK.

We have a known issue with Wildfly CR2 (see
https://issues.jboss.org/browse/GUVNOR-2108) that means if you try to use a
JAR that then requires Maven to attempt to download additional artifacts
it'll fail.

The Guided Decision Table editor (as do most other editors) tries to load
meta-data about the classes, fields etc available for authoring from the
model associated with the project (i.e. all JAR dependencies etc).

If this fails it's possible the editor will not open.

Can you please:-

(a) Try with the workaround mentioned in the JIRA (about org.jboss.netty vs
io.netty)

(b) Try with no JAR dependencies (i.e. create a data model in the workbench
itself).

Thanks,

Mike


On 15 July 2014 08:51, jps j...@jps.ch wrote:

 Hello,

 I can't create a Decision Table (Guided Editor) in drools-wb
 6.1.0.CR2-wildfly.
 /(was working ok with CR1)/


 Steps :
 - starting with a fresh install, no .niogit, no repostories/kie
 - upload 2 jars to repositoy
 - create a organisational unit
 - create a git repo for the new unit
 - create a project
 - add my 2 dependencies to the new project
 - create a decision table (guided editor) (don't use wizard)
 = the name of the decision table is listed in the project explorer panel
 but the main editor is empty ... no error log. (see screenshot)

 Tries to restart wildfly. No effect.



 http://drools.46999.n3.nabble.com/file/n4030354/decision-table.png



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/drools-wb-6-1-0-CR2-wildfly-Decision-table-tp4030354.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.6 Decision Table VLookup

2014-07-15 Thread Michael Anstis
No progress.

Community contributions always appreciated.

http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/Welcome.html#gettingstarted


On 15 July 2014 12:38, J Rose u...@comcast.net wrote:

 Re: [rules-users] 5.6 Decision Table VLookup.   Can you tell me the status
 on
 this item please?   I need to use a vlookup as well.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/5-6-Decision-Table-VLookup-tp4030082p4030357.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.6 Decision Table VLookup

2014-07-15 Thread Michael Anstis
It won't be fixed in any version; we've just not had time to investigate.

You could try the VLOOKUP on the same sheet - my suspicion is that the
issue is because it is on a different sheet.. but it's only a suspicion.


On 15 July 2014 15:54, Jan Rose u...@comcast.net wrote:

 Hi Michael,
 Just a few questions:
 1.  Does it work in later versions of DROOLS?  Which one?
 2.  If I put the lookups on the same sheet, will it work?  Is it only
 because the lookups are on a separate sheet?

 Thanks,

 Jan

 Sent from my iPhone

 On Jul 15, 2014, at 7:53 AM, Michael Anstis michael.ans...@gmail.com
 wrote:

 No progress.

 Community contributions always appreciated.


 http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/Welcome.html#gettingstarted


 On 15 July 2014 12:38, J Rose u...@comcast.net wrote:

 Re: [rules-users] 5.6 Decision Table VLookup.   Can you tell me the
 status on
 this item please?   I need to use a vlookup as well.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/5-6-Decision-Table-VLookup-tp4030082p4030357.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] drools-wb 6.1.0.CR1-wildfly - error when upload jar M2 Repo

2014-07-14 Thread Michael Anstis
I've tried AS7 and Wildfly CR2 with a simple JAR (we use to kick the tyres
of the M2Repo Upload stuff) and it works fine on both.

I have to speculate that the problem you're encountering is something
specific to the JAR you're trying to upload.

Can you please create a JIRA at https://issues.jboss.org/browse/GUVNOR and
attach a minimal JAR I can upload to reproduce the issue?

Thanks,

Mike


On 14 July 2014 10:25, jps j...@jps.ch wrote:

 Hello manstis,

 Thanks for you reply.

 Just tried with 6.1.0.CR2 (wildfly-8.1.0.Final + java version 1.7.0_11),
 but still the same error :((


 10:42:46,359 INFO  [org.guvnor.m2repo.backend.server.M2Servlet] (default
 task-14) POST request received.
 10:42:46,851 ERROR [io.undertow.request] (default task-14) UT005023:
 Exception handling request to
 /kie-drools-wb-distribution-wars-6.1.0.CR2-wildfly/maven2:
 java.lang.LinkageError:
 com/ning/http/client/providers/netty/NettyAsyncHttpProvider
 at
 org.sonatype.maven.wagon.AhcWagon.openConnectionInternal(AhcWagon.java:150)
 [wagon-ahc-1.2.1.jar:]
 at
 org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
 [wagon-provider-api-1.0.jar:1.0]
 at
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
 [wagon-provider-api-1.0.jar:1.0]
 at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector.connectWagon(WagonRepositoryConnector.java:345)
 [aether-connector-wagon-1.13.1.jar:]
 at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector.pollWagon(WagonRepositoryConnector.java:385)
 [aether-connector-wagon-1.13.1.jar:]
 at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:571)
 [aether-connector-wagon-1.13.1.jar:]
 at

 org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
 [aether-util-1.13.1.jar:]
 at

 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 [rt.jar:1.7.0_11]
 at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 [rt.jar:1.7.0_11]
 at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]

 10:42:46,856 ERROR [stderr] (pool-15-thread-1) Exception in thread
 pool-15-thread-1 java.lang.LinkageError:
 com/ning/http/client/providers/netty/NettyAsyncHttpProvider
 10:42:46,857 ERROR [stderr] (pool-15-thread-1)  at
 org.sonatype.maven.wagon.AhcWagon.openConnectionInternal(AhcWagon.java:150)
 10:42:46,858 ERROR [stderr] (pool-15-thread-1)  at
 org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
 10:42:46,859 ERROR [stderr] (pool-15-thread-1)  at
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
 10:42:46,859 ERROR [stderr] (pool-15-thread-1)  at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector.connectWagon(WagonRepositoryConnector.java:345)
 10:42:46,860 ERROR [stderr] (pool-15-thread-1)  at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector.pollWagon(WagonRepositoryConnector.java:385)
 10:42:46,860 ERROR [stderr] (pool-15-thread-1)  at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:571)
 10:42:46,860 ERROR [stderr] (pool-15-thread-1)  at

 org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
 10:42:46,861 ERROR [stderr] (pool-15-thread-1)  at

 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 10:42:46,861 ERROR [stderr] (pool-15-thread-1)  at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 10:42:46,862 ERROR [stderr] (pool-15-thread-1)  at
 java.lang.Thread.run(Thread.java:722)



 Investigating a little :

 Uploading a mavenized JAR with one dependency and a two-level parent
 project
 = KO (that's my usecase) java.lang.LinkageError
 Uploading a mavenized JAR with several dependencies and no parent project
 =
 KO, java.lang.LinkageError
 Uploading a mavenized JAR with no dependency and a single-level pom parent
 project = upload OK, but with error in log :


 Caused by: org.apache.maven.model.building.ModelBuildingException: 1
 problem
 was encountered while building the effective model for
 group-xxx:artifact-xxx:0.31
 [ERROR] Invalid packaging for parent POM group-xxx:artifact-xxx:0.31, must
 be pom but is jar @ group-xxx:artifact-xxx:0.31



 java.lang.LinkageError should indicate that there is a version mismatch
 somewhere with the netty JAR ?? Isn't it ?


 For now, my workaround is now to manually install the jar into the local
 repository :

 mvn install-file
 -Dfile=path-to-your-artifact-jar \
 -DgroupId=your.groupId \
 -DartifactId=your-artifactId \
 -Dversion=version \
 -Dpackaging=jar

 -DlocalRepositoryPath=*/usr/jboss/wildfly-8.1.0.Final/bin/repositories/kie*


 Regards,
 jps






 --
 View this message in context:
 

Re: [rules-users] condition on size of list

2014-07-14 Thread Michael Anstis
See my other reply.


On 11 July 2014 10:08, sumit dhaniya sumitdhan...@gmail.com wrote:

 After restarting the server it started showing list in import suggestions
 but still it doesn't shows size and other list operation on the list's in
 my object. For eg.

 class A {
 ListB bList = new ArrayListB();
 }

 now it shows bList as a variable but it doesn't shows size and related
 list function instead shows collection functions like contains etc.

 Can't I use it like both a collection as well as List?


 On Thu, Jul 10, 2014 at 7:53 PM, sumit dhaniya sumitdhan...@gmail.com
 wrote:

 I already tried building the project do I need to do something else to
 get java.util.List get listed in the import suggestions of my file because
 even when I removed java.lang.Number from the project imports it still
 shows it in the import suggestion in config of my rule files.


 On Thu, Jul 10, 2014 at 7:41 PM, sumit dhaniya sumitdhan...@gmail.com
 wrote:

 First I tried by adding java.util.List, it didn't showed as import type
 in config of the file.
 Then I thought it might not pick interfaces so I also
 imported java.util.ArrayList but still it doesn't shows it.

 I tried building project but still no luck.


 On Thu, Jul 10, 2014 at 7:15 PM, Michael Anstis 
 michael.ans...@gmail.com wrote:

 You need to add it.


 On 10 July 2014 14:43, sumit dhaniya sumitdhan...@gmail.com wrote:

 It doesn't shows java.util.List in import suggestions


 On Thu, Jul 10, 2014 at 7:08 PM, Michael Anstis 
 michael.ans...@gmail.com wrote:

 Did you import java.util.List (in Project Editor's Import
 suggestions and then on the editor's Config tab)?


 On 10 July 2014 13:10, sumit dhaniya sumitdhan...@gmail.com wrote:

 listIf I use model classes created in JAVA with some java.util.List
 it identifies them as Collection(superclass of List) and then list 
 options
 like size,first,last doesn't show up. Is there any way I can force these
 objects as type of List.


 On Wed, Jul 9, 2014 at 11:52 PM, Michael Anstis 
 michael.ans...@gmail.com wrote:

 Yes.

 Create a BRL Condition column and use an expression on the List
 pattern.

 Sent on the move
 On 9 Jul 2014 19:21, Sumit Dhaniya sumitdhan...@gmail.com
 wrote:

 I know we can check size of list if we write free form drl but is
 it possible
 to use size of the list as condition in guided decision table?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/condition-on-size-of-list-tp4030283.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



 ___
 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] check list size

2014-07-14 Thread Michael Anstis
I had a look, but was able to use a List without problem (6.1.CR2):

1) Made a Maven-ized JAR containing the following class:

package org.anstis;

import java.util.List;

public class MyListClass {

private List myList;

public List getMyList() {
return myList;
}

public void setMyList( List myList ) {
this.myList = myList;
}
}

2) Uploaded JAR to the workbench's Artifact Repository

3) Added a project dependency on this artifact

4) Added an Import Suggestion for java.util.List

5) Created a new Guided Rule

6) Imported MyListClass and java.util.List (Config tab)

7) Created the following rule:

package org.mortgages;

import java.lang.Number;
import java.util.List;
import org.anstis.MyListClass;

rule r1
  dialect mvel
when
  MyListClass( myList.size()  5 )
then
end

You need to use an Expression to use the size() method call (as it is
not a field, but a method call). Fields are getXXX or setYYY or public
members.

With kind regards,

Mike

On 11 July 2014 15:14, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I have a class which contains some lists, I want to apply rules on size of
 list and want to use functions like first(), last() but list objects which
 are in my class are identified as collections and only collection related
 functions are shown.

 For eg.

 class A {
 java.util.List bList = new ArrayList();
 }

 now it shows bList as collection type and it doesn't shows size and related
 list function instead shows collection functions like contains etc.

 Can't I use it like both a collection as well as List?

 I tried importing java.util.List but it still don't recognize my List
 objects as List



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/check-list-size-tp4030303.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] conditions getting removed from Guided Rule

2014-07-14 Thread Michael Anstis
Hello,

Class ProducerMasterForRules isn't valid; it references getPCuisines()
that isn't in the class.

Since your rule uses the affected public methods getPrimaryCuisine() and
getSecondaryCuisine() can you provide the missing implementation?

I could mock something up, but want to be sure to use exactly what you are.

With kind regards,

Mike


On 12 July 2014 12:17, sumit dhaniya sumitdhan...@gmail.com wrote:

 Michael I really appreciate all the help from the forum and the time
 invested by the people to answer the queries.
 I'm working as a freelance developer so if support is something affordable
 then please let me know.



 DRL :-



 2.| 3.|import java.lang.Number;4. |import
 com.sophic.foodeemee.offers.dto.SearchContext;5.| import
 com.sophic.foodeemee.offers.dto.ProducerMasterForRules;6.|import
 com.sophic.foodeemee.offers.dto.RuleFactor; 7.|8.|rule
 SecondaryCuisineRepeatUsage 9.|dialect mvel10. |when11.|
 $searchContext
 : SearchContext( lastThreeCuisines != null ) 12.|
 ProducerMasterForRules(
 primaryCuisine != null , primaryCuisine !=
 $searchContext.lastThreeCuisines , secondaryCuisine != null ,
 secondaryCuisine == $searchContext.lastThreeCuisines ) 13.|
 $secondaryCuisineRepeatUsageFactor
 : RuleFactor( )14.| then15.|
 $secondaryCuisineRepeatUsageFactor.setWeightageImpact(
 -30 ); 16.|update( $secondaryCuisineRepeatUsageFactor );17.| end

 object models are attached.


 On Sat, Jul 12, 2014 at 3:40 PM, Michael Anstis michael.ans...@gmail.com
 wrote:

 Asking (at least) three questions at the same time on the same thread is
 really going to annoy people.

 It's the weekend; most people are not working and you are not paying for
 our support.

 When I am at my computer on Monday I will be happy to answer more. For
 now; please provide the DRL for the rule that does not reopen correctly and
 your object model.

 Sent on the move
 On 12 Jul 2014 10:54, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I create the rule by comparing properties of two objects as shown in
 image
 attached. Till I don't close the window generated source looks fine but
 when
 I open this rule after closing it.
 But when I open the rule next time it removes the highlighted condition
 from
 the rule and also removes them from drl. Just wondering is there anything
 I'm doing wrong or issue is something else.
 http://drools.46999.n3.nabble.com/file/n4030322/rule_snapshot.png



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308p4030322.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] conditions getting removed from Guided Rule

2014-07-14 Thread Michael Anstis
Hello,

I wrote a test that checks the marshalling of the DRL and it passes OK.

It could be that the workbench is failing fast midway through trying to
marshal due to the MVEL issue Mario mentions (the test doesn't pro
grammatically build meta-data from the classes in the model; whereas the
workbench does).

Can you re-try with alterations to your public getters/setters names (getId
instead of get_id)?

Thanks,

Mike


On 14 July 2014 13:39, Michael Anstis michael.ans...@gmail.com wrote:

 Hello,

 Class ProducerMasterForRules isn't valid; it references getPCuisines()
 that isn't in the class.

 Since your rule uses the affected public methods getPrimaryCuisine() and
 getSecondaryCuisine() can you provide the missing implementation?

 I could mock something up, but want to be sure to use exactly what you are.

 With kind regards,

 Mike


 On 12 July 2014 12:17, sumit dhaniya sumitdhan...@gmail.com wrote:

 Michael I really appreciate all the help from the forum and the time
 invested by the people to answer the queries.
 I'm working as a freelance developer so if support is something
 affordable then please let me know.



 DRL :-



 2.| 3.|import java.lang.Number;4. |import
 com.sophic.foodeemee.offers.dto.SearchContext;5.| import
 com.sophic.foodeemee.offers.dto.ProducerMasterForRules;6.|import
 com.sophic.foodeemee.offers.dto.RuleFactor; 7.|8.|rule
 SecondaryCuisineRepeatUsage 9.|dialect mvel10. |when11.|
 $searchContext
 : SearchContext( lastThreeCuisines != null ) 12.|
 ProducerMasterForRules(
 primaryCuisine != null , primaryCuisine !=
 $searchContext.lastThreeCuisines , secondaryCuisine != null ,
 secondaryCuisine == $searchContext.lastThreeCuisines ) 13.|
 $secondaryCuisineRepeatUsageFactor
 : RuleFactor( )14. | then15.|
 $secondaryCuisineRepeatUsageFactor.setWeightageImpact(
 -30 ); 16.|update( $secondaryCuisineRepeatUsageFactor );17.| end

 object models are attached.


 On Sat, Jul 12, 2014 at 3:40 PM, Michael Anstis michael.ans...@gmail.com
  wrote:

 Asking (at least) three questions at the same time on the same thread is
 really going to annoy people.

 It's the weekend; most people are not working and you are not paying for
 our support.

 When I am at my computer on Monday I will be happy to answer more. For
 now; please provide the DRL for the rule that does not reopen correctly and
 your object model.

 Sent on the move
 On 12 Jul 2014 10:54, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I create the rule by comparing properties of two objects as shown in
 image
 attached. Till I don't close the window generated source looks fine but
 when
 I open this rule after closing it.
 But when I open the rule next time it removes the highlighted condition
 from
 the rule and also removes them from drl. Just wondering is there
 anything
 I'm doing wrong or issue is something else.
 http://drools.46999.n3.nabble.com/file/n4030322/rule_snapshot.png



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308p4030322.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] conditions getting removed from Guided Rule

2014-07-14 Thread Michael Anstis
FYI, test http://github.com/droolsjbpm/drools/commit/ee232266c


On 14 July 2014 13:54, Michael Anstis michael.ans...@gmail.com wrote:

 Hello,

 I wrote a test that checks the marshalling of the DRL and it passes OK.

 It could be that the workbench is failing fast midway through trying to
 marshal due to the MVEL issue Mario mentions (the test doesn't pro
 grammatically build meta-data from the classes in the model; whereas the
 workbench does).

 Can you re-try with alterations to your public getters/setters names
 (getId instead of get_id)?

 Thanks,

 Mike


 On 14 July 2014 13:39, Michael Anstis michael.ans...@gmail.com wrote:

 Hello,

 Class ProducerMasterForRules isn't valid; it references
 getPCuisines() that isn't in the class.

 Since your rule uses the affected public methods getPrimaryCuisine()
 and getSecondaryCuisine() can you provide the missing implementation?

 I could mock something up, but want to be sure to use exactly what you
 are.

 With kind regards,

 Mike


 On 12 July 2014 12:17, sumit dhaniya sumitdhan...@gmail.com wrote:

 Michael I really appreciate all the help from the forum and the time
 invested by the people to answer the queries.
 I'm working as a freelance developer so if support is something
 affordable then please let me know.



 DRL :-



 2.| 3.|import java.lang.Number;4. |import
 com.sophic.foodeemee.offers.dto.SearchContext;5.| import
 com.sophic.foodeemee.offers.dto.ProducerMasterForRules;6.|import
 com.sophic.foodeemee.offers.dto.RuleFactor; 7.|8.|rule
 SecondaryCuisineRepeatUsage 9.|dialect mvel10. |when11.|
 $searchContext
 : SearchContext( lastThreeCuisines != null ) 12.|
 ProducerMasterForRules(
 primaryCuisine != null , primaryCuisine !=
 $searchContext.lastThreeCuisines , secondaryCuisine != null ,
 secondaryCuisine == $searchContext.lastThreeCuisines ) 13.|
 $secondaryCuisineRepeatUsageFactor
 : RuleFactor( )14. | then15.|
 $secondaryCuisineRepeatUsageFactor.setWeightageImpact(
 -30 ); 16.|update( $secondaryCuisineRepeatUsageFactor );17.| end

 object models are attached.


 On Sat, Jul 12, 2014 at 3:40 PM, Michael Anstis 
 michael.ans...@gmail.com wrote:

 Asking (at least) three questions at the same time on the same thread
 is really going to annoy people.

 It's the weekend; most people are not working and you are not paying
 for our support.

 When I am at my computer on Monday I will be happy to answer more. For
 now; please provide the DRL for the rule that does not reopen correctly and
 your object model.

 Sent on the move
 On 12 Jul 2014 10:54, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I create the rule by comparing properties of two objects as shown in
 image
 attached. Till I don't close the window generated source looks fine
 but when
 I open this rule after closing it.
 But when I open the rule next time it removes the highlighted
 condition from
 the rule and also removes them from drl. Just wondering is there
 anything
 I'm doing wrong or issue is something else.
 http://drools.46999.n3.nabble.com/file/n4030322/rule_snapshot.png



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308p4030322.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] conditions getting removed from Guided Rule

2014-07-12 Thread Michael Anstis
Asking (at least) three questions at the same time on the same thread is
really going to annoy people.

It's the weekend; most people are not working and you are not paying for
our support.

When I am at my computer on Monday I will be happy to answer more. For now;
please provide the DRL for the rule that does not reopen correctly and your
object model.

Sent on the move
On 12 Jul 2014 10:54, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I create the rule by comparing properties of two objects as shown in image
 attached. Till I don't close the window generated source looks fine but
 when
 I open this rule after closing it.
 But when I open the rule next time it removes the highlighted condition
 from
 the rule and also removes them from drl. Just wondering is there anything
 I'm doing wrong or issue is something else.
 http://drools.46999.n3.nabble.com/file/n4030322/rule_snapshot.png



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308p4030322.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] Project Authoring in kie ide

2014-07-11 Thread Michael Anstis
You can delete /bin/.niogit/System.git to restore the workbench.

I'd be more interested in what rules started throwing error means (the
workbench is an authoring environment, so I don't see how rules started to
throw errors).

Also steps to reproduce would be nice to have, otherwise we'll never know
what caused it and whether we should fix it.


On 11 July 2014 12:02, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I updated the POJO's which were getting used in rules due to which some of
 the rules started throwing error and the left hand side panel consisting of
 Organisational Unit, repository and project was no longer visible.
 I tried restarting the server and then even deleting and creating a new
 repository but left hand side panel of project authoring perspective is
 still not getting displayed.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Project-Authoring-in-kie-ide-tp4030298.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] Error due to same class name

2014-07-11 Thread Michael Anstis
The guided rule editors really, really, I mean really, do not handle
multiple classes with the same simple name in different packages at all
well.

Even if you only use a single class in a single rule (I.e. do not attempt
to use x.y.z.MyClass and a.b.c.MyClass) the overall DRL being compiled can
lead to issues as you're effectively creating:

import x.y.z.MyClass

rule a
when
MyClass (...)
...
end

and

import a.b.c.MyClass

rule b
when
MyClass (...)
...
end

I suspect issues to arise with class FQCN resolution in at least one of
those rules.

If you cannot use different simple names then my advice is to use free-form
DRL for these classes; using the FQCN in the rule and exclude the imports
(from the Config tab).

Sent on the move
On 11 Jul 2014 18:37, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I've two classes with same name but in different packages.
 I created several guided rules which use these classes when I validate
 individual rules they get validated but when I try to Build and Deploy the
 project it fails cause it try to find a field in another class.

 Unable to create Field Extractor for 'isPH'Field/method 'isPH' not found
 for
 cla
 ss 'com...db.user.TmSlot'
  : [Rule name='ProducerHour']
 org.drools.core.RuntimeDroolsException: Field/method 'isPH' not found for
 class
 'com...db.user.TmSlot'

 Unable to Analyse Expression isPH == true:
 [Error: unable to resolve method using strict-mode:
 com...db.user.TmSlot.isPH()]
 [Near : {... isPH == true }]



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Error-due-to-same-class-name-tp4030304.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] conditions getting removed from Guided Rule

2014-07-11 Thread Michael Anstis
What version?

Have you tried 6.1.CR2 there were lots of improvements in this area.

The issue is guided rules are stored as DRL and we need to reverse engineer
the model used by the UI from the DRL.

Failing that we'll need your DRL so we can fix whatever issue exists in
your scenario.

Thanks

Sent on the move
On 11 Jul 2014 21:27, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I'm creating a rule in which I'm comparing properties of two objects. All
 works well I'm able to compare their properties and rule gets validated as
 well and then I close the rule, but when I open the rule again properties
 of
 second object in condition don't show up in guided editor however they are
 present if I check the source of the guided rule.
 Moreover it also doesn't allows me to use _id variable which is present in
 my class whereas there is no issue if I use any other variable name id this
 due to _?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308.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] conditions getting removed from Guided Rule

2014-07-11 Thread Michael Anstis
When you say it doesn't allow me to use can you be a little more
descriptive? Does the UI prevent it (I am thinking this is the case) or
does the DRL generate errors?

Sent on the move
On 11 Jul 2014 21:44, sumit dhaniya sumitdhan...@gmail.com wrote:

 Thanks Mike I'll try with 6.1 and if issue still comes I'll share the drl.

 Can you please also confirm if I can use variables whose names start with
 _ cause it seems it doesn't allows me to use _id


 On Sat, Jul 12, 2014 at 2:01 AM, Michael Anstis michael.ans...@gmail.com
 wrote:

 What version?

 Have you tried 6.1.CR2 there were lots of improvements in this area.

 The issue is guided rules are stored as DRL and we need to reverse
 engineer the model used by the UI from the DRL.

 Failing that we'll need your DRL so we can fix whatever issue exists in
 your scenario.

 Thanks

 Sent on the move
 On 11 Jul 2014 21:27, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I'm creating a rule in which I'm comparing properties of two objects. All
 works well I'm able to compare their properties and rule gets validated
 as
 well and then I close the rule, but when I open the rule again
 properties of
 second object in condition don't show up in guided editor however they
 are
 present if I check the source of the guided rule.
 Moreover it also doesn't allows me to use _id variable which is present
 in
 my class whereas there is no issue if I use any other variable name id
 this
 due to _?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308.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] conditions getting removed from Guided Rule

2014-07-11 Thread Michael Anstis
I don't have access to the code here, but it sounds like _ prefixes are
invalid, which means we have a potential bug.

Where/how did you manage to set _id binding?

Sent on the move
On 11 Jul 2014 22:13, sumit dhaniya sumitdhan...@gmail.com wrote:

 I can create rule by selecting the field from fields dropdown but when I
 try to validate it throws error given below :-

 2014-07-12 02:36:24,203 [http-bio-8080-exec-3] ERROR Unable to build
 KieBaseMode
 l:defaultKieBase
 Unable to Analyse Expression _id == $searchContext.lastThreeProducerId:
 [Error: no such identifier: _id]
 [Near : {... _id == $searchContext.lastThre }]
  ^ : [Rule name='EateryRepeatUsage']

 data type of _id is string and same rule gets successfully validated if I
 use any other variable of string type.


 On Sat, Jul 12, 2014 at 2:30 AM, Michael Anstis michael.ans...@gmail.com
 wrote:

 When you say it doesn't allow me to use can you be a little more
 descriptive? Does the UI prevent it (I am thinking this is the case) or
 does the DRL generate errors?

 Sent on the move
 On 11 Jul 2014 21:44, sumit dhaniya sumitdhan...@gmail.com wrote:

 Thanks Mike I'll try with 6.1 and if issue still comes I'll share the
 drl.

 Can you please also confirm if I can use variables whose names start
 with _ cause it seems it doesn't allows me to use _id


 On Sat, Jul 12, 2014 at 2:01 AM, Michael Anstis 
 michael.ans...@gmail.com wrote:

 What version?

 Have you tried 6.1.CR2 there were lots of improvements in this area.

 The issue is guided rules are stored as DRL and we need to reverse
 engineer the model used by the UI from the DRL.

 Failing that we'll need your DRL so we can fix whatever issue exists in
 your scenario.

 Thanks

 Sent on the move
 On 11 Jul 2014 21:27, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I'm creating a rule in which I'm comparing properties of two objects.
 All
 works well I'm able to compare their properties and rule gets
 validated as
 well and then I close the rule, but when I open the rule again
 properties of
 second object in condition don't show up in guided editor however they
 are
 present if I check the source of the guided rule.
 Moreover it also doesn't allows me to use _id variable which is
 present in
 my class whereas there is no issue if I use any other variable name id
 this
 due to _?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-Rule-tp4030308.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



 ___
 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] condition on size of list

2014-07-10 Thread Michael Anstis
Did you import java.util.List (in Project Editor's Import suggestions and
then on the editor's Config tab)?


On 10 July 2014 13:10, sumit dhaniya sumitdhan...@gmail.com wrote:

 listIf I use model classes created in JAVA with some java.util.List it
 identifies them as Collection(superclass of List) and then list options
 like size,first,last doesn't show up. Is there any way I can force these
 objects as type of List.


 On Wed, Jul 9, 2014 at 11:52 PM, Michael Anstis michael.ans...@gmail.com
 wrote:

 Yes.

 Create a BRL Condition column and use an expression on the List pattern.

 Sent on the move
 On 9 Jul 2014 19:21, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I know we can check size of list if we write free form drl but is it
 possible
 to use size of the list as condition in guided decision table?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/condition-on-size-of-list-tp4030283.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] condition on size of list

2014-07-10 Thread Michael Anstis
You need to add it.


On 10 July 2014 14:43, sumit dhaniya sumitdhan...@gmail.com wrote:

 It doesn't shows java.util.List in import suggestions


 On Thu, Jul 10, 2014 at 7:08 PM, Michael Anstis michael.ans...@gmail.com
 wrote:

 Did you import java.util.List (in Project Editor's Import suggestions
 and then on the editor's Config tab)?


 On 10 July 2014 13:10, sumit dhaniya sumitdhan...@gmail.com wrote:

 listIf I use model classes created in JAVA with some java.util.List it
 identifies them as Collection(superclass of List) and then list options
 like size,first,last doesn't show up. Is there any way I can force these
 objects as type of List.


 On Wed, Jul 9, 2014 at 11:52 PM, Michael Anstis 
 michael.ans...@gmail.com wrote:

 Yes.

 Create a BRL Condition column and use an expression on the List pattern.

 Sent on the move
 On 9 Jul 2014 19:21, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I know we can check size of list if we write free form drl but is it
 possible
 to use size of the list as condition in guided decision table?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/condition-on-size-of-list-tp4030283.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



 ___
 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] drools-wb 6.1.0.CR1-wildfly - error when upload jar M2 Repo

2014-07-09 Thread Michael Anstis
6.1.0.CR2 is now released.

I tried uploading a JAR to the Artifact Repository using this version and
it was OK (JDK1.7.0_51 and Wildfly 8.1.0.Final).

Can you re-test with the latest CR?


On 9 July 2014 15:46, jps j...@jps.ch wrote:

 Hello,

 I've installed kie-drools-wb-distribution-wars-6.1.0.CR1-wildfly with all
 the defaults - i.e m2 repo is in WIDLFLY_HOME/bin/repositories/kie) and
 everything works fine so, except that I can't manage to upload a JAR.

 The JAR I'm trying to upload is a mavenized JAR, it has no dependencies but
 a parent pom. I get this Exception in the logs :

  16:33:54,459 ERROR [io.undertow.request] (default task-9) UT005023:
 Exception handling request to

 /kie-drools-wb-distribution-wars-6.1.0.CR1-wildfly/org.kie.workbench.drools.KIEDroolsWebapp/m2repo/file:
 java.lang.LinkageError:
 com/ning/http/client/providers/netty/NettyAsyncHttpProvider
 at
 org.sonatype.maven.wagon.AhcWagon.openConnectionInternal(AhcWagon.java:150)
 [wagon-ahc-1.2.1.jar:]
 at
 org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
 [wagon-provider-api-1.0.jar:1.0]
 at
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
 [wagon-provider-api-1.0.jar:1.0]
 at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector.connectWagon(WagonRepositoryConnector.java:345)
 [aether-connector-wagon-1.13.1.jar:]
 at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector.pollWagon(WagonRepositoryConnector.java:385)
 [aether-connector-wagon-1.13.1.jar:]
 at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:571)
 [aether-connector-wagon-1.13.1.jar:]
 at

 org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
 [aether-util-1.13.1.jar:]
 at

 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 [rt.jar:1.7.0_11]
 at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 [rt.jar:1.7.0_11]
 at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]

 16:33:54,463 ERROR [stderr] (pool-14-thread-1) Exception in thread
 pool-14-thread-1 java.lang.LinkageError:
 com/ning/http/client/providers/netty/NettyAsyncHttpProvider
 16:33:54,464 ERROR [stderr] (pool-14-thread-1)  at
 org.sonatype.maven.wagon.AhcWagon.openConnectionInternal(AhcWagon.java:150)
 16:33:54,464 ERROR [stderr] (pool-14-thread-1)  at
 org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
 16:33:54,471 ERROR [stderr] (pool-14-thread-1)  at
 org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
 16:33:54,472 ERROR [stderr] (pool-14-thread-1)  at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector.connectWagon(WagonRepositoryConnector.java:345)
 16:33:54,473 ERROR [stderr] (pool-14-thread-1)  at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector.pollWagon(WagonRepositoryConnector.java:385)
 16:33:54,473 ERROR [stderr] (pool-14-thread-1)  at

 org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:571)
 16:33:54,474 ERROR [stderr] (pool-14-thread-1)  at

 org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
 16:33:54,474 ERROR [stderr] (pool-14-thread-1)  at

 java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 16:33:54,474 ERROR [stderr] (pool-14-thread-1)  at

 java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 16:33:54,475 ERROR [stderr] (pool-14-thread-1)  at
 java.lang.Thread.run(Thread.java:722)


 I also try to upload my parent pom ... but I get an error message The JAR
 does not contain a valid pom ... of course it's not a JAR, it's just a
 pom.xml

 Can someone give me some hints on how to do this ?

 Can I workaround and do a mvn install to put the JAR in the REPO under
 WIDLFLY_HOME/bin/repositories/kie ?

 Any help or hint would be appreciated.


 Regards
 -JPS




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/drools-wb-6-1-0-CR1-wildfly-error-when-upload-jar-M2-Repo-tp4030276.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] condition on size of list

2014-07-09 Thread Michael Anstis
Yes.

Create a BRL Condition column and use an expression on the List pattern.

Sent on the move
On 9 Jul 2014 19:21, Sumit Dhaniya sumitdhan...@gmail.com wrote:

 I know we can check size of list if we write free form drl but is it
 possible
 to use size of the list as condition in guided decision table?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/condition-on-size-of-list-tp4030283.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] How to migrate data from Guvnor 5.1.1 to 5.3.3.Final version.

2014-07-02 Thread Michael Anstis
The only solution that could work is to export your repository from 5.1.1
and import into 5.3.3.

You'll loose all history though.


On 2 July 2014 10:45, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:

 Hi ,

 I need information on how to migrate existing repository from Guvnor 5.1.1
 to 5.3.3.Final version.

 Currently i am using Guvnor 5.1.1 version and data is stored in Oracle
 database. I am moving to Guvnor 5.3.3.Final version.
 I would like to migrate the existing data from Guvnor 5.1.1 to 5.3.3.Final
 instance.

 One way i see is export from Guvnor 5.1.1 and import the exported xml in
 Guvnor 5.3.3.Final instance.

 Is there any other way to migrate the data?

 Regards,
 Lakshmi Reddy

 ___
 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] Usage of java.util.List in Drools Guvnor 5.5.0

2014-07-02 Thread Michael Anstis
Do you insert a List into working memory?


On 2 July 2014 11:22, Rajeswari rajesw...@raremile.com wrote:

 Created a Model in Guvnor 5.5.0 with 3 fields - 2 Text, 1 java.util.List
 The model is verified and validated - correctly.
 Source looks like below
 declare FormatConfig
 fieldName: String
 regEx: String
 regExPatterns: java.util.List
 end

 While trying to create a Business Rule using the above created Model. The
 rule gets fired and works fine.
 rule MyFormat
 dialect mvel
 when
 config : FormatConfig( fieldName == AMOUNT )
 then
 config.setRegEx( 123 );
  retract( config );
 end

 But, the moment I try to use the List, by only declaring a List in the
 When section, the rule stops working.
 rule MyFormat
 dialect mvel
 when
 config : FormatConfig( fieldName == AMOUNT )
 regExPatterns1: java.util.List ( )
 then
 config.setRegEx( 123 );
  retract( config );
 end

 My final intention is to modify the regExPatterns list in the THEN block




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217.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] Usage of java.util.List in Drools Guvnor 5.5.0

2014-07-02 Thread Michael Anstis
So your FormatConfig object contains a list that you need access to?

rule MyFormat
dialect mvel
when
config : FormatConfig( fieldName == AMOUNT, $l : listField )
then
$l.doWhatEverYouWant();
config.setRegEx( 123 );
 retract( config );
end


On 2 July 2014 12:05, Rajeswari rajesw...@raremile.com wrote:

 Hi,
 I need to modify the List field in my Config object.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217p4030222.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] Usage of java.util.List in Drools Guvnor 5.5.0

2014-07-02 Thread Michael Anstis
Add the field to the pattern (as you have done for fieldName) and then
enter a variable name for the field (you might need to add a list != null
constraint, I can't remember)


On 2 July 2014 12:18, Rajeswari rajesw...@raremile.com wrote:

 Thanks
 How can I do this in Business Rule Editor.
 I should be able to use the editor instead of free form DRL



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Usage-of-java-util-List-in-Drools-Guvnor-5-5-0-tp4030217p4030224.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] BRMS Build Deploy

2014-06-30 Thread Michael Anstis
I assume Nexus requires authentication.

You'll need to configure this in Maven's settings.xml on the server you're
running the workbench.

Maven's user guide contains details of how to configure permissions for
remote servers in settings.xml.


On 30 June 2014 08:18, 706826 zahid.ah...@emirates.com wrote:

 Hi Manstis, Its working now with ARCHIVA as maven repo manager. BUT its not
 working with SONATYPE NEXUS as maven repo manager.

 Whenever I do build and deploy from the workbench it gives *Buid Failed*
 error and the log says *401 Unauthorized*




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/rules-users-BRMS-Build-Deploy-tp4030153p4030195.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] BRMS Build Deploy

2014-06-30 Thread Michael Anstis
Please can you give some more information?

Where/how have you configured the workbench to attempt to deploy to Nexus
as opposed to it's internal maven repository?


On 30 June 2014 09:24, 706826 zahid.ah...@emirates.com wrote:

  Yes, that’s I have already configured as follows,



 server

 idbpmassets/id


 usernamedeployment/username


 passwordjbossadmin/password

 /server





 *From:* manstis [via Drools] [mailto:ml-node+[hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030197i=0]
 *Sent:* 30 June 2014 12:23
 *To:* Zahid Ahmed

 *Subject:* Re: [rules-users] BRMS Build  Deploy



 I assume Nexus requires authentication.



 You'll need to configure this in Maven's settings.xml on the server you're
 running the workbench.



 Maven's user guide contains details of how to configure permissions for
 remote servers in settings.xml.



 On 30 June 2014 08:18, 706826 [hidden email]
 http://user/SendEmail.jtp?type=nodenode=4030196i=0 wrote:

 Hi Manstis, Its working now with ARCHIVA as maven repo manager. BUT its not

 working with SONATYPE NEXUS as maven repo manager.

 Whenever I do build and deploy from the workbench it gives *Buid Failed*
 error and the log says *401 Unauthorized*




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/rules-users-BRMS-Build-Deploy-tp4030153p4030195.html

 Sent from the Drools: User forum mailing list archive at Nabble.com.

 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4030196i=1
 https://lists.jboss.org/mailman/listinfo/rules-users




 ___
 rules-users mailing list
 [hidden email] http://user/SendEmail.jtp?type=nodenode=4030196i=2
 https://lists.jboss.org/mailman/listinfo/rules-users
  --

 *If you reply to this email, your message will be added to the discussion
 below:*


 http://drools.46999.n3.nabble.com/rules-users-BRMS-Build-Deploy-tp4030153p4030196.html

 To unsubscribe from [rules-users] BRMS Build  Deploy, click here.
 NAML
 http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 --
 View this message in context: RE: [rules-users] BRMS Build  Deploy
 http://drools.46999.n3.nabble.com/rules-users-BRMS-Build-Deploy-tp4030153p4030197.html

 Sent from the Drools: User forum mailing list archive
 http://drools.46999.n3.nabble.com/Drools-User-forum-f47000.html 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] BRMS Build Deploy

2014-06-30 Thread Michael Anstis
OK, so this confirms you have your project configured to use bpmassets in
it's distributionManagement section and that you're having a 401 issue.

What do you have in your settings.xml? This, unfortunately, is moving
towards possibly a Nexus issue (IDK what form it expects the authentication
details to be provided).

You state it works OK with another Maven installation so I don't feel it's
currently an issue with the workbench.


On 30 June 2014 10:12, 706826 zahid.ah...@emirates.com wrote:

 http://drools.46999.n3.nabble.com/file/n4030199/user-Roles.png
 http://drools.46999.n3.nabble.com/file/n4030199/repository.png

 *Error Log.*
  [0m [0m09:09:49,526 INFO
 [org.drools.compiler.kie.builder.impl.KieRepositoryImpl]
 (http-/0.0.0.0:8080-9) KieModule was added:MemoryKieModule[
 ReleaseId=netsolace:netsolaceproj:1.0]
  [0m [31m09:09:49,800 ERROR
 [org.guvnor.common.services.builder.BuildServiceImpl] (http-/0.0.0.0:8080
 -9)
 org.sonatype.aether.deployment.DeploymentException: Failed to deploy
 artifacts: Could not transfer artifact netsolace:netsolaceproj:jar:1.0
 from/to bpmassets
 (http://lnxdevvm565:8880/nexus/content/repositories/bpmassets): Failed to
 transfer file:

 http://lnxdevvm565:8880/nexus/content/repositories/bpmassets/netsolace/netsolaceproj/1.0/netsolaceproj-1.0.jar
 .
 Return code is: 401, ReasonPhrase:Unauthorized.:
 java.lang.RuntimeException:
 org.sonatype.aether.deployment.DeploymentException: Failed to deploy
 artifacts: Could not transfer artifact netsolace:netsolaceproj:jar:1.0
 from/to bpmassets
 (http://lnxdevvm565:8880/nexus/content/repositories/bpmassets): Failed to
 transfer file:

 http://lnxdevvm565:8880/nexus/content/repositories/bpmassets/netsolace/netsolaceproj/1.0/netsolaceproj-1.0.jar
 .
 Return code is: 401, ReasonPhrase:Unauthorized.
 at

 org.guvnor.m2repo.backend.server.GuvnorM2Repository.deployArtifact(GuvnorM2Repository.java:280)
 [guvnor-m2repo-editor-backend-6.1.0.CR1.jar:6.1.0.CR1]
 at

 org.guvnor.m2repo.backend.server.GuvnorM2Repository.deployArtifact(GuvnorM2Repository.java:163)
 [guvnor-m2repo-editor-backend-6.1.0.CR1.jar:6.1.0.CR1]
 at

 org.guvnor.m2repo.backend.server.GuvnorM2Repository$Proxy$_$$_WeldClientProxy.deployArtifact(GuvnorM2Repository$Proxy$_$$_WeldClientProxy.java)
 [guvnor-m2repo-editor-backend-6.1.0.CR1.jar:6.1.0.CR1]
 at

 org.guvnor.m2repo.backend.server.M2RepoServiceImpl.deployJar(M2RepoServiceImpl.java:52)
 [guvnor-m2repo-editor-backend-6.1.0.CR1.jar:6.1.0.CR1]
 at

 org.guvnor.m2repo.backend.server.M2RepoServiceImpl$Proxy$_$$_WeldClientProxy.deployJar(M2RepoServiceImpl$Proxy$_$$_WeldClientProxy.java)
 [guvnor-m2repo-editor-backend-6.1.0.CR1.jar:6.1.0.CR1]
 at

 org.guvnor.common.services.builder.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:103)
 [guvnor-project-builder-6.1.0.CR1.jar:6.1.0.CR1]
 at

 org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.buildAndDeploy(BuildServiceImpl$Proxy$_$$_WeldClientProxy.java)
 [guvnor-project-builder-6.1.0.CR1.jar:6.1.0.CR1]
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 [rt.jar:1.7.0_25]
 at

 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
 [rt.jar:1.7.0_25]
 at

 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 [rt.jar:1.7.0_25]
 at java.lang.reflect.Method.invoke(Method.java:606)
 [rt.jar:1.7.0_25]
 at

 org.jboss.errai.bus.server.io.AbstractRPCMethodCallback.invokeMethodFromMessage(AbstractRPCMethodCallback.java:48)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at

 org.jboss.errai.bus.server.io.ValueReplyRPCEndpointCallback.callback(ValueReplyRPCEndpointCallback.java:22)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at

 org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at

 org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:499)
 [errai-weld-integration-2.4.4.Final.jar:2.4.4.Final]
 at
 org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at

 org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:284)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at

 org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at

 org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:97)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at

 org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:114)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at

 org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:140)
 [errai-bus-2.4.4.Final.jar:2.4.4.Final]
 at 

Re: [rules-users] Is there an option to import the drl file in kie-drools-wb-distribution-6.0.1.Final version UI?

2014-06-27 Thread Michael Anstis
You can push DRL to the GIT repository from any external tool.



On 27 June 2014 08:10, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:

 Hi,

 Can we import the drl file in  kie-drools-wb-distribution-6.0.1.Final
 version, I see only create the DRL option and not import option?
 AUTHORING - PROJECT AUTHORING -  NEW ITEM - DRL File

 Is there an option to import the drl file?


 Regards,
 Lakshmi Reddy

 ___
 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] BRMS Build Deploy

2014-06-26 Thread Michael Anstis
I can't remember in which version it was fixed, but Build  Deploy now
honours the distributionManagement section in a project's pom and
applicable server configuration in settings.xml

The fix was made March/April 2014 and hence will be in 6.1.0.CR1.


On 26 June 2014 04:24, Zahid Ahmed zahid.ah...@emirates.com wrote:

  Hi,



 I have a related question. When I do build and deploy, WB generates maven
 artifacts in a local repository (a directory defined as localRepository
 in settings.xml).



 *Problem*

 I am expecting WB to deploy it to the remote repository *which it is not
 doing.* I have done following configuration in maven setting.xml and
 project’s pom.xml.



 Kindly let me know if I am missing any configuration.



 *Pom.xml*

 *?xml version=1.0 encoding=UTF-8?*

 *project xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd
 http://maven.apache.org/xsd/maven-4.0.0.xsd *

 *xmlns=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/POM/4.0.0*

 *xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
 http://www.w3.org/2001/XMLSchema-instance*

  * modelVersion4.0.0/modelVersion*



 *  groupIdemiGrp/groupId*

 *  artifactIdemiProj/artifactId*

 *  version1.0/version*



 *  nameemiProj/name*



 *distributionManagement*

 *repository*

 *iddroolssix/id*

 *urlhttp://localhost:6900/archiva/repository/droolssix
 http://localhost:6900/archiva/repository/droolssix/url*

 */repository*

 */distributionManagement*



 *repositories*

 *repository*

 *iddroolssix/id*

 *namedroolssix/name*

 *urlhttp://localhost:6900/archiva/repository/droolssix/
 http://localhost:6900/archiva/repository/droolssix//url*

 */repository*

 */repositories*

 */project*







 *Settngs.xml*

 *settings xmlns=http://maven.apache.org/SETTINGS/1.1.0
 http://maven.apache.org/SETTINGS/1.1.0
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
 http://www.w3.org/2001/XMLSchema-instance*

 *  xsi:schemaLocation=http://maven.apache.org/SETTINGS/1.1.0
 http://maven.apache.org/SETTINGS/1.1.0
 http://maven.apache.org/xsd/settings-1.1.0.xsd
 http://maven.apache.org/xsd/settings-1.1.0.xsd*



 *localRepositoryd:\localMaven\Repo/localRepository*



 *servers*

 *server*

 *iddroolssix/id*

 *
 usernameadmin/username*

 *
 password$admin123$/password*

 */server*

 */servers*

 */settings*







 Regards,

 Zahid



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* 25 June 2014 18:46
 *To:* Rules Users List
 *Subject:* Re: [rules-users] BRMS Build  Deploy



 OK, so I didn't read your email properly :(



 There is a REST API to build and deploy programmatically; see the User
 Guide for details:
 http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/wb.WorkbenchIntegration.html#drools.WorkbenchRemoteAPI



 On 25 June 2014 15:07, Michael Anstis michael.ans...@gmail.com wrote:

 Build+Deploy builds everything in your project (rules, processes etc) into
 a KJAR and deploys them to the workbench's maven repository.



 If you're running kie-wb then there is also the notion of deploying a KJAR
 to the jBPM runtime.. but I don't know the exact mechanism (I've BCC'ed
 some colleagues who can help you).



 On 25 June 2014 14:05, Shrinath Managuli shrinath.manag...@aspiresys.com
 wrote:

   Hi Drools,



 Is it possible to automate the Build  Deploy processes in BRMS?





 Thanks,

 Shrinath

 [image: Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.

 [image: Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.



 ___
 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

[rules-users] Fwd: Regarding drools 6 workbench

2014-06-26 Thread Michael Anstis
-- Forwarded message --
From: Ganesh Neelekani ganeshneelek...@gmail.com
Date: 26 June 2014 06:35
Subject: Re: Regarding drools 6 workbench

I am facing some strange issue if you use webservice Unknown kieSession
name:ksession-rules if use @webservice, Do I need to change code if you I
use webservice

Please follow up in below link
http://drools.46999.n3.nabble.com/quot-Unknown-KieSession-name-ksession-rules-if-we-use-webservice-td4030016.html

Thanking you.
--
With regards.
Ganesh N Neelekani
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] BRMS Build Deploy

2014-06-25 Thread Michael Anstis
Build+Deploy builds everything in your project (rules, processes etc) into
a KJAR and deploys them to the workbench's maven repository.

If you're running kie-wb then there is also the notion of deploying a KJAR
to the jBPM runtime.. but I don't know the exact mechanism (I've BCC'ed
some colleagues who can help you).


On 25 June 2014 14:05, Shrinath Managuli shrinath.manag...@aspiresys.com
wrote:

  Hi Drools,



 Is it possible to automate the Build  Deploy processes in BRMS?





 Thanks,

 Shrinath

 [image: Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.
  [image: Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.

 ___
 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] BRMS Build Deploy

2014-06-25 Thread Michael Anstis
OK, so I didn't read your email properly :(

There is a REST API to build and deploy programmatically; see the User
Guide for details:
http://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/wb.WorkbenchIntegration.html#drools.WorkbenchRemoteAPI


On 25 June 2014 15:07, Michael Anstis michael.ans...@gmail.com wrote:

 Build+Deploy builds everything in your project (rules, processes etc) into
 a KJAR and deploys them to the workbench's maven repository.

 If you're running kie-wb then there is also the notion of deploying a KJAR
 to the jBPM runtime.. but I don't know the exact mechanism (I've BCC'ed
 some colleagues who can help you).


 On 25 June 2014 14:05, Shrinath Managuli shrinath.manag...@aspiresys.com
 wrote:

  Hi Drools,



 Is it possible to automate the Build  Deploy processes in BRMS?





 Thanks,

 Shrinath

 [image: Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.
  [image: Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.

 ___
 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] Getting Error while building the war from kie-wb-distributions-master source code

2014-06-23 Thread Michael Anstis
This is a known issue with building from the command line on Windows (it is
a Windows limitation on the maximum length of the command line).

If you're using IDEA you can create a classpath JAR that packages the
classpath into a JAR and uses this to build/compile/run.

We have the issue on our to do list (to create a maven profile that
creates a classpath JAR; but we have not had the time at present to
implement a solution.

If any community member wants to help we would be indebted.

With kind regards,

Mike


On 23 June 2014 11:08, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:


 Hi ,

 I am trying to run mvn clean install on the kie-wb-distributions-master
 source code, getting the below error.Please find the attachment for more
 details on the error.


 C:\Users\reddyl\RECOSYS\BRMS6\kie-wb\kie-wb-webapp\target\.
 generated, *org.kie.workbench.FastCompiledKIEWebapp]: Error while
 executing process. Cannot run program C:\Program
 Files\Java\jdk1.6.0_27\jre\bin\java*
 *: CreateProcess error=206, The filename or extension is too long*


 could you please let me know any workaround on this issue?

 Regards,
 Lakshmi Reddy

 ___
 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] Need help in build the war file from the guvnor-6.0.1.Final source code

2014-06-20 Thread Michael Anstis
Guvnor is only a small component of the Drools Workbench.

See
http://blog.athico.com/2013/06/goodbye-guvnor-hello-drools-workbench.html

If you're looking for the WARs you can use
kie-wb-distributions/kie-drools-wb:
https://github.com/droolsjbpm/kie-wb-distributions/tree/master/kie-drools-wb

kie-wb-distributions WARs are a composition of code for the different
screens and editors etc from other modules.

If you want to change an editor etc then the source code will be in either
guvnor, kie-wb-common or drools-wb (or somewhere else depending on what you
want to amend).

With kind regards,

Mike


On 20 June 2014 10:34, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:

 Hi,

 Need help in build the war file from the guvnor-6.0.1.Final source code. I
 downloaded the guvnor-6.0.1.Final.zip and extracted it, i see the following
 folders in it.

  guvnor-inbox
  guvnor-m2repo-editor
  guvnor-project
  guvnor-services-api
  guvnor-services-backend
  guvnor-workset-api
  guvnor-workingset-clent
  src

  I ran the maven command(mvn install -DskipTests=true) in the mail folder
 guvnor-6.0.1.Final, it ran successfully and generate jar files.
  I did not find the target to build war in any of the pom.xml files.

  If anybody knows how to build war from the guvnor-6.0.1.Final source
 code, please pass me the information.
  If need to change the any pom.xml please let me know.

  Regards,
  Lakshmi Reddy

 ___
 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] Need help in build the war file from the guvnor-6.0.1.Final source code

2014-06-20 Thread Michael Anstis
Authentication is handled by UberFire.

You'll need to clone https://github.com/uberfire/uberfire and look at
modifying/re-using one of the authorization classes
https://github.com/uberfire/uberfire/tree/master/uberfire-security/uberfire-security-server/src/main/java/org/uberfire/security/server/auth.


I've BCC'ed a colleague who has more knowledge of SSO (I think he's helped
others with the same question).

The logo can be modified here
https://github.com/droolsjbpm/kie-wb-distributions/blob/master/kie-drools-wb/kie-drools-wb-webapp/src/main/java/org/kie/workbench/drools/client/navbar/LogoWidgetView.ui.xml
but
you'll need to be more specific about other customization(s).



On 20 June 2014 12:09, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:

 Hi Micheal,

 Thanks for reply.
 I am not sure i am going in right direction.I am new to BRMS and drools.
 I have deployed the deployment which is presented in the below mentioned
 zip file.
 jboss-brms-6.0.1.GA-redhat-4-deployable-generic.

 Now , I need the source code for the above version so that i can change
 few chnages like adding single sign on , logo, few other customization and
 build application to deploy with these changes.

 Any points on from where can i get the source code for the same?.

 Thank you.


 Regards,
 Lakshmi Reddy



 On Fri, Jun 20, 2014 at 3:25 PM, Michael Anstis michael.ans...@gmail.com
 wrote:

 Guvnor is only a small component of the Drools Workbench.

 See
 http://blog.athico.com/2013/06/goodbye-guvnor-hello-drools-workbench.html

 If you're looking for the WARs you can use
 kie-wb-distributions/kie-drools-wb:
 https://github.com/droolsjbpm/kie-wb-distributions/tree/master/kie-drools-wb

 kie-wb-distributions WARs are a composition of code for the different
 screens and editors etc from other modules.

 If you want to change an editor etc then the source code will be in
 either guvnor, kie-wb-common or drools-wb (or somewhere else depending on
 what you want to amend).

 With kind regards,

 Mike


 On 20 June 2014 10:34, LaKhI ReDdY!!! reddy.laks...@gmail.com
 wrote:

 Hi,

 Need help in build the war file from the guvnor-6.0.1.Final source code.
 I downloaded the guvnor-6.0.1.Final.zip and extracted it, i see the
 following folders in it.

  guvnor-inbox
  guvnor-m2repo-editor
  guvnor-project
  guvnor-services-api
  guvnor-services-backend
  guvnor-workset-api
  guvnor-workingset-clent
   src

  I ran the maven command(mvn install -DskipTests=true) in the mail
 folder guvnor-6.0.1.Final, it ran successfully and generate jar files.
  I did not find the target to build war in any of the pom.xml files.

  If anybody knows how to build war from the guvnor-6.0.1.Final source
 code, please pass me the information.
  If need to change the any pom.xml please let me know.

  Regards,
  Lakshmi Reddy

 ___
 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] Need BRMS migration tool download zip file location to download

2014-06-18 Thread Michael Anstis
Download the Drools Workbench distribution from the Drools download page on
the Drools website. It is in that zip file (jcr2vfs migration).

Sent on the move
On 19 Jun 2014 06:36, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:

 Hi ,

 I need to migrate repository from BRMS 5.1.1 to BRMS 6.0.1.
 In BRMS 6.0.1 Administration And Configuration Guide , i read we can do
 migrating using data migration tool.
 I could not able to find where this migration tool download zip available.

 IF anybody knows, please provide me the path/location/url to download the
 migration tool zip file?

 Thanks,
 Lakshmi Reddy


 ___
 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] Need help in understanding Data enumeration’s drop down list configuration

2014-06-17 Thread Michael Anstis
What happens if you click on the pencil next to equal to dropdown and
select literal value?

This is when you should see the enum list.


On 17 June 2014 10:00, Shrinath Managuli shrinath.manag...@aspiresys.com
wrote:

  Hi Drools,



 Need help in understanding Data enumeration’s drop down list configuration,



 I had created a simple data enumeration as,





 For this, I also created a *Customer* object with a *code* field as
 String at *org.kie.example.project1* package.



 While creating guided rule, I’m unable to view the enumeration as drop
 down as like below,





 I had tried this scenario with JBoss BRMS 6. Please help me to understand
 on how to populate the drop down using data enumeration.



 Thanks,

 srinath
  [image: Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.

 ___
 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.6 Decision Table VLookup

2014-06-17 Thread Michael Anstis
Is the VLOOKUP in the same sheet?

I think there are problems with Apache POI resolving formulas across
different worksheets (but am guessing based on some other changes we had to
make regarding linked workbooks).


On 17 June 2014 16:36, gboro54 gbor...@gmail.com wrote:

 Is there a way to have a decision table behave with a vloopup? Basically we
 have a metadata column which the user can select from a drop down. This
 then
 drives the values of the action columns. This works except that instead of
 the value of the vlookup I see the actual vlookup text(i.e something like
 VLOOKUP(F11)).

 Is this possible?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/5-6-Decision-Table-VLookup-tp4030082.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.6 Decision Table VLookup

2014-06-17 Thread Michael Anstis
That then is indeed a bug.

Can you please raise a DROOLS JIRA and attach a unit test demonstrating the
problem (preferably please submit your unit test as a Pull Request)?

We're always on the look out for community contributions, so if you want to
tackle a fix it would be appreciated; otherwise we'll add the JIRA to the
list to look at some time.

With kind regards,

Mike




On 17 June 2014 17:25, gboro54 gbor...@gmail.com wrote:

 They are different sheets.  Basically we have a our tables on sheet 1 and
 sheet 2 is populated from an import of data from an external datasource to
 allow a vlookup of information(so the business user can see the data/and we
 can maintain it)


 manstis wrote
  Is the VLOOKUP in the same sheet?
 
  I think there are problems with Apache POI resolving formulas across
  different worksheets (but am guessing based on some other changes we had
  to
  make regarding linked workbooks).
 
 
  On 17 June 2014 16:36, gboro54 lt;

  gboro54@

  gt; wrote:
 
  Is there a way to have a decision table behave with a vloopup? Basically
  we
  have a metadata column which the user can select from a drop down. This
  then
  drives the values of the action columns. This works except that instead
  of
  the value of the vlookup I see the actual vlookup text(i.e something
 like
  VLOOKUP(F11)).
 
  Is this possible?
 
 
 
  --
  View this message in context:
 
 http://drools.46999.n3.nabble.com/5-6-Decision-Table-VLookup-tp4030082.html
  Sent from the Drools: User forum mailing list archive at Nabble.com.
  ___
  rules-users mailing list
 

  rules-users@.jboss

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

  rules-users@.jboss

  https://lists.jboss.org/mailman/listinfo/rules-users





 --
 View this message in context:
 http://drools.46999.n3.nabble.com/5-6-Decision-Table-VLookup-tp4030082p4030084.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.6 Decision Table VLookup

2014-06-17 Thread Michael Anstis
Thank-you

Sent on the move
On 17 Jun 2014 20:52, gboro54 gbor...@gmail.com wrote:


 I will work on a test case and create a defect for it. I will see if I
 can't
 get some time to take a look at this myself but will keep you informed
 about
 my status on completing this ticket


 manstis wrote
  That then is indeed a bug.
 
  Can you please raise a DROOLS JIRA and attach a unit test demonstrating
  the
  problem (preferably please submit your unit test as a Pull Request)?
 
  We're always on the look out for community contributions, so if you want
  to
  tackle a fix it would be appreciated; otherwise we'll add the JIRA to the
  list to look at some time.
 
  With kind regards,
 
  Mike
 
 
 
 
  On 17 June 2014 17:25, gboro54 lt;

  gboro54@

  gt; wrote:
 
  They are different sheets.  Basically we have a our tables on sheet 1
 and
  sheet 2 is populated from an import of data from an external datasource
  to
  allow a vlookup of information(so the business user can see the data/and
  we
  can maintain it)
 
 
  manstis wrote
   Is the VLOOKUP in the same sheet?
  
   I think there are problems with Apache POI resolving formulas across
   different worksheets (but am guessing based on some other changes we
  had
   to
   make regarding linked workbooks).
  
  
   On 17 June 2014 16:36, gboro54 lt;
 
   gboro54@
 
   gt; wrote:
  
   Is there a way to have a decision table behave with a vloopup?
  Basically
   we
   have a metadata column which the user can select from a drop down.
  This
   then
   drives the values of the action columns. This works except that
  instead
   of
   the value of the vlookup I see the actual vlookup text(i.e something
  like
   VLOOKUP(F11)).
  
   Is this possible?
  
  
  
   --
   View this message in context:
  
 
 http://drools.46999.n3.nabble.com/5-6-Decision-Table-VLookup-tp4030082.html
   Sent from the Drools: User forum mailing list archive at Nabble.com.
   ___
   rules-users mailing list
  
 
   rules-users@.jboss
 
   https://lists.jboss.org/mailman/listinfo/rules-users
  
  
   ___
   rules-users mailing list
 
   rules-users@.jboss
 
   https://lists.jboss.org/mailman/listinfo/rules-users
 
 
 
 
 
  --
  View this message in context:
 
 http://drools.46999.n3.nabble.com/5-6-Decision-Table-VLookup-tp4030082p4030084.html
  Sent from the Drools: User forum mailing list archive at Nabble.com.
  ___
  rules-users mailing list
 

  rules-users@.jboss

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

  rules-users@.jboss

  https://lists.jboss.org/mailman/listinfo/rules-users





 --
 View this message in context:
 http://drools.46999.n3.nabble.com/5-6-Decision-Table-VLookup-tp4030082p4030086.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] Error while importing repository from Guvnor 5.1.1 to 5.3.3.Final

2014-06-16 Thread Michael Anstis
You could talk to Prakash Aradhya, the Red Hat BRMS Product Manager. I've
cc'ed him on this email.

I don't know how much more than I've said; but Prakash should be able to
assist further.

With kind regards,

Mike



On 16 June 2014 09:52, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:

 Hi Michael,

 Thanks for reply me.
 Do you have any idea about how to get support subscription with Red
 Hat regarding this?
 If you have any idea, could you please share the details with me.


 Regards,
 Lakshmi Reddy


 On Wed, Jun 11, 2014 at 1:56 PM, Michael Anstis michael.ans...@gmail.com
 wrote:

 You're probably going to struggle finding support for migrating Guvnor
 5.1 to 5.3 in the community.

 If you have a support subscription with Red Hat you can probably request
 assistance through your customer support network.

 See
 http://blog.athico.com/2011/04/drools-jbpm-community-versus-product.html


 On 11 June 2014 08:56, LaKhI ReDdY!!! reddy.laks...@gmail.com
 wrote:

 Hi,

 I am trying to import the whole repository from 5.1.1 to 5.3.3.Final
 version.I am getting the below attached error while importing.Please find
 the attached file for error details.

 We have added new functionality(Rule request) in 5.1.1 and using it for
 quite some. Now we want to migrate to 5.3.3.Final and we want to drop the
 additional functionality(Rule Request) which we have added earlier in 5.1.1
 version.

 The repository which we have currently contains the Rule request details
 also, does this causes problem in importing to Guvnor 5.3.3.Final?


 Regards,
 Lakshmi Reddy


 ___
 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




 --
  Reddy
 9008752491

 ___
 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] Error while importing repository from Guvnor 5.1.1 to 5.3.3.Final

2014-06-11 Thread Michael Anstis
You're probably going to struggle finding support for migrating Guvnor 5.1
to 5.3 in the community.

If you have a support subscription with Red Hat you can probably request
assistance through your customer support network.

See http://blog.athico.com/2011/04/drools-jbpm-community-versus-product.html


On 11 June 2014 08:56, LaKhI ReDdY!!! reddy.laks...@gmail.com
wrote:

 Hi,

 I am trying to import the whole repository from 5.1.1 to 5.3.3.Final
 version.I am getting the below attached error while importing.Please find
 the attached file for error details.

 We have added new functionality(Rule request) in 5.1.1 and using it for
 quite some. Now we want to migrate to 5.3.3.Final and we want to drop the
 additional functionality(Rule Request) which we have added earlier in 5.1.1
 version.

 The repository which we have currently contains the Rule request details
 also, does this causes problem in importing to Guvnor 5.3.3.Final?


 Regards,
 Lakshmi Reddy


 ___
 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] Decision Tables and modify

2014-06-11 Thread Michael Anstis
At the momemt 6.x only supports update columns (select an action and
ensure the update engine checkbox is ticked).

You can work around this, to get modify( x ) {...}, by using a BRL Fragment
Action column and use a Free Form DRL Fragment entering the modify syntax.

I am modifying Guided Rules, Guided Templates and Guided Decision Tables to
generate modify syntax instead of update at the moment.

It will be in 6.1.Final for sure.

Did you mean this or the XLS variety? (I'd assume modify to already be
supported as ACTIONs are free format DRL IIRC).

Sent on the move
On 11 Jun 2014 18:56, gboro54 gbor...@gmail.com wrote:

 What is the proper way to do modify in a decision table?  I know this is a
 very generic question but was wondering if anyone has experience with this
 and could offer insight(I have a couple ways I think will work but they
 feel
 a bit hackey)



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Decision-Tables-and-modify-tp4029995.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] Can't clone repository NoSuchElementException

2014-06-11 Thread Michael Anstis
Have you tried a non-bare repo? (I don't know if this will solve the issue
but IIRC we normally use non-bare when testing).

Sent on the move
On 11 Jun 2014 03:46, Parham, Clinton cpar...@biosignia.com wrote:

  Hello,



 I have Drools 6.0.1 installed on RedHat Linux 5 and running under JBoss
 EAP 6.1.1.



 I would like to clone from a local git server running on the same server.
 But when I do so, I get a “Can't clone repository.
 java.util.NoSuchElementException” message in the browser. There are no
 errors in the server.log



 Why doesn’t this work?



 Here’s how I’m running the git daemon:

 $ git daemon --verbose --export-all --port=9419 --base-path=/home/brms/git/



 URL I enter into the Clone Repository dialog:

 git://localhost:9419/test.git



 This is how I setup my repo:



 $ cd /home/brms/git/

 $ mkdir test.git

 $ cd test.git/

 $ git init --bare

 Initialized empty Git repository in /home/brms/git/test.git/



 Thanks,

 Clint




  --

 The contents contained herein may contain confidential information. If you
 are not the intended recipient, you are hereby notified that any
 disclosure, copying, distribution, printing or action taken on the contents
 is strictly prohibited. If you have received this email in error, please
 notify the sender immediately and delete this message.

 ___
 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] Can't clone repository NoSuchElementException

2014-06-11 Thread Michael Anstis
If I read your email correctly you're saying cloning a non-bare repository
works ok provided it has a unique name?

However we should better (a) document a repository cannot be bare if it is
to be cloned into the workbench and (b) validate names of new or cloned
repositories.

If I understand correctly then yes please raise a JIRA for Guvnor.

Thanks,

Mike

Sent on the move
On 11 Jun 2014 21:28, Parham, Clinton cpar...@biosignia.com wrote:

  Hi Michael,



 Ok, some progress.



 Here’s what I’ve found:



 If I first try cloning a bare repo (say I call it “test”), it fails with
 “Can't clone repository. java.util.NoSuchElementException”. So I assume
 nothing happened… but at the file system level I see the “test” repo in the
 drools/brms git folder. It doesn’t show in the BusinessCentral/Guvnor repo
 list.



 If I then try again to clone, using “test” (because I don’t know of the
 conflict) but pull from a populated repo, it still fails with “Can't clone
 repository. java.util.NoSuchElementException”. But this is because “test”
 actually exists at the file system level. If I change my Repo Name to
 something that doesn’t exist in the git folder, it clones just fine.



 Sounds like a bug that should be reported, yes?



 Thanks.



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* Wednesday, June 11, 2014 2:07 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Can't clone repository NoSuchElementException



 Have you tried a non-bare repo? (I don't know if this will solve the issue
 but IIRC we normally use non-bare when testing).

 Sent on the move

 On 11 Jun 2014 03:46, Parham, Clinton cpar...@biosignia.com wrote:

 Hello,



 I have Drools 6.0.1 installed on RedHat Linux 5 and running under JBoss
 EAP 6.1.1.



 I would like to clone from a local git server running on the same server.
 But when I do so, I get a “Can't clone repository.
 java.util.NoSuchElementException” message in the browser. There are no
 errors in the server.log



 Why doesn’t this work?



 Here’s how I’m running the git daemon:

 $ git daemon --verbose --export-all --port=9419 --base-path=/home/brms/git/



 URL I enter into the Clone Repository dialog:

 git://localhost:9419/test.git



 This is how I setup my repo:



 $ cd /home/brms/git/

 $ mkdir test.git

 $ cd test.git/

 $ git init --bare

 Initialized empty Git repository in /home/brms/git/test.git/



 Thanks,

 Clint




  --

 The contents contained herein may contain confidential information. If you
 are not the intended recipient, you are hereby notified that any
 disclosure, copying, distribution, printing or action taken on the contents
 is strictly prohibited. If you have received this email in error, please
 notify the sender immediately and delete this message.


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

 The contents contained herein may contain confidential information. If you
 are not the intended recipient, you are hereby notified that any
 disclosure, copying, distribution, printing or action taken on the contents
 is strictly prohibited. If you have received this email in error, please
 notify the sender immediately and delete this message.

 ___
 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] Drools Workbench - Cloning a local Repo Gives “Invalid remote: origin”

2014-06-10 Thread Michael Anstis
I tried with the latest codebase and could clone a repository on my local
filesystem without problem (the path needs to be the folder containing the
git repository's .git folder).

As for your architecture; we don't support what you describe - which
appears to be a distributed git installation with automatic synchronization
of commits between the two.

Changes you make to files within Drools Workbench installation 1 (using
the cloned repository REPO-A-Cloned-1) will only appear in the clone.

You will need to handle a mechanism to push the commits made there to it's
origin (i.e. REPO-A) and synchronization to REPO-A-Clone-2.

Google returns links to server-side scripts you can run to synchronize
different GIT repositories; however you'll probably encounter merge
conflicts if a single file was modified in both clones.

With kind regards,

Mike


On 10 June 2014 09:33, Zahid Ahmed zahid.ah...@emirates.com wrote:



 @Michael



 Due to this error it’s not cloning it. Below is the architecture in which
 I am deploying the Workbench. Two Workbench instances, one central GIT repo
 and One central Maven Repo (Details as below)



 My architecture for Drools deployment is we will deploy two Drools
 Workbench instances. We will create one central GIT repository, REPO-A.git,
 which will be cloned by both the instances, REPO-A-Cloned-1,
 REPO-A-Cloned-2. If any file is committed in instance A, REPO-A-Cloned-1,
 should also appear in instance B, REPO-A-Cloned-2, and that asset should
 also appear in central repo, REPO-A.



 Regards,

 Zahid











 *From:* rules-users-boun...@lists.jboss.org [
 mailto:rules-users-boun...@lists.jboss.org
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* 08 June 2014 14:36
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Drools Workbench - Cloning a local Repo
 Gives “Invalid remote: origin”



 You won't need a user id or password.

 The remote origin error message is thrown by the underlying jgit library
 we use.

 Any repository that is cloned is considered a remote in git terms. The
 fact that it's on your local machine makes no difference in git terms.

 Sent on the move

 On 8 Jun 2014 11:07, Zahid Ahmed zahid.ah...@emirates.com wrote:

 Hi,



 I am trying to clone a repo in Drools WorkBench and getting the following
 error,



 *Can't clone repository. java.lang.RuntimeException:Invalid remote:
 origin*



 The repository which I am cloning, *resides in my local machine*.
 D:/Servers/Drools-6-Deployment/repo/repoA.git



 Following are the inputs I am providing to WorkBench clone Wizard,



 Repository Name   = repoCloned Organizational Unit = inTech

 GIT URL  =
 file:///D:/Servers/Drools-6-Deployment/repo/repoA.git

 User Name   =  (Currently I am giving my github
 account cred. What to give in user name?)

 Password  =  (Currently I am giving my github
 account cred. What to give as password?)



 *Question 1*

 Why am I getting remote origin error when I am cloning from a local GIT
 repository ?



 *Question 2*

 Kindly let me know what to give as User Name and Password when I am
 cloning from an existing GIT repo in my local filesystem ?







 Regards,

 Zahid Ahmed








 ___
 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] Drools Workbench - Cloning a local Repo Gives “Invalid remote: origin”

2014-06-08 Thread Michael Anstis
You won't need a user id or password.

The remote origin error message is thrown by the underlying jgit library we
use.

Any repository that is cloned is considered a remote in git terms. The
fact that it's on your local machine makes no difference in git terms.

Sent on the move
On 8 Jun 2014 11:07, Zahid Ahmed zahid.ah...@emirates.com wrote:

  Hi,



 I am trying to clone a repo in Drools WorkBench and getting the following
 error,



 *Can't clone repository. java.lang.RuntimeException:Invalid remote:
 origin*



 The repository which I am cloning, *resides in my local machine*.
 D:/Servers/Drools-6-Deployment/repo/repoA.git



 Following are the inputs I am providing to WorkBench clone Wizard,



 Repository Name   = repoCloned Organizational Unit = inTech

 GIT URL  =
 file:///D:/Servers/Drools-6-Deployment/repo/repoA.git

 User Name   =  (Currently I am giving my github
 account cred. What to give in user name?)

 Password  =  (Currently I am giving my github
 account cred. What to give as password?)



 *Question 1*

 Why am I getting remote origin error when I am cloning from a local GIT
 repository ?



 *Question 2*

 Kindly let me know what to give as User Name and Password when I am
 cloning from an existing GIT repo in my local filesystem ?







 Regards,

 Zahid Ahmed







 ___
 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] Drools-6 WB | Why Database is Required for Indexing When GIT repo is available

2014-06-03 Thread Michael Anstis
Indexes are stored in Lucene's database which we configure to also be
file system based.

So the documentation is a little misleading - we don't use nor do you need
a classical RDBMS system.

Sent on the move
On 3 Jun 2014 04:49, Zahid Ahmed zahid.ah...@emirates.com wrote:

  Hi,



 In Drools-6 documentation its mentioned that,



 *“Everything is now stored as a file, including meta data. The database is
 only there to provide fast indexing and search. So importing and exporting
 is all standard Git and external sites, like GitHub, can be used to
 exchange repositories.” **(Reference : drools-docs.pdf : 2.3. New and
 Noteworthy in KIE Workbench 6.0.0)*



 I want to know that why its required to store indexes in database, when we
 already have a repository with us, indexes could have been saved in the GIT
 repository itself. If we need database then now we need a license for
 database also.



 After reading this I am looking for database configurations in the
 documentation but I am not able to find it in the documentation.  Where to
 configure it ? In GIT ? or in Workbench ?





 Regards,

 Zahid



 ___
 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] mvn deploy to workbench fails: Return code is: 405, ReasonPhrase:Method Not Allowed.

2014-06-03 Thread Michael Anstis
This is a missing feature - it looks like we're only setup to serve content
from the Workbench's Maven repository; not accept new content.

Could you please raise a GUVNOR JIRA (https://issues.jboss.org/browse/GUVNOR)
requesting this to be provided?

Thanks.


On 28 May 2014 14:51, jmterrettaz jean-marc.terret...@sbb.ch wrote:

 Hi
 I have installed the Drools Workbench
 kie-drools-wb-distribution-wars-6.0.1.Final-jboss-as7.0.war on JBoss EAP
 6.2. When I try to do a mvn deploy to the workbench it fails with Return
 code is: 405, ReasonPhrase:Method Not Allowed.
 Here the distributionManagement section of the POM:

 distributionManagement
 repository
 idguvnor-m2-repo/id
 urlhttp://localhost:8080/kie-drools-wb/maven2/
 /url
 /repository
 /distributionManagement

 I also defined the server as follow in my settings.xml :

 servers
 server
 idguvnor-m2-repo/id
 configuration
 httpHeaders
 property
 nameAuthorization/name

 valueBasic
 xxxoffuscatedx =/value
 /property
 /httpHeaders
 /configuration
 /server
 /servers

 If I give a wrong Authorization value there I get a 401 non authorized, so
 I
 think the server is correctly configured.

 In wireshark I see that an HTTP PUT call is made and the answer is:

 HTTP/1.1 405 Method Not Allowed
 Server: Apache-Coyote/1.1
 Pragma: No-cache
 Cache-Control: no-cache
 Expires: Thu, 01 Jan 1970 01:00:00 CET
 Content-Type: text/html;charset=utf-8
 Content-Length: 1176
 Date: Wed, 28 May 2014 12:00:44 GMT

 htmlheadtitleJBoss Web/7.2.2.Final-redhat-1 - JBWEB64: Error
 report/title /headbody
 JBWEB65: HTTP Status 405 - HTTP method PUT is not supported by this URL
 HR size=1 noshade=noshadep*JBWEB000309: type* JBWEB67: Status
 report/pp*JBWEB68: message* uHTTP method PUT is not supported by
 this URL/u/pp*JBWEB69: description* uJBWEB000125: The specified
 HTTP method is not allowed for the requested resource./u/pHR size=1
 noshade=noshade
 JBoss Web/7.2.2.Final-redhat-1
 /body/html

 in a more readable format:

 JBWEB65: HTTP Status 405 - HTTP method PUT is not supported by this URL

 JBWEB000309: type JBWEB67: Status report
 JBWEB68: message HTTP method PUT is not supported by this URL
 JBWEB69: description JBWEB000125: The specified HTTP method is not
 allowed for the requested resource.

 JBoss Web/7.2.2.Final-redhat-1

 Can someone help? Thanks.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/mvn-deploy-to-workbench-fails-Return-code-is-405-ReasonPhrase-Method-Not-Allowed-tp4029737.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] About the Quest Of : How to push changes to cloned repo onKie-Workbench

2014-06-03 Thread Michael Anstis
If you want to push back to a Workbench's git repository you'll need to
clone with ssh://user_name@repository_url. The URL can be obtained from
the Administration Perspective.

I know many others have been able to clone with SSH and push committed
changes back to the workbench using this approach successfully.



On 25 May 2014 09:04, DonnieDarko chenshen...@qq.com wrote:




 Hi:
 The ori question is here:

 http://drools.46999.n3.nabble.com/How-to-push-changes-to-cloned-repo-on-Kie-Workbench-tp4027264p4029670.html

 It send me this email after I reply it derectly;
 But this question confuse me fo a week, So i answer the email for looking
 more help quickly,forgive me

 After reading the origin prob, I think the question is
 We can clone the project from wb's git server, like
 git clone git://10.101.81.72:9418/uf-playground

 Take attention:
 1.we use the git protocol to clone the git project
 2.it do work well
 3.we use git bash to clone the project(whatever u use other tools: git
 gui, eclipse egit plugin, svn git merger)
 4.we can add files,we can commit local modified, we can create branches,
 but we cannot push the modifies to server/master,we cannot merge branches
 to master
 5.i donot think the kie-config-cli is a good enough tool
 a.i use the jboss-eap-6 as my appserver,there is a exception about
 address is already used when i run the kie-config-cli.sh after i deploy
 Guvnor in the same machine
 b.i meet the same problem about:
 lllpcsd@lllpcsd-VirtualBox:~/drools_git_ws/uf-playground$ git push
 fatal: Could not read from remote repository.
 Please make sure you have the correct access rights
 and the repository exists.

 so
 1.this is about how to config Git security cer in Guvnor workbench
 2.we just want to develop projects with git tool, just want to push/merge
 codes!!!
 3.i don't get more information from the drools's document
 it say:
 org.uberfire.nio.git.ssh.cert.dir: Location of the directory  .security
 where local
 certtificates will be stored. Default: working directory

 and then?
 and then?
 and then?

 we know the .security directory is located $work_dir/.security,
 we cannot get enough information about how to config things about Git's
 SSH key or security trust :

 we know the github.com platform will advance us to set the SSH key to do
 developing works,
 but the Guvnor has no UI function to set this.

 May be I do the wrong thing about clone,
 May be I should clone the code with SSH, how to config ssh is always a
 problem
 May be these are all wrong action about how to use Guvnor correctly

 The drools's document is so powerful and so poor :

 Help

 --
  If you reply to this email, your message will be added to the discussion
 below:

 http://drools.46999.n3.nabble.com/How-to-push-changes-to-cloned-repo-on-Kie-Workbench-tp4027264p4029670.html
  To unsubscribe from How to push changes to cloned repo on Kie-Workbench, 
 click
 here
 http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_codenode=4027264code=Y2hlbnNoZW5nZGFAcXEuY29tfDQwMjcyNjR8LTE4NDA3OTA5NzU=
 .
 NAML
 http://drools.46999.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml

 ___
 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] Workbench: Error after cloning repository

2014-06-03 Thread Michael Anstis
Can you create a repository that you can share to reproduce the problem?

Sent on the move
On 3 Jun 2014 19:10, Steinmetz, Jean-Philippe 
jpsteinm...@theworkshop.us.com wrote:

 Does anyone have an idea why I am getting these compilation errors? This
 is currently blocking me at the moment and I have been able to find a
 solution. Thanks!


 On Fri, May 30, 2014 at 10:51 AM, Steinmetz, Jean-Philippe 
 jpsteinm...@theworkshop.us.com wrote:

 Okay I was able to disable strict-mode using by defining the
 system-property in JBoss. With that and fixing up some of the imports I was
 able to reduce the compilation errors shown in the workbench to just a
 couple.

 The errors I get now are:

 Error importing : 'com.mycompany.MyClassUtils'
 Error importing : 'org.apache.commons.lang3.time.DateUtils'
 [ function isEventOnSameDay (line:18): Only a type can be
 imported. com.mycompany.MyClassUtils resolves to a package
 isEventOnSameDay (line:24): Only a type can be imported.
 org.apache.commons.lang3.time.DateUtils resolves to a package
 isEventOnSameDay (line:36): DateUtils cannot be resolved
 isEventOnSameDay (line:37): DateUtils cannot be resolved
  ]

 The MyClassUtils is a class defined in the same project as the DRL files.
 Therefore, assuming the workbench is also compiling/loading the java files
 in the classloader it should resolve without issue. The DateUtils class is
 a maven dependency and I assume should be loaded by the workbench as well?
 Why would the compiler see these classes as packages?



 ___
 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 storage without Guvnor?

2014-06-02 Thread Michael Anstis
What version are you considering (the reply differs for each).

Sent on the move
On 2 Jun 2014 08:40, Péter Gergely, Horváth h.pe...@mailbox.hu wrote:

 Hello All,

 We are evaluating Drools for our use case and would have a question for
 storing rules files. We are in a relatively constrained environment, where
 getting Guvnor up and running does not seems to be a valid option. Since we
 would only need the core repository functionality so that we can separate
 rule deployment from application deployments (and none of the advanced
 features like online editing etc), I think it would make more sense to have
 a light-weight alternative for storing the rule files.

 Being able to pick up rules from an NFS share of from a database CLOB
 field would be perfectly sufficient for us. I have worked with JBPM4 quite
 a lot, where the core engine contained support for versioned storage of the
 process definitions in the database itself [1].

 Is there any similar feature in Drools, where the rules can be deployed to
 e.g. a database or any other repository solution, (without using Guvnor)? I
 haven't found too much details on this topic, but for me it seems that the
 only approach would be to have some custom logic, which programmatically
 checks for rule updates and re-creates the whole knowledgebase on any
 update. I am wondering whether there is any more sophisticated solution in
 Drools where at least update checking/rule reconfiguration could be
 delegated to the engine.

 Any inputs are appreciated.

 Thanks,
 Peter

 [1]
 http://docs.jboss.com/jbpm/v4/javadocs/org/jbpm/api/RepositoryService.html


 ___
 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] Workbench: Error after cloning repository

2014-05-29 Thread Michael Anstis
Sounds like the pom for the project in the repository you have cloned has a
provided scope dependency on an open office JAR?

Is the CNFE in the server log or does it interfer with runtime operation of
the workbench? (I.e do you get an error pop up)

Sent on the move
On 28 May 2014 21:51, Steinmetz, Jean-Philippe 
jpsteinm...@theworkshop.us.com wrote:

 Hello,

 I have successfully cloned an existing repository containing a maven
 kmodule project. Unfortunately when I attempt to open any of the DRL files
 in the workbench (6.0.1.Final) I get the following error:

 Unable to complete your request. The following exception occurred:
 java.lang.ClassNotFoundException:org.openxmlformats.schemas.officeDocument.x2006.docPropsVTypes.CTArray
 from [Module deployment.kie-drools-wb.war:main from Service Module
 Loader].

 This error does not happen if I load any of the files in the demo project.
 The DRL files range from complex to very simple. They all use the mvel
 dialect and import the following globals.


 /** The Camel context used when handling input/output. */
 global CamelContext camelContext;
 /** The application configuration. */
 global Config config;
 /** A reference to the current knowledge base. */
 global KieBase kBase;
 /** A reference to the current session. */
 global KieSession kSession;
 /** The common logging utility. */
 global org.slf4j.Logger logger;

 Outside of this there is nothing special to them. Has anyone seen this?

 Thanks,

 Jean-Philippe

 ___
 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] Drools 6.0 workbench user interface

2014-05-23 Thread Michael Anstis
Almost 100% correct.

You can include a KJAR (Drools 6.x unit of deployment == JAR +
META-INF/kmodule.xml) as a Maven dependency in a project needing the
rules/processes etc.

If you need to monitor and update rules/processes etc in your KieBase as
new SNAPSHOTS of the KJAR are published you need to look at using
KieScanner (which replaces the use of change-sets).

The only aspect that was incorrect was stating you needed to use
change-sets with Drools/Guvnor  6.x (this wasn't strictly required; but I
won't go into detail here as it's not really relevant now).


On 23 May 2014 11:41, ganeshneelekani ganeshneelek...@gmail.com wrote:

 Hi Team,


 I have started to read drools 6.1 documentation and As per as i
 understanding, i aware of drools 5.4

 Below version  6.0 we use drools guvnor is a interface for building drools
 rule and jbpm file.No need of maven
 used changeset.xml to interact with drools-guvnor

 version 6.0 uses drools workbench and whole  code is built using workbench
 and no need of java code to connect to drools workbench

 Please correct me if I am wrong.

 Thanks,
 Ganesh Neelekani



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Drools-6-0-workbench-user-interface-tp4029666.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] XML and the Guided Decision Tables

2014-05-21 Thread Michael Anstis
There is no schema for a GDST; it's simply an XStream dump of the POJO
model behind the editor.

We support conversion of XLS decision tables to GDST as from 5.4 (I think;
it's definitely in 5.5 and 6.0).

If either (a) you're not using XLS decision tables or (b) you want them
converted outside of the workbench you could always have a look at the code
that handles conversion and write something yourself
(droolsjbpm/drools-wb/drools-wb-screens/guided-dtable or a path to that
effect).

Cheers,

Mike

Sent on the move
On 21 May 2014 15:41, Kysis higherarc...@gmail.com wrote:

 Hello my team and I are trying to write a script in order to convert and
 condense a decision table to import it into the workbench as a Guided
 Decision Table. Is there documentation for the XML file that represents a
 GDT?

 Thanks, Michael.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/XML-and-the-Guided-Decision-Tables-tp4029644.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] Startup KIE Workbench without network connection

2014-05-19 Thread Michael Anstis
This is true.

It looks like we don't handle errors thrown when attempting to
set-uphttps://github.com/droolsjbpm/kie-wb-distributions/blob/master/kie-drools-wb/kie-drools-wb-webapp/src/main/java/org/kie/workbench/drools/backend/server/AppSetup.java#L101the
default repositories.

Could you please raise a JIRA https://issues.jboss.org/browse/GUVNOR to
prevent this issue from being lost (or submit a Pull Request with a fix).

Thanks,

Mike




On 15 May 2014 16:58, Sandjaja, Dominik dominik.sandj...@it-motive.dewrote:

  Hello,



 many thanks for that information! I somehow never got that far down in the
 properties-page to notice.



 Nevertheless I think that the startup should not fail completely, if the
 sample repositories cannot be downloaded. Shouldn’t a warning suffice?



 Thank you!



 Dominik



 *Von:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *Im Auftrag von *Ioannis
 Christodoulou
 *Ge**sendet:* Donnerstag, 15. Mai 2014 17:40
 *An:* Rules Users List
 *Betreff:* Re: [rules-users] Startup KIE Workbench without network
 connection



 Hello,

 you probably need to set:

 -Dorg.kie.demo=false and -Dorg.kie.example=false in your startup variables.



 For example, using jboss, I have in standalone.conf file (used during
 jboss startup)

 JAVA_OPTS=$JAVA_OPTS -Dorg.kie.demo=false -Dorg.kie.example=false

 This will disable the demo and the example sources from the workbench.




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



 On Thu, May 15, 2014 at 6:27 PM, Sandjaja, Dominik 
 dominik.sandj...@it-motive.de wrote:

 Hello,



 I try to setup KIE Workbench (6.1.0.BetaX) on Tomcat 7 on a Windows 2012
 Server without connection to the internet.



 When starting up, the KIE-WB does not start up. I get the following errors
 in localhost.log (cut for better readability):



 Mai 15, 2014 5:08:18 PM org.apache.catalina.core.StandardContext
 listenerStart

 Schwerwiegend: Exception sending context initialized event to listener
 instance of class org.jboss.weld.environment.servlet.Listener

 org.jboss.weld.exceptions.DeploymentException: Exception List with 1
 exceptions:

 […]

 Caused by: java.lang.RuntimeException:
 https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open
 git-upload-pack

 […]

 Caused by: java.net.ConnectException: Connection time out: github.com



 This happens because the initial demo repository is downloaded – I do not
 want and need those repositories!



 I could work around this by copying the TOMCAT_HOME/bin/.niogit directory
 to that server and have it start up then.



 BUT: IMHO it is an inconvenience, maybe even a bug, that an internet
 connection is needed to set up the Drools KIE Workbench. How are we
 supposed to tell our infrastructure team that we need an open connection to
 “some website with code” to setup an editing system for internal knowledge …

 Should I file a bug for that? Is there a way to deactivate the downloading
 of the initial demo repository? Could it somehow be delivered with the
 KIE-WB package?



 Thanks

 Dominik


 …
 mit freundlichen Grüßen / kind regards
 Dominik Sandjaja
 Fon: +49 (0) 203 60878 183
 Fax: +49 (0) 203 60878 222
 e-mail: dominik.sandj...@it-motive.de

 it-motive AG
 Zum Walkmüller 6
 47269 Duisburg
 i...@it-motive.de
 http://www.it-motive.de
 ……
 Vorsitzender des Aufsichtsrats: Dr.-Ing. Jürgen Sturm
 Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim
 Klose
 HRB 9207, Amtsgericht Duisburg


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



 …
 mit freundlichen Grüßen / kind regards
 Dominik Sandjaja
 Fon: +49 (0) 203 60878 183
 Fax: +49 (0) 203 60878 222
 e-mail: dominik.sandj...@it-motive.de

 it-motive AG
 Zum Walkmüller 6
 47269 Duisburg
 i...@it-motive.de
 http://www.it-motive.de
 ……
 Vorsitzender des Aufsichtsrats: Dr.-Ing. Jürgen Sturm
 Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim
 Klose
 HRB 9207, Amtsgericht Duisburg

 ___
 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] Startup KIE Workbench without network connection

2014-05-15 Thread Michael Anstis
When the workbench starts it tries to download an example repository.

The documentation lists various system properties you can use to disable
this automatic download.


On 15 May 2014 16:27, Sandjaja, Dominik dominik.sandj...@it-motive.dewrote:

  Hello,



 I try to setup KIE Workbench (6.1.0.BetaX) on Tomcat 7 on a Windows 2012
 Server without connection to the internet.



 When starting up, the KIE-WB does not start up. I get the following errors
 in localhost.log (cut for better readability):



 Mai 15, 2014 5:08:18 PM org.apache.catalina.core.StandardContext
 listenerStart

 Schwerwiegend: Exception sending context initialized event to listener
 instance of class org.jboss.weld.environment.servlet.Listener

 org.jboss.weld.exceptions.DeploymentException: Exception List with 1
 exceptions:

 […]

 Caused by: java.lang.RuntimeException:
 https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open
 git-upload-pack

 […]

 Caused by: java.net.ConnectException: Connection time out: github.com



 This happens because the initial demo repository is downloaded – I do not
 want and need those repositories!



 I could work around this by copying the TOMCAT_HOME/bin/.niogit directory
 to that server and have it start up then.



 BUT: IMHO it is an inconvenience, maybe even a bug, that an internet
 connection is needed to set up the Drools KIE Workbench. How are we
 supposed to tell our infrastructure team that we need an open connection to
 “some website with code” to setup an editing system for internal knowledge …

 Should I file a bug for that? Is there a way to deactivate the downloading
 of the initial demo repository? Could it somehow be delivered with the
 KIE-WB package?



 Thanks

 Dominik

 …
 mit freundlichen Grüßen / kind regards
 Dominik Sandjaja
 Fon: +49 (0) 203 60878 183
 Fax: +49 (0) 203 60878 222
 e-mail: dominik.sandj...@it-motive.de

 it-motive AG
 Zum Walkmüller 6
 47269 Duisburg
 i...@it-motive.de
 http://www.it-motive.de
 ……
 Vorsitzender des Aufsichtsrats: Dr.-Ing. Jürgen Sturm
 Vorstand: Horst-Dieter Deelmann (Vors.), Matthias Heming, Christoph Tim
 Klose
 HRB 9207, Amtsgericht Duisburg

 ___
 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] NullPointerException when calling FactType.set and FactType.setFromMap

2014-05-06 Thread Michael Anstis
Data Modeller generates Java classes in 6.x whereas we generated DRL
Declarative Types before.

The getFactType() API is for manipulating declared types.  Java's standard
Reflection API is for manipulating Java classes.

Sent on the move
On 6 May 2014 20:57, Patel, Ronak (Autonomy) ronak.pa...@hp.com wrote:

  Hello all,



 I’m getting a NullPointerException when calling
 org.kie.api.definition.type.FactType.set(Object, String, Object) and also
 when I call org.kie.api.definition.type.FactType.setFromMap(Object,
 MapString, Object). The exception stack trace points to the same line in
 both cases:



 Exception in thread main *java.lang.NullPointerException*

at org.drools.core.factmodel.ClassDefinition.set(
 *ClassDefinition.java:255*)

...



 Doing some debugging, I found that the getFieldAccessor() call in
 org.drools.core.factmodel.ClassDefinition, line 255, is returning null,
 which is what’s causing this. I didn’t dig deeper than that, though.



 I created the data model in Drools Workbench 6.0.1 final and I’ve
 double-checked that the field I’m passing in to set a value exists on the
 object. Below is my code and it’s throwing the NPE on the last line.



 I’m going to try to use standard Java reflection instead for now, but any
 assistance on this would be appreciated. I can provide any other code, the
 KieModule JAR produced by Workbench, or anything else, if needed.



 KieServices ks = KieServices.Factory.*get*();

 KieContainer kContainer = ks.newKieContainer(ks.newReleaseId(
 com.hp.pa.sample, realestate, LATEST));

 KieSession kSession = kContainer.newKieSession();

 KieBase kBase = kSession.getKieBase();



 FactType agentAssignmentType = kBase.getFactType(
 com.hp.pa.sample.realestate, AgentAssignmentData);

 FactType property4SaleType = kBase.getFactType(
 com.hp.pa.sample.realestate, PropertyForSale);



 *if* (agentAssignmentType == *null* || property4SaleType == *null*
 )

 System.*err*.println(Could not find a FactType);



 Object agentAssignment = *null*;

 Object property4Sale = *null*;

 *try* {

 agentAssignment = agentAssignmentType.newInstance();

 property4Sale = property4SaleType.newInstance();

 } *catch* (InstantiationException e) {

 e.printStackTrace();

 } *catch* (IllegalAccessException e) {

 e.printStackTrace();

 }



 property4SaleType.set(property4Sale, city, San Diego);



 Thank you,




 *Ronak Patel *Software Designer
 HP Autonomy

 ___
 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] Rule Orchestration

2014-05-01 Thread Michael Anstis
Is prodList a global?

I'd be tempted to make it a regular fact inserted into Working Memory and
have DT1's action update the fact after inserting the product.

See
http://stackoverflow.com/questions/17848823/drools-using-a-global-variable-in-condition-and-updating-it-in-consequence


On 28 April 2014 17:24, swaroop swaroop.o...@gmail.com wrote:

 Hi ,

 Please find the screen shots attached
 DT One
 http://drools.46999.n3.nabble.com/file/n4029375/1.png

 DT Two
 http://drools.46999.n3.nabble.com/file/n4029375/2.png

 Let me know if this works else i will share the spreadsheets




 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Rule-Orchestration-tp4029371p4029375.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] Rule Orchestration

2014-04-28 Thread Michael Anstis
Can you provide screen shots of both DT's, including their data?

It's quite difficult to understand their content from the pasted text.


On 28 April 2014 15:35, swaroop swaroop.o...@gmail.com wrote:

 Hi,

 Iam using Drools 5.6 , developing rules on guvnor. I have a scenario where
 i
 have two decision tables , One is supposed to execute after the other.

 I want to ensure that DT Two should be executed only after all the
 executions in DT one happen . Because IN DT Two the list is being checked
 if
 set of values are not present, currently when i have two Customer objects
 in
 Working memory each having matching rows in Decision Table One .Once the
 match is found for a customer object then as per the action a Product fact
 is inserted which leads to fire the DT Two and the list is evaluated if set
 of d are not present , the rule is fired in DT Two as the list is not
 populated for the other customer object and matching rows which is being
 checked in DT Two eval list column. Which is not desired . I tried with
 salience , ruleflow group with not much of a help

 Is there a way to can handle this

 http://drools.46999.n3.nabble.com/file/n4029371/DTIssue.png

 *Decision Table One*

 ConditionCondition Condition
 Action
 c:Customer
 a==$param  b in ($param) c == $param
  list(Global
 Variable).add(d);

 insert(Product())
 *Decision Table Two*

 ConditionCondition   Condition
 Action
 p:Product
 a==$param  eval(list doesnt not contain ($param))c
 == $param
 response.setMessage($param);

 Regards
 Oggu





 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Rule-Orchestration-tp4029371.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] how KnowledgeAgent to use guvnor cluster?

2014-04-14 Thread Michael Anstis
Presumably your cluster is fronted by a load-balancer?

I'd think (but not tried) you'd simply be able to configure KA to use your
load-balancer's address?


On 14 April 2014 03:23, 窦晓峰 do...@asiainfo-linkage.com wrote:

 Hello, every one:

  I am newbie for drools and guvnor, so excuse me if the question
 is duplicated for others.

  I am use guvnor 5.5.0 final and set up two nodes guvnor cluster
 successfully. But I don’t know how to configure the knowledge agent to use
 the cluster for HA?(before the cluster set up a nginx for banlance?)



 Thx a lot





 ___
 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] Problems deploying war

2014-04-14 Thread Michael Anstis
http://search.maven.org/#search%7Cga%7C1%7Ckie-tomcat-integration

http://search.maven.org/#search%7Cga%7C1%7Cjavax.security.jacc-api


On 14 April 2014 13:21, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  Hi Michael,
Thank you for the instructions. I wasn't able to find these
 instructions anywhere, but I'll check the readme again.
 Where can I get the jacc and kie-tomcat-integration jar files from?

 Thanks,
 Ven


 On 04/11/2014 10:49 AM, Michael Anstis wrote:

 Hi,

  There have been a few people with Tomcat deployment issues for
 kie-drools-wb, so I thought I'd give it a try.

  These are the steps I followed for *successful* deployment (most of
 which is already documented, but not obvious, in the WAR's README.txt
 file):-

  *6.0.1*

  Starting with a clean install of Tomcat 7.

  1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
 (org.kie:kie-tomcat-integration)
 2. Copy JACC JAR into 
 TOMCAT_HOME/lib(javax.security.jacc:artifactId=javax.security.jacc-api in 
 JBoss Maven
 Repository)
 3. Copy slf4j-api JAR into TOMCAT_HOME/lib(org.slf4j:artifactId=slf4j-api 
 in JBoss Maven Repository)
 4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside 
 Hostelement as last valve definition:

 Valve className=org.kie.integration.tomcat.JACCValve /

  5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users,
 make sure there will be 'analyst' or 'admin' roles defined as it's required
 to be authorized to use kie-wb
  6. Delete org.uberfire.security.auth.AuthenticationSource inside
 WEB-INF/classes/META-INF/services
 7. Rename
 org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY to
 org.uberfire.security.auth.AuthenticationSource inside
 WEB-INF/classes/META-INF/services
 8. Increase Java's PermGen space by adding file TOMCAT_HOME/bin/setenv.sh
  containing export JAVA_OPTS=-Xmx1024m -XX:MaxPermSize=256m
  9. Start Tomcat with TOMCAT_HOME/bin/startup.sh
  10. Go to Management Console, http://localhost:8080/management
 11. Deploy modified WAR

  If you do not complete these steps the WAR works out of the box but
 you'll need to define Users in WEB-INF/classes/login.config

  *6.1.0-SNAPSHOT*

  Starting with a clean install of Tomcat 7.

  1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
 (org.kie:kie-tomcat-integration)
 2. Copy JACC JAR into TOMCAT_HOME/lib
 (javax.security.jacc:artifactId=javax.security.jacc-api in JBoss Maven
 Repository)
 3. Copy slf4j-api JAR into TOMCAT_HOME/lib
 (org.slf4j:artifactId=slf4j-api in JBoss Maven Repository)
 4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside Host
 element as last valve definition:

 Valve className=org.kie.integration.tomcat.JACCValve /

  5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users,
 make sure there will be 'analyst' or 'admin' roles defined as it's required
 to be authorized to use kie-wb
  6. Start Tomcat with TOMCAT_HOME/bin/startup.sh
  7. Go to Management Console, http://localhost:8080/management
 8. Deploy modified WAR

  With kind regards,

  Mike




 On 10 April 2014 19:25, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

 Hi,
   I'm trying to get set up with Drools and Guvnor.  I've had some success
 building a test program with Drools, but when I saw that there's a webapp
 to manage and view rules, I was interested in getting that working as
 well. Unfortunately I haven't had much success with that.
   I downloaded the kie-drools-wb-distribution-6.0.1.Final.zip file from
 the JBoss drools website and dropped the
 binaries/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war
 into my Tomcat directory.  Tomcat was just hanging for a while, then spit
 out a bunch of error messages:
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 INFO: Deploying web application archive
 /opt/tomcat/tomcat7/webapps/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 SEVERE: Error listenerStart
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 SEVERE: Context [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
 startup failed due to previous errors
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0] appears to have
 started a thread named [pool-4-thread-1] but has failed to stop it. This is
 very likely to create a memory leak.
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0] appears to have
 started a thread named [Thread-3] but has failed to stop it. This is very
 likely to create a memory leak.
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb

Re: [rules-users] Problems deploying war

2014-04-14 Thread Michael Anstis
If apply the additional configuration you are telling Tomcat to use Users
defined in tomcat_install_folder/conf/tomcat-users.xml

I modified the WAR by unzipping it, modifying the relevant files and then
zipping it back into a WAR before deploying.


On 14 April 2014 13:53, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  Hi Michael,
Unfortunately I can't seem to get the 6.0.1 version up and running. I
 followed the steps below, finding the 3 jars listed below online.
 But still, Tomcat just hangs for a bit, then throws a bunch of severe
 warnings. There don't seem to be any log messages describing the problem.
 Also, I'm a bit confused by the directions - how can we modify the WEB-INF
 directory before the war is deployed? And how do we define users
 in the login.config file?


 Thanks,
 Ven

 On 04/11/2014 10:49 AM, Michael Anstis wrote:

 Hi,

  There have been a few people with Tomcat deployment issues for
 kie-drools-wb, so I thought I'd give it a try.

  These are the steps I followed for *successful* deployment (most of
 which is already documented, but not obvious, in the WAR's README.txt
 file):-

  *6.0.1*

  Starting with a clean install of Tomcat 7.

  1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
 (org.kie:kie-tomcat-integration)
 2. Copy JACC JAR into 
 TOMCAT_HOME/lib(javax.security.jacc:artifactId=javax.security.jacc-api in 
 JBoss Maven
 Repository)
 3. Copy slf4j-api JAR into TOMCAT_HOME/lib(org.slf4j:artifactId=slf4j-api 
 in JBoss Maven Repository)
 4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside 
 Hostelement as last valve definition:

 Valve className=org.kie.integration.tomcat.JACCValve /

  5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users,
 make sure there will be 'analyst' or 'admin' roles defined as it's required
 to be authorized to use kie-wb
  6. Delete org.uberfire.security.auth.AuthenticationSource inside
 WEB-INF/classes/META-INF/services
 7. Rename
 org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY to
 org.uberfire.security.auth.AuthenticationSource inside
 WEB-INF/classes/META-INF/services
 8. Increase Java's PermGen space by adding file TOMCAT_HOME/bin/setenv.sh
  containing export JAVA_OPTS=-Xmx1024m -XX:MaxPermSize=256m
  9. Start Tomcat with TOMCAT_HOME/bin/startup.sh
  10. Go to Management Console, http://localhost:8080/management
 11. Deploy modified WAR

  If you do not complete these steps the WAR works out of the box but
 you'll need to define Users in WEB-INF/classes/login.config

  *6.1.0-SNAPSHOT*

  Starting with a clean install of Tomcat 7.

  1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
 (org.kie:kie-tomcat-integration)
 2. Copy JACC JAR into TOMCAT_HOME/lib
 (javax.security.jacc:artifactId=javax.security.jacc-api in JBoss Maven
 Repository)
 3. Copy slf4j-api JAR into TOMCAT_HOME/lib
 (org.slf4j:artifactId=slf4j-api in JBoss Maven Repository)
 4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside Host
 element as last valve definition:

 Valve className=org.kie.integration.tomcat.JACCValve /

  5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users,
 make sure there will be 'analyst' or 'admin' roles defined as it's required
 to be authorized to use kie-wb
  6. Start Tomcat with TOMCAT_HOME/bin/startup.sh
  7. Go to Management Console, http://localhost:8080/management
 8. Deploy modified WAR

  With kind regards,

  Mike




 On 10 April 2014 19:25, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

 Hi,
   I'm trying to get set up with Drools and Guvnor.  I've had some success
 building a test program with Drools, but when I saw that there's a webapp
 to manage and view rules, I was interested in getting that working as
 well. Unfortunately I haven't had much success with that.
   I downloaded the kie-drools-wb-distribution-6.0.1.Final.zip file from
 the JBoss drools website and dropped the
 binaries/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war
 into my Tomcat directory.  Tomcat was just hanging for a while, then spit
 out a bunch of error messages:
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 INFO: Deploying web application archive
 /opt/tomcat/tomcat7/webapps/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 SEVERE: Error listenerStart
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 SEVERE: Context [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
 startup failed due to previous errors
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0] appears to have
 started a thread named [pool-4-thread-1] but has failed to stop it. This is
 very likely to create a memory leak.
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader

Re: [rules-users] Problems deploying war

2014-04-14 Thread Michael Anstis
You're almost there by the look of it!!!

I replied to your other questions about why the workbench is trying to
access git.. you can disable this and then you shouldn't get the error you
paste (I assume you can't access github.com from where you're trying to
deploy).

The JBoss AS7 WAR works out of the box.. no need to configure anything
extra, or download any WARs :)

I would encourage you to delete .niogit folder in /bin when trying to
deploy (if you had errors before).

.niogit is where the workbench stores it's configuration and any downloaded
git repositories.


On 14 April 2014 14:14, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  I'm not quite sure why it's so challenging to get the war deployed with
 Tomcat. Is it easier to deploy the war with Jboss?
 These are the exceptions I'm getting, even after adding
 -Dorg.kie.demo=false to the CATALINA_OPTS in catalina.sh
 I want to disable the access to remote git repos.

 INFO: Deploying web application archive
 /opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0.war
 2014-04-14 09:04:23,985 [localhost-startStop-1] INFO  Found kmodule:
 jar:file:/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar!/META-INF/kmodule.xml
 2014-04-14 09:04:24,036 [localhost-startStop-1] INFO  KieModule was
 added:ZipKieModule[
 ReleaseId=org.drools:drools-wb-rest-defaultapprover:6.0.1.Finalfile=/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar]
 2014-04-14 09:04:24,036 [localhost-startStop-1] INFO  Found kmodule:
 jar:file:/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar!/META-INF/kmodule.xml
 2014-04-14 09:04:24,039 [localhost-startStop-1] INFO  KieModule was
 added:ZipKieModule[
 ReleaseId=org.drools:drools-wb-rest-defaultapprover:6.0.1.Finalfile=/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar]
 2014-04-14 09:07:36,460 [localhost-startStop-1] ERROR Failed to setup
 Repository 'uf-playground'

 java.lang.RuntimeException:
 https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot open
 git-upload-pack
 at
 org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper.newRepository(GitRepositoryFactoryHelper.java:80)
 ~[uberfire-backend-server-0.3.1.Final.jar:0.3.1.Final]
 at
 org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.newRepository(GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.java)
 ~[uberfire-backend-server-0.3.1.Final.jar:0.3.1.Final]


 Thanks,
 Ven


 On 04/14/2014 08:57 AM, Michael Anstis wrote:

 If apply the additional configuration you are telling Tomcat to use Users
 defined in tomcat_install_folder/conf/tomcat-users.xml

  I modified the WAR by unzipping it, modifying the relevant files and
 then zipping it back into a WAR before deploying.


 On 14 April 2014 13:53, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  Hi Michael,
Unfortunately I can't seem to get the 6.0.1 version up and running. I
 followed the steps below, finding the 3 jars listed below online.
 But still, Tomcat just hangs for a bit, then throws a bunch of severe
 warnings. There don't seem to be any log messages describing the problem.
 Also, I'm a bit confused by the directions - how can we modify the
 WEB-INF directory before the war is deployed? And how do we define users
 in the login.config file?


 Thanks,
 Ven

 On 04/11/2014 10:49 AM, Michael Anstis wrote:

 Hi,

  There have been a few people with Tomcat deployment issues for
 kie-drools-wb, so I thought I'd give it a try.

  These are the steps I followed for *successful* deployment (most of
 which is already documented, but not obvious, in the WAR's README.txt
 file):-

  *6.0.1*

  Starting with a clean install of Tomcat 7.

  1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
 (org.kie:kie-tomcat-integration)
 2. Copy JACC JAR into 
 TOMCAT_HOME/lib(javax.security.jacc:artifactId=javax.security.jacc-api in 
 JBoss Maven
 Repository)
 3. Copy slf4j-api JAR into TOMCAT_HOME/lib(org.slf4j:artifactId=slf4j-api 
 in JBoss Maven Repository)
 4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside 
 Hostelement as last valve definition:

 Valve className=org.kie.integration.tomcat.JACCValve /

  5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users,
 make sure there will be 'analyst' or 'admin' roles defined as it's required
 to be authorized to use kie-wb
  6. Delete org.uberfire.security.auth.AuthenticationSource inside
 WEB-INF/classes/META-INF/services
 7. Rename
 org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY to
 org.uberfire.security.auth.AuthenticationSource inside
 WEB-INF/classes/META-INF/services
 8. Increase Java's PermGen space by adding file TOMCAT_HOME

Re: [rules-users] Problems deploying war

2014-04-14 Thread Michael Anstis
You'll need to add the additional libraries to /lib and configure Catalina
with the additional Valve, as described in previous emails.

These configure Tomcat to use the tomcat-users.xml file.


On 14 April 2014 14:36, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  You're right - I'm getting closer :)
 Now, the
 http://localhost:8080/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0/url
  comes up, but when I try to log in with the user and password in my
 tomcat-users.xml file, it doesn't log me in.

 I was able to bring up the main page both with the binary distribution
 (which came up with a KIE IDE logo) and the one I built with maven from
 sources
 (which came up with a UF logo). The login page looked identical except for
 the logo.

 This is what my tomcat-users.xml file looks like:
 role rolename=analyst/
   role rolename=admin/
   user username=guest password= roles=analyst,admin/
   user username=admin password= roles=analyst,admin/

 (The password has been starred out in this e-mail)
 The only change I made to the war was
  mv org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY
 org.uberfire.security.auth.AuthenticationSource

 Is there something I have to do with the login.config or realm.properties?

 Thanks,
 Ven


 On 04/14/2014 09:17 AM, Michael Anstis wrote:

 You're almost there by the look of it!!!

  I replied to your other questions about why the workbench is trying to
 access git.. you can disable this and then you shouldn't get the error you
 paste (I assume you can't access github.com from where you're trying to
 deploy).

  The JBoss AS7 WAR works out of the box.. no need to configure anything
 extra, or download any WARs :)

  I would encourage you to delete .niogit folder in /bin when trying to
 deploy (if you had errors before).

  .niogit is where the workbench stores it's configuration and any
 downloaded git repositories.


 On 14 April 2014 14:14, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  I'm not quite sure why it's so challenging to get the war deployed with
 Tomcat. Is it easier to deploy the war with Jboss?
 These are the exceptions I'm getting, even after adding
 -Dorg.kie.demo=false to the CATALINA_OPTS in catalina.sh
 I want to disable the access to remote git repos.

 INFO: Deploying web application archive
 /opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0.war
  2014-04-14 09:04:23,985 [localhost-startStop-1] INFO  Found kmodule:
 jar:file:/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar!/META-INF/kmodule.xml
 2014-04-14 09:04:24,036 [localhost-startStop-1] INFO  KieModule was
 added:ZipKieModule[
 ReleaseId=org.drools:drools-wb-rest-defaultapprover:6.0.1.Finalfile=/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar]
 2014-04-14 09:04:24,036 [localhost-startStop-1] INFO  Found kmodule:
 jar:file:/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar!/META-INF/kmodule.xml
 2014-04-14 09:04:24,039 [localhost-startStop-1] INFO  KieModule was
 added:ZipKieModule[
 ReleaseId=org.drools:drools-wb-rest-defaultapprover:6.0.1.Finalfile=/opt/tomcat/tomcat7/webapps/drools-workbench-6.0.1.Final-tomcat7.0/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar]
 2014-04-14 09:07:36,460 [localhost-startStop-1] ERROR Failed to setup
 Repository 'uf-playground'

 java.lang.RuntimeException:
 https://github.com/guvnorngtestuser1/guvnorng-playground.git: cannot
 open git-upload-pack
  at
 org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper.newRepository(GitRepositoryFactoryHelper.java:80)
 ~[uberfire-backend-server-0.3.1.Final.jar:0.3.1.Final]
 at
 org.uberfire.backend.server.repositories.git.GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.newRepository(GitRepositoryFactoryHelper$Proxy$_$$_WeldClientProxy.java)
 ~[uberfire-backend-server-0.3.1.Final.jar:0.3.1.Final]


 Thanks,
 Ven


 On 04/14/2014 08:57 AM, Michael Anstis wrote:

 If apply the additional configuration you are telling Tomcat to use Users
 defined in tomcat_install_folder/conf/tomcat-users.xml

  I modified the WAR by unzipping it, modifying the relevant files and
 then zipping it back into a WAR before deploying.


 On 14 April 2014 13:53, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  Hi Michael,
Unfortunately I can't seem to get the 6.0.1 version up and running. I
 followed the steps below, finding the 3 jars listed below online.
 But still, Tomcat just hangs for a bit, then throws a bunch of severe
 warnings. There don't seem to be any log messages describing the problem.
 Also, I'm a bit confused by the directions - how can we modify the
 WEB-INF directory before the war is deployed? And how do we define users
 in the login.config file?


 Thanks,
 Ven

 On 04/11/2014 10:49 AM, Michael

Re: [rules-users] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Michael Anstis
You need to use a Template variable in the BRL fragment.

ServiceLineStatusInfo( claimStatusCodes contains @{param})


On 14 April 2014 23:01, Joe White joe.wh...@recondotech.com wrote:

  Does the workbench extended entry guided decision table support this
 kind of syntax:

 ServiceLineStatusInfo( claimStatusCodes contains $param )



 Where $param is replaced with the value of the column? When I add that
 through New Column-Add a Condition BRL Fragment-Free Form DRL all I get
 is a checkbox column. Is there a way to set that up so that it allows entry
 and does the substitution?



 I know the line above could be built easily in other ways. It is just an
 example to illustrate. I have some more complex logical constructs that I’d
 like to do in straight DRL fragments if possible.



 Thanks,



 Joe



 ___
 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] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Michael Anstis
That'd be great :-)

Saw III looks promising ;-)

Sent on the move
On 14 Apr 2014 23:13, Joe White joe.wh...@recondotech.com wrote:

  Thanks Mike. I see that in the Rule Templates section of the docs. If
 you want I’ll add that the Guided Decision Table of the documents as well
 and issue a pull. Let me know.



 Joe



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* Monday, April 14, 2014 4:08 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Free Form DRL through BRL in guided decision
 table



 You need to use a Template variable in the BRL fragment.



 ServiceLineStatusInfo( claimStatusCodes contains @{param})



 On 14 April 2014 23:01, Joe White joe.wh...@recondotech.com wrote:

  Does the workbench extended entry guided decision table support this
 kind of syntax:

 ServiceLineStatusInfo( claimStatusCodes contains $param )



 Where $param is replaced with the value of the column? When I add that
 through New Column-Add a Condition BRL Fragment-Free Form DRL all I get
 is a checkbox column. Is there a way to set that up so that it allows entry
 and does the substitution?



 I know the line above could be built easily in other ways. It is just an
 example to illustrate. I have some more complex logical constructs that I’d
 like to do in straight DRL fragments if possible.



 Thanks,



 Joe




 ___
 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] Free Form DRL through BRL in guided decision table

2014-04-14 Thread Michael Anstis
H... not a family film.

Sent on the move
On 14 Apr 2014 23:18, Michael Anstis michael.ans...@gmail.com wrote:

 That'd be great :-)

 Saw III looks promising ;-)

 Sent on the move
 On 14 Apr 2014 23:13, Joe White joe.wh...@recondotech.com wrote:

  Thanks Mike. I see that in the Rule Templates section of the docs. If
 you want I’ll add that the Guided Decision Table of the documents as well
 and issue a pull. Let me know.



 Joe



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* Monday, April 14, 2014 4:08 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Free Form DRL through BRL in guided
 decision table



 You need to use a Template variable in the BRL fragment.



 ServiceLineStatusInfo( claimStatusCodes contains @{param})



 On 14 April 2014 23:01, Joe White joe.wh...@recondotech.com wrote:

  Does the workbench extended entry guided decision table support this
 kind of syntax:

 ServiceLineStatusInfo( claimStatusCodes contains $param )



 Where $param is replaced with the value of the column? When I add that
 through New Column-Add a Condition BRL Fragment-Free Form DRL all I get
 is a checkbox column. Is there a way to set that up so that it allows entry
 and does the substitution?



 I know the line above could be built easily in other ways. It is just an
 example to illustrate. I have some more complex logical constructs that I’d
 like to do in straight DRL fragments if possible.



 Thanks,



 Joe




 ___
 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] If I have a rule that has a lot of permutation, which is the best approach to set it up? (Currently using decision table)

2014-04-11 Thread Michael Anstis
If rows have default values they will populate the cells when you add a new
row.

You could set default values, add your rows, and then remove said default
values if no longer applicable.


On 11 April 2014 13:35, SSWA alexsim...@hotmail.com wrote:

 Attached is a sample rule decision table that I have set up.

 As you can see, I have designed my conditions very nicely in the picture.
 But if I were to add a new check, I will actually have to slowly key in the
 values.

 I'm wondering if there is any way that when I slot a condition into row 4,
 it will auto populate the other fields that are grouped together. This
 way, I wouldn't have to re-write those condition's information.

 So example if I have a new module coming in for P1 called MODULE-A, and I
 want to create a condition for it to say if the nationality is FR and
 Eligibility is Y, it is 500 dollar. I will probably click the + button at
 row 5 or even row 6. Then the fields, P1, Nationality, Eligibility,
 Fee Code will all be populated since they are grouped, and I will just
 key
 in the Module Code.

 Is there any way to do this?



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/If-I-have-a-rule-that-has-a-lot-of-permutation-which-is-the-best-approach-to-set-it-up-Currently-usi-tp4029207.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] Problems deploying war

2014-04-11 Thread Michael Anstis
Hi,

There have been a few people with Tomcat deployment issues for
kie-drools-wb, so I thought I'd give it a try.

These are the steps I followed for *successful* deployment (most of which
is already documented, but not obvious, in the WAR's README.txt file):-

*6.0.1*

Starting with a clean install of Tomcat 7.

1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
(org.kie:kie-tomcat-integration)
2. Copy JACC JAR into
TOMCAT_HOME/lib(javax.security.jacc:artifactId=javax.security.jacc-api
in JBoss Maven
Repository)
3. Copy slf4j-api JAR into
TOMCAT_HOME/lib(org.slf4j:artifactId=slf4j-api in JBoss Maven
Repository)
4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside
Hostelement as last valve definition:

   Valve className=org.kie.integration.tomcat.JACCValve /

5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users, make
sure there will be 'analyst' or 'admin' roles defined as it's required to
be authorized to use kie-wb
6. Delete org.uberfire.security.auth.AuthenticationSource inside
WEB-INF/classes/META-INF/services
7. Rename
org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY to
org.uberfire.security.auth.AuthenticationSource inside
WEB-INF/classes/META-INF/services
8. Increase Java's PermGen space by adding file TOMCAT_HOME/bin/setenv.sh
 containing export JAVA_OPTS=-Xmx1024m -XX:MaxPermSize=256m
9. Start Tomcat with TOMCAT_HOME/bin/startup.sh
10. Go to Management Console, http://localhost:8080/management
11. Deploy modified WAR

If you do not complete these steps the WAR works out of the box but
you'll need to define Users in WEB-INF/classes/login.config

*6.1.0-SNAPSHOT*

Starting with a clean install of Tomcat 7.

1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
(org.kie:kie-tomcat-integration)
2. Copy JACC JAR into TOMCAT_HOME/lib
(javax.security.jacc:artifactId=javax.security.jacc-api in JBoss Maven
Repository)
3. Copy slf4j-api JAR into TOMCAT_HOME/lib
(org.slf4j:artifactId=slf4j-api in JBoss Maven Repository)
4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside Host
element as last valve definition:

   Valve className=org.kie.integration.tomcat.JACCValve /

5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users, make
sure there will be 'analyst' or 'admin' roles defined as it's required to
be authorized to use kie-wb
6. Start Tomcat with TOMCAT_HOME/bin/startup.sh
7. Go to Management Console, http://localhost:8080/management
8. Deploy modified WAR

With kind regards,

Mike




On 10 April 2014 19:25, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  Hi,
   I'm trying to get set up with Drools and Guvnor.  I've had some success
 building a test program with Drools, but when I saw that there's a webapp
 to manage and view rules, I was interested in getting that working as
 well. Unfortunately I haven't had much success with that.
   I downloaded the kie-drools-wb-distribution-6.0.1.Final.zip file from
 the JBoss drools website and dropped the
 binaries/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war
 into my Tomcat directory.  Tomcat was just hanging for a while, then spit
 out a bunch of error messages:
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 INFO: Deploying web application archive
 /opt/tomcat/tomcat7/webapps/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 SEVERE: Error listenerStart
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 SEVERE: Context [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
 startup failed due to previous errors
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0] appears to have
 started a thread named [pool-4-thread-1] but has failed to stop it. This is
 very likely to create a memory leak.
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0] appears to have
 started a thread named [Thread-3] but has failed to stop it. This is very
 likely to create a memory leak.
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0] appears to have
 started a thread named [pool-7-thread-1] but has failed to stop it. This is
 very likely to create a memory leak.
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0] appears to have
 started a thread named [Git-Daemon-Accept] but has failed to stop it. This
 is very likely to create a memory leak.
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 

Re: [rules-users] Guvnor - Importing Drl FIle and its associated model

2014-04-11 Thread Michael Anstis
What version are you using?


On 10 April 2014 20:39, mattmadhavan mmadha...@facs.org wrote:

 Hello,
 In have a working Drools project. I would like to import existing DRL files
 and associated Model file.

 I have a custom operator as well. I have packaged the Model and necessary
 operators and util global functions into a jar with their dependencies.

 How do I import my DRL and the model jar so that, the DRL's imports 'see'
 the referenced operators and functions and the Model (FACT) classes.

 Can some one please let me have the sequence of steps?

 Thanks
 Matt



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Guvnor-Importing-Drl-FIle-and-its-associated-model-tp4029203.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] How to install Drool web WB - Tomcat?

2014-04-11 Thread Michael Anstis
Please see other email on this subject to which I've replied.


On 11 April 2014 00:13, bbarani bbar...@gmail.com wrote:

 I download the drools workbench war
 (kie-drools-wb-distribution-6.0.1.Final.zip) and tried deploying it on
 Tomcat. The application gets deployed but not getting started (when seen
 from server console).

 Do I need to do anything else apart from placing the WAR file in the
 webapps
 directory? please advise



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/How-to-install-Drool-web-WB-Tomcat-tp4029204.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] Problems deploying war

2014-04-11 Thread Michael Anstis
To answer your remaining questions:

 What is the webapp trying to do with Git? Do I need to point it at some
git repo?

The Workbench tries to clone a demo repository from github.com on startup.
This can be disabled. See
herehttp://docs.jboss.org/drools/release/6.0.1.Final/drools-docs/html/wb.Workbench.html#wb.systemProperties.
You'll need to set org.kie.demo to false.

If you don't have an internet connection to github.com you can use the demo
repositories bundled with the distribution
(kie-wb-example-repositories-6.0.1.Final.zip in the download). You will
need to set org.kie.example.repositories

 I tried the jboss instructions here:
http://blog.athico.com/2013/05/how-to-build-and-run-drools-and-guvnor.html

These relate to 5.5 not 6.0. Guvnor used to be the whole web app; now it is
just a small component. See
herehttp://blog.athico.com/2013/06/goodbye-guvnor-hello-drools-workbench.html
.

On 11 April 2014 15:49, Michael Anstis michael.ans...@gmail.com wrote:

 Hi,

 There have been a few people with Tomcat deployment issues for
 kie-drools-wb, so I thought I'd give it a try.

 These are the steps I followed for *successful* deployment (most of which
 is already documented, but not obvious, in the WAR's README.txt file):-

 *6.0.1*

 Starting with a clean install of Tomcat 7.

 1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
 (org.kie:kie-tomcat-integration)
 2. Copy JACC JAR into 
 TOMCAT_HOME/lib(javax.security.jacc:artifactId=javax.security.jacc-api in 
 JBoss Maven
 Repository)
 3. Copy slf4j-api JAR into TOMCAT_HOME/lib(org.slf4j:artifactId=slf4j-api 
 in JBoss Maven Repository)
 4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside 
 Hostelement as last valve definition:

Valve className=org.kie.integration.tomcat.JACCValve /

 5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users,
 make sure there will be 'analyst' or 'admin' roles defined as it's required
 to be authorized to use kie-wb
 6. Delete org.uberfire.security.auth.AuthenticationSource inside
 WEB-INF/classes/META-INF/services
 7. Rename
 org.uberfire.security.auth.AuthenticationSource-TOMCAT-JEE-SECURITY to
 org.uberfire.security.auth.AuthenticationSource inside
 WEB-INF/classes/META-INF/services
 8. Increase Java's PermGen space by adding file TOMCAT_HOME/bin/setenv.sh
  containing export JAVA_OPTS=-Xmx1024m -XX:MaxPermSize=256m
 9. Start Tomcat with TOMCAT_HOME/bin/startup.sh
 10. Go to Management Console, http://localhost:8080/management
 11. Deploy modified WAR

 If you do not complete these steps the WAR works out of the box but
 you'll need to define Users in WEB-INF/classes/login.config

 *6.1.0-SNAPSHOT*

 Starting with a clean install of Tomcat 7.

 1. Copy kie-tomcat-integration JAR into TOMCAT_HOME/lib
 (org.kie:kie-tomcat-integration)
 2. Copy JACC JAR into TOMCAT_HOME/lib
 (javax.security.jacc:artifactId=javax.security.jacc-api in JBoss Maven
 Repository)
 3. Copy slf4j-api JAR into TOMCAT_HOME/lib
 (org.slf4j:artifactId=slf4j-api in JBoss Maven Repository)
 4. Add valve configuration into TOMCAT_HOME/conf/server.xml inside Host
 element as last valve definition:

Valve className=org.kie.integration.tomcat.JACCValve /

 5. Edit TOMCAT_HOME/conf/tomcat-users.xml to include roles and users, make
 sure there will be 'analyst' or 'admin' roles defined as it's required to
 be authorized to use kie-wb
 6. Start Tomcat with TOMCAT_HOME/bin/startup.sh
 7. Go to Management Console, http://localhost:8080/management
 8. Deploy modified WAR

 With kind regards,

 Mike




 On 10 April 2014 19:25, Ven Tadipatri ven.tadipa...@ll.mit.edu wrote:

  Hi,
   I'm trying to get set up with Drools and Guvnor.  I've had some success
 building a test program with Drools, but when I saw that there's a webapp
 to manage and view rules, I was interested in getting that working as
 well. Unfortunately I haven't had much success with that.
   I downloaded the kie-drools-wb-distribution-6.0.1.Final.zip file from
 the JBoss drools website and dropped the
 binaries/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war
 into my Tomcat directory.  Tomcat was just hanging for a while, then spit
 out a bunch of error messages:
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 INFO: Deploying web application archive
 /opt/tomcat/tomcat7/webapps/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 SEVERE: Error listenerStart
 Apr 10, 2014 2:21:40 PM org.apache.catalina.core.StandardContext
 startInternal
 SEVERE: Context [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0]
 startup failed due to previous errors
 Apr 10, 2014 2:21:40 PM org.apache.catalina.loader.WebappClassLoader
 clearReferencesThreads
 SEVERE: The web application
 [/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0] appears to have
 started a thread named [pool-4-thread-1] but has failed to stop it. This is
 very

Re: [rules-users] External Jar/Pojo in Drools Workbench.

2014-04-10 Thread Michael Anstis
There should be no need to extend the classes in the JAR using the Data
Modeller (unless you really want to of course).

Did you import all the classes your rule needs - if they are in different
packages - with the Config tab?

Can you please provide your JAR and a screen-shot of the rule you're trying
to author?




On 10 April 2014 12:58, Leonard93 leonardlinde...@hotmail.com wrote:

 Hello everyone, I have a small question/problem.

 I have created a class (POJO) in Eclipse and I want to be able to write
 rules over this class in the Drools Workbench, thus I exported the class
 and
 the classes it depends on (1 other class) to a Jar and imported it in the
 Drools workbench.

 Now what I did next is I added the jar dependency to my workbench project,
 created a new datamodel and set its super class to the external class from
 the jar and left the rest empty.

 When I then try to use this datamodel in a guided rule or anything I can
 access the variables defined in the external class fine when using the rule
 editor. But when I save I get various compiler errors.

 Currently I tried to make a rule template and I got these errors (I am
 using
 the standard example project to test it out):

 Unable to create Field Extractor for *'Destination'Field/method
 'destination'* not found for class '*org.mortgages.Test' *

 Unable to Analyse Expression *Destination ==
 GenericDataObject$Country.Germany*: [Error: unable to resolve method using
 strict-mode: *org.mortgages.Test.GenericDataObject$Country()]* [Near :
 {...*
 Destination == GenericDataObject$Country.Germ }]* ^ [Line: 9, Column:
 2]


 The class from the jar looks like this:
 public class GenericDataObject {

 public enum Country
 {
 Egypt,
 Germany,
 Turkey,
 France,
 Unknown
 }

 public GenericDataObject()
 {
 result = new Result();
 }

 public Result result;
 public Country Destination;

 public void setDiscount(int amount)
 {
 result.discount = amount;
 }
 }

 public class Result
 {
 public int discount;

 public Result()
 {
 discount = 0;
 }
 }



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/External-Jar-Pojo-in-Drools-Workbench-tp4029190.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] External Jar/Pojo in Drools Workbench.

2014-04-10 Thread Michael Anstis
OK, I imported your JAR and created a rule as shown below.

The Guided Rule Editor had the option to select the enums for Country.

Theonly issue I had was with Destination itself - as it should be a lower
case d. Drools Compiler did report an error that  is was ...Unable to
create Field Extractor for 'Destination'Field/method 'destination' not
found for class 'com.sample.GenericDataObject'. I suspect if you change
the field name to destination it would work OK.

This was with the latest code @master in github.

1.|package org.anstis.p1;2.|3.|import java.lang.Number;4.|import
 com.sample.GenericDataObject;5.|import
 com.sample.GenericDataObject.Airline;6.|import
 com.sample.GenericDataObject.Country;7.|import com.sample.Result;8.|9.|rule
 r110.|dialect mvel11.|when12.|GenericDataObject(
Destination == Country.Egypt )13.|then14.|end


On 10 April 2014 12:58, Leonard93 leonardlinde...@hotmail.com wrote:

 Hello everyone, I have a small question/problem.

 I have created a class (POJO) in Eclipse and I want to be able to write
 rules over this class in the Drools Workbench, thus I exported the class
 and
 the classes it depends on (1 other class) to a Jar and imported it in the
 Drools workbench.

 Now what I did next is I added the jar dependency to my workbench project,
 created a new datamodel and set its super class to the external class from
 the jar and left the rest empty.

 When I then try to use this datamodel in a guided rule or anything I can
 access the variables defined in the external class fine when using the rule
 editor. But when I save I get various compiler errors.

 Currently I tried to make a rule template and I got these errors (I am
 using
 the standard example project to test it out):

 Unable to create Field Extractor for *'Destination'Field/method
 'destination'* not found for class '*org.mortgages.Test' *

 Unable to Analyse Expression *Destination ==
 GenericDataObject$Country.Germany*: [Error: unable to resolve method using
 strict-mode: *org.mortgages.Test.GenericDataObject$Country()]* [Near :
 {...*
 Destination == GenericDataObject$Country.Germ }]* ^ [Line: 9, Column:
 2]


 The class from the jar looks like this:
 public class GenericDataObject {

 public enum Country
 {
 Egypt,
 Germany,
 Turkey,
 France,
 Unknown
 }

 public GenericDataObject()
 {
 result = new Result();
 }

 public Result result;
 public Country Destination;

 public void setDiscount(int amount)
 {
 result.discount = amount;
 }
 }

 public class Result
 {
 public int discount;

 public Result()
 {
 discount = 0;
 }
 }



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/External-Jar-Pojo-in-Drools-Workbench-tp4029190.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] Simplified view for business users

2014-04-09 Thread Michael Anstis
They're the only roles defined by default for kie-drools-wb:
https://github.com/droolsjbpm/kie-wb-distributions/blob/master/kie-drools-wb/kie-drools-wb-distribution-wars/src/main/jbossas7/WEB-INF/web.xml#L508

Roles developer, manager and user are used by kie-wb for jBPM related
aspects not in kie-drools-wb:
https://github.com/droolsjbpm/kie-wb-distributions/blob/master/kie-wb/kie-wb-distribution-wars/src/main/jbossas7/WEB-INF/web.xml#L528



On 8 April 2014 22:53, Vikas Verma vvick...@hotmail.com wrote:

 Any help on this? I am able to login using roles admin and analyst. But
 when I try to login using a role of developer or manager or user it
 gives me Login failed: Not Authorized.

 Appreciate your input.

 Thanks,
 Vikas.

 --
 From: vvick...@hotmail.com
 To: rules-users@lists.jboss.org
 Date: Mon, 24 Mar 2014 15:44:49 -0400

 Subject: Re: [rules-users] Simplified view for business users

 I am using both. And they work great. But so far I have been updating the
 guided decision table using the admin role. When I create a user in JBoss
 with user privileges, it wont allow me to even login to Drools workbench.
 I know guvnor had a different user management approach. But Drools
 workbench guide does not have enough info on this.

 Thanks,
 Vikas.
 --
 Date: Mon, 24 Mar 2014 19:12:14 +
 From: michael.ans...@gmail.com
 To: rules-users@lists.jboss.org
 Subject: Re: [rules-users] Simplified view for business users

 Use of Drools Workbench and KieScanner would provide a solution.


 On 24 March 2014 18:36, vvicky72 vvick...@hotmail.com wrote:

 I have to expose a guided decision table to some non technical users. Is
 there a different view that they can use to modify/add/delete rows in a
 guided decision table and do a hot deploy?

 Using Jboss AS7.

 Thanks,
 Vikas.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Simplified-view-for-business-users-tp4028940.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

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

Re: [rules-users] External Imports

2014-04-03 Thread Michael Anstis
These should be added as Import suggestions in the Project Editor in the
Authoring Perspective.

Sent on the move
On 2 Apr 2014 22:22, vvicky72 vvick...@hotmail.com wrote:

 I am using the latest drools wb on jboss as7.

 Trying to add java.lang.ArrayList to the project.imports. But the New item
 button is disabled. Screen shot attached. Any ideas?
 http://drools.46999.n3.nabble.com/file/n4029102/DroolsCannotImport.jpg

 Thanks,
 Vikas.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/External-Imports-tp4029102.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] problem deploying guvnor in Jboss Wildfly8.0.0.Final

2014-04-02 Thread Michael Anstis
Guvnor only existed as a web application up to 5.6.x.

Thereafter (i.e. 6.x) you need to clone drools-wb (
https://github.com/droolsjbpm/drools-wb) or one of the other distributions (
https://github.com/droolsjbpm/kie-wb-distributions).

See
http://blog.athico.com/2013/06/goodbye-guvnor-hello-drools-workbench.html.

With kind regards,

Mike


On 2 April 2014 14:30, Sandhya Sree sandhyachinna...@gmail.com wrote:

 Hi,
 I want to deploy drools guvnor in Jboss Wildfly 8.0.0 Final in windows 7.
 I have git cloned https://github.com/droolsjbpm/guvnor
 and built it using maven.
 Im following this :
 http://blog.athico.com/2013/05/how-to-build-and-run-drools-and-guvnor.html
 But I dont find any war file.
 What is the next step to be done?

 Thanks.

 ___
 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] kie-drools workbench 6.0.1 on WebSphere 8.5.5

2014-04-01 Thread Michael Anstis
https://github.com/droolsjbpm/kie-wb-distributions

Depends if you want kie-wb or kie-drools-wb as to the child folder you need.

Build whichever you need with -Dfull.


On 1 April 2014 14:35, Shrinath Managuli shrinath.manag...@aspiresys.comwrote:

  Could you provide the link to that WAS!



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* 01 April 2014 19:03
 *To:* Rules Users List
 *Subject:* Re: [rules-users] kie-drools workbench 6.0.1 on WebSphere 8.5.5



 There is a WAS distribution you can try (for the next release, or grab it
 from github).



 It was no simple exercise making it work on WAS.



 On 1 April 2014 14:28, Shrinath Managuli shrinath.manag...@aspiresys.com
 wrote:

 Hi all,

   I'm trying to tweak with workbench war meant for tomcat 7 work for
 webshpere 8.5.5.

 Has anyone tried this combination yet?

 Errors:

 (1)   com.ibm.ws.amm.scan.context.ScannerContextImpl getInputDataForClass
 Failed to open resource [ 1/0/org/apache/xml/resolver/CatalogManager.class
 ] from module [ WEB-INF/lib/jaxb-xjc-2.2.5.jar ]

 (2)   ERROR Unable to build index of kmodule.xml
 url=wsjar:file:/D:/Program%20Files%20(x86)/IBM/WebSphere/AppServer/profiles/AppSrv01/installedApps/Aspire1206Node01Cell/kie-drools-wb-distribution-wars-6_0_1_Final-tomcat7_0_war.ear/kie-drools-wb-distribution-wars-6.0.1.Final-tomcat7.0.war/WEB-INF/lib/drools-wb-rest-defaultapprover-6.0.1.Final.jar!/META-INF/kmodule.xml



 -Shrinath Managuli



 [image: Image removed by sender. Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.


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


  [image: Aspire Systems]

 This e-mail message and any attachments are for the sole use of the
 intended recipient(s) and may contain proprietary, confidential, trade
 secret or privileged information. Any unauthorized review, use, disclosure
 or distribution is prohibited and may be a violation of law. If you are not
 the intended recipient, please contact the sender by reply e-mail and
 destroy all copies of the original message.

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

inline: ~WRD000.jpg___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Error Creating New project

2014-03-28 Thread Michael Anstis
What is with the merged deployment changes?


On 28 March 2014 19:28, Joe White joe.wh...@recondotech.com wrote:

  I received this error in the drools workbench when creating a new
 project:



 Unable to complete your request. The following exception occurred:
 java.lang.NoSuchMethodError:org.guvnor.common.services.project.events.NewProjectEvent.
 (Lorg/guvnor/common/services/project/model/Project;Lorg/uberfire/rpc/SessionInfo;)V.



 The project was not created but once I refreshed the browser it showed up.
 Should I assume my project is corrupt or is it valid?



 This is on 6.0.1 final (with the merged deployment changes).



 Thanks

 Joe



 ___
 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] Error Creating New project

2014-03-28 Thread Michael Anstis
It could be that the Guvnor jar you replaced contained the event class that
is shown in the error hasn't been linked correctly and a recompilation of
drools-wb would be needed.

The event just ensures the Project Explorer is updated to show the new
project; so the error is safe to ignore for all intents and purposes.

Sent on the move
On 28 Mar 2014 19:36, Joe White joe.wh...@recondotech.com wrote:

  I merged the changes we made to deploy to remote repositories back into
 6.0.1 so that I could continue to test. I don't believe it is related but
 wanted to be clear I wasn't on the blessed war.



 *From:* rules-users-boun...@lists.jboss.org [mailto:
 rules-users-boun...@lists.jboss.org] *On Behalf Of *Michael Anstis
 *Sent:* Friday, March 28, 2014 1:30 PM
 *To:* Rules Users List
 *Subject:* Re: [rules-users] Error Creating New project



 What is with the merged deployment changes?



 On 28 March 2014 19:28, Joe White joe.wh...@recondotech.com wrote:

  I received this error in the drools workbench when creating a new
 project:



 Unable to complete your request. The following exception occurred:
 java.lang.NoSuchMethodError:org.guvnor.common.services.project.events.NewProjectEvent.
 (Lorg/guvnor/common/services/project/model/Project;Lorg/uberfire/rpc/SessionInfo;)V.



 The project was not created but once I refreshed the browser it showed up.
 Should I assume my project is corrupt or is it valid?



 This is on 6.0.1 final (with the merged deployment changes).



 Thanks

 Joe




 ___
 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] Editing Action in Guided decision table ruins the action.

2014-03-27 Thread Michael Anstis
This has been fixed for the next release.


On 27 March 2014 10:38, Ioannis Christodoulou io.chris...@gmail.com wrote:

 Hello everyone,
 I'm using the latest stable kie workbench (6.0.1.Final) and I have created
 a guided decision table containing an action with free form brl.

 Whenever I try to edit this action and press apply changes, kie workbench
 will duplicate the action (creating the new/edited action, while keeping
 the old one) and will not allow me to remove (by clicking on the minus
 icon) the old action.

 If I try to validate the guided decision table, I get an error saying
 Unable to complete your request. The following exception occurred:
 rowData contains a different number of columns to those provided.

 The only solution I found is to remove the action that I need to edit and
 re-create it. But this means that I have to re-enter the parameters in my
 rules.

 Example action:
 /*MyUtils is a custom class and I am calling a static method passing
 arguments: a string taken as a parameter from each rule and a Level object
 matched in the rule.
 */
 MyUtils.calculateLevel( @{level_value}, $level);

 The issue appears if I try to change that by clicking on the edit (pencil)
 icon to (or any other change actually):
 MyUtils.calculateLevel(@{level_value}, @{another_value}, $level);

 Kind regards

 ___
 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] Simplified view for business users

2014-03-24 Thread Michael Anstis
Use of Drools Workbench and KieScanner would provide a solution.


On 24 March 2014 18:36, vvicky72 vvick...@hotmail.com wrote:

 I have to expose a guided decision table to some non technical users. Is
 there a different view that they can use to modify/add/delete rows in a
 guided decision table and do a hot deploy?

 Using Jboss AS7.

 Thanks,
 Vikas.



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Simplified-view-for-business-users-tp4028940.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

  1   2   3   4   5   6   7   8   9   10   >