Search on String variable containing only digits does not work

XMLWordPrintable

    • Type: Bug Report
    • Resolution: Unresolved
    • Priority: L3 - Default
    • None
    • Affects Version/s: None
    • Component/s: cockpit

      What are the steps to reproduce your problem?

      1. Start the process with a String variable with value starting with 0 and containing only digits, e.g. 0012345
      2. In Cockpit from the process view, add a filter on process variables like VariableName = 0012345.

      What is the problem?
      Search by variable value does not return process instance

      What would be the expected behavior:
      The corresponding process instance is shown

      Hints (optional):
      Before sending the value to backend, we perform type detection, which converts any string, containing only digits to number. This means that variables of type string containing only digits will never be found.
      -> wider affected case is: any String variable containing digits (not specifically with leading zeros).

      Possible solutions:
      1. If value contains leading zeros, treat it as a String (will solve only specific case with leading zeros)
      2. Allow entering values with quotes, which will mean, that the content inside quotes is a String, e.g. if you enter "235", it will be passed as a String to the backend, but if you enter 235, it will be passed as a number.

        This is the controller panel for Smart Panels app

              Assignee:
              Unassigned
              Reporter:
              Svetlana Dorokhova
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: