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):
- Deploy the bpmn and dmn that are attached.
- Create a new process instance.
- Process it to UserTask2
- Open Cockpit
- Click on Decisions
- Select Test_Decision1
- Select the newly created instance
- 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.