0 Replies Latest reply on Jun 22, 2010 6:14 AM by ediblespread

    What is the format for sql-dates in Guvnor Test Scenarios?

    ediblespread

      Question is in the title really. Have a Java model for Drools, which includes a few tables with SQL Date fields (using java.sql.Date). How do I represent these in a Drools test scenario when testing my rules? Using the yyyy-mm-dd format gives back an error:

       

      ...could not access/write property (date) in...

       

      I've tried a few formats, but I'm yet to hit upon the right one. I know Drools can accept SQL dates as I can successfully load tables into the knowledge base, I just don't know what format to input them as in tests!

       

      This is how the input looks atm:

       

      http://imgur.com/3na7M.jpg