Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1053

Change date formats for JSON representations used in the REST API

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Done
    • Major
    • 6.4.0.Beta2
    • 6.3.0.Final
    • kie server
    • None
    • NEW
    • NEW

    Description

      The format for dates are are using milliseconds form, for example:

      {
          "request-instance-id" : 4,
          "request-status" : "QUEUED",
          "request-message" : "Ready to execute",
          "request-retries" : 3,
          "request-executions" : 0,
          "request-command" : "org.jbpm.executor.commands.PrintOutCommand",
          "request-scheduled-date" : 1455069600000
        }
      

      The problem with this format is that it is not readable and might confuse users using other ways to communicate with the kie server than using its REST API.

      The suggested solution is use a Jackson object mapper to configure the desired date format. This is better explained in this article:

      http://wiki.fasterxml.com/JacksonFAQDateHandling

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            rhn-support-wsiqueir William Siqueira
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: