What is the best way to perform a date comparison in a decision table?

Solution Verified - Updated -

Issue

  • If you have a decision table where one of the condition columns is used to compare a date, to see if the test value is more recent than a certain value. For example, the values are 3 months ago and 9 months ago. You can use the following code:


    new Date(new Date().getYear(), new Date().getMonth() - 9, new Date().getDate())

    but this code is not fine for a business analyst.

  • What is the best way to perform a date comparison in a decision table?

Environment

  • Red Hat JBoss BRMS
    • 6.0.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content