Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-14423

Cockpit Decision View shows date variables as invalid when they are not

XMLWordPrintable

      Environment (Required on creation):

      Production

      Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket):

      a DMN table that is used to determine a boolean result.

      We noticed that a specific input row is highlighted in red in the cockpit console and were unclear on why. (see screen shot)

      This field is a datetime field being passed in.

      Steps to reproduce (Required on creation):

      1. Deploy the bpmn and dmn that are attached.
      2. Create a new process instance.
      3. Process it to UserTask2
      4. Open Cockpit
      5. Click on Decisions
      6. Select Test_Decision1
      7. Select the newly created instance
      8. The Date field will be red

      Observed Behavior (Required on creation):

      Date fields are red in the Decisions tab of Cockpit when displaying a process instance with a date field

      Expected behavior (Required on creation):

      The field should not be red indicating its an invalid value.

      Root Cause (Required on prioritization):

      The date value from the form was in a `string` format, which also contained the timezone portion of the date. This meant that this line of the `isType` function returned `false` to the `info.valid` property.

      Solution Ideas (Optional):

      Solution 1: Update the DATE_PATTERN to account for the timezone portion of the date.

      Solution 2: Convert the date value from `string` to `Date` within the dateToString function.

      Solution 3: Convert the date value from `string` to `Date` within the inputTable view.

      Hints (optional):

        This is the controller panel for Smart Panels app

              clifton.davies Clifton Davies
              richard.kohl Richard Kohl
              Clifton Davies Clifton Davies
              Tassilo Weidner Tassilo Weidner
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: