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

How to pass array to DMN input variable

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Closed
    • Priority: L1 - Blocker
    • Resolution: None
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: dmn-engine, dmn-ui
    • Labels:
      None
    • Title Keywords:
      JSON

      Description

      I have a scenario I came across where I have a list (json array) want to pass to DMN input and find all of the matches. Based on the matches i need one output (to achive one output i am using Hitcollection aggregation "SUM").

      Attaching my DMN for your testing.

      I am using REST APi for my implementation.

      with one input request
      ================================
      {
      "variables" : {
      "system" :

      { "value" : "System 3", "type" : "string" }

      ,
      "value" :

      { "value" : 30, "type" : "integer" }

      }
      }

      Output
      ==========
      [{"user":{"type":"Integer","value":300,"valueInfo":{}}}]

      With mulitple input - Need a solution for the same
      =======================================================
      {
      "variables" : [{
      "system" :

      { "value" : "System 3", "type" : "string" }

      ,
      "value" :

      { "value" : 30, "type" : "integer" }

      }]
      }

      Output
      =============

      { "type": "MismatchedInputException", "message": "Cannot deserialize instance of `java.util.LinkedHashMap` out of START_ARRAY token\n at [Source: (org.camunda.bpm.engine.rest.filter.EmptyBodyFilter$1$1); line: 2, column: 17] (through reference chain: org.camunda.bpm.engine.rest.dto.dmn.EvaluateDecisionDto[\"variables\"])" }

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            donekjose Don
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: