[rules-users] Drools calculation of a date function

2014-06-16 Thread Ravi
Hi,
 
 I am new to drools. I want to write a function that accepts two strings and 
 returns a date. The two strings are one for the payment frequency and the 
 other for the payment day. Following are my requirements:
 
 1.If the payment frequency is daily, return current date
 2.If the payment frequency is weekly and the payment day is let's say Monday, 
 and the current day is Monday, then return current date. If the current day 
 is Monday and the payment day is Tuesday, return current date + 1. Likewise, 
 if the payment day is Wednesday, return current date + 2.
 3.If the payment frequency is monthly and payment day is 15, retrieve the 
 current month and current year and return MM-15-.
 Please help me write a function for this. Thank you so much in advance.
 

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


Re: [rules-users] Drools calculation of a date function

2014-06-16 Thread Wolfgang Laun
Simply write a (static) Java function - it can be easily incorporated
into DRL code so that you can use it in rules.

BTW: This list is not a Programming Service. If you'd like to hire a
consultant: there are people on this list that might help you.

-W

On 16/06/2014, Ravi gravisand...@gmail.com wrote:
 Hi,

 I am new to drools. I want to write a function that accepts two strings
 and returns a date. The two strings are one for the payment frequency and
 the other for the payment day. Following are my requirements:

 1.If the payment frequency is daily, return current date
 2.If the payment frequency is weekly and the payment day is let's say
 Monday, and the current day is Monday, then return current date. If the
 current day is Monday and the payment day is Tuesday, return current date
 + 1. Likewise, if the payment day is Wednesday, return current date + 2.
 3.If the payment frequency is monthly and payment day is 15, retrieve the
 current month and current year and return MM-15-.
 Please help me write a function for this. Thank you so much in advance.


 ___
 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 LaKhI ReDdY!!!!!!!!!!!
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

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

[rules-users] SelectionFilterChangeMove question

2014-06-16 Thread dBijkoo
i have a class ChangeMoveFilter which implements
SelectionFilterChangeMoveSelector to sort out moves that break hard
constraints.

In the config it looks like this 
constructionHeuristic
queuedEntityPlacer
entitySelector id=placerEntitySelector
cacheTypePHASE/cacheType
/entitySelector
changeMoveSelector
*filterClasssolver.move.ChangeMoveFilter/filterClass*
entitySelector mimicSelectorRef=placerEntitySelector/
valueSelector
cacheTypePHASE/cacheType
/valueSelector
/changeMoveSelector
/queuedEntityPlacer
/constructionHeuristic

However I am getting the impression that the overridden accept function is
called before anything changed in the entity. Because the (only)
planningvariable of the entity is still null, which would never be able to
happen in my understanding.

Am i missing something or is the filter move called before anything changes
in the given entity?



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


Re: [rules-users] Workbench and GIT Repo High Availability

2014-06-16 Thread 706826
Hi Alexandre,

Does this also means that we need to create ZNodes manually.



--
View this message in context: 
http://drools.46999.n3.nabble.com/rules-users-Workbench-and-GIT-Repo-High-Availability-tp4029538p4030064.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


Re: [rules-users] Possible problem in PathMemory

2014-06-16 Thread Mario Fusco
Hi Jinghai,

I reproduced the problem you reported and pushed a fix for it:
https://github.com/droolsjbpm/drools/commit/83f80c83f

Your reproducer have been very very helpful.

Thanks a lot,
Mario



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


Re: [rules-users] Possible problem in PathMemory

2014-06-16 Thread raojinghai
Hi Mario,

Awesome. Thank you so much for fixing it promptly.

Thanks.

Jinghai


On Mon, Jun 16, 2014 at 6:42 AM, Mario Fusco mario.fu...@gmail.com wrote:

 Hi Jinghai,

 I reproduced the problem you reported and pushed a fix for it:
 https://github.com/droolsjbpm/drools/commit/83f80c83f

 Your reproducer have been very very helpful.

 Thanks a lot,
 Mario



 --
 View this message in context:
 http://drools.46999.n3.nabble.com/Possible-problem-in-PathMemory-tp4030026p4030065.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