We couldn't load all Actvitity tabs. Refresh the page to try again.
If the problem persists, contact your Jira admin.
Uploaded image for project: 'camunda BPM'
  1. camunda BPM
  2. CAM-9675

How to pass array to DMN input variable

    • Icon: Bug Report Bug Report
    • Resolution: None
    • Icon: L1 - Blocker L1 - Blocker
    • None
    • None
    • dmn-engine, dmn-ui
    • None

      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\"])" }

        This is the controller panel for Smart Panels app

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

            How to pass array to DMN input variable

              • Icon: Bug Report Bug Report
              • Resolution: None
              • Icon: L1 - Blocker L1 - Blocker
              • None
              • None
              • dmn-engine, dmn-ui
              • None

                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\"])" }

                  This is the controller panel for Smart Panels app

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

                          Created:
                          Updated:
                          Resolved:

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

                                Created:
                                Updated:
                                Resolved: