[jboss-jira] [JBoss JIRA] (DROOLS-2529) I want to compare dates in decision table

Edson Tirelli (JIRA) issues at jboss.org
Mon May 7 08:43:01 EDT 2018


    [ https://issues.jboss.org/browse/DROOLS-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572057#comment-13572057 ] 

Edson Tirelli commented on DROOLS-2529:
---------------------------------------

[~metabrez] : the mailing list is the best place to ask for help about how to use the engine. Please take a look at the www.drools.org website for instructions to send your questions to the mailing list where the community will be happy to help you. If you or your company have a Red Hat subscription, please open a ticket at the customer portal instead and the Red Hat team will be happy to help you.

I am closing this ticket, but just to give you a quick pointer, dates can be compared like any other comparable value, using <, <=, > and >= operators. Alternatively you can use temporal operators, like "after", "before", etc. Please refer to the docs for the temporal operators.

I am closing this ticket.


> I want to compare dates in decision table
> -----------------------------------------
>
>                 Key: DROOLS-2529
>                 URL: https://issues.jboss.org/browse/DROOLS-2529
>             Project: Drools
>          Issue Type: Feature Request
>            Reporter: Shamsh Tabrez
>            Assignee: Edson Tirelli
>
> I want to compare dates in drools decision table.I have purchasedDate column in decision table.I am passing the date value as 25-Apr-2015 and want to compare whether this passed value is greater than the date mentioned in drools decision table.If it is greater then fire the rools.
> Will anyone help me in this regard how to compare dates in drools decision table?
> Thank you.



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)


More information about the jboss-jira mailing list