dschulten opened a new issue, #3648:
URL: https://github.com/apache/incubator-kie-tools/issues/3648

   In the KIE Sandbox I am executing a DMN Model that passes an input `Foo` of 
type `number` to a Context Boxed Expression named `Baz`. In the Context I refer 
to the input `Foo`, and I try to handle null:
   
   ```
   Bar: if Foo 
   
   = null then 0 else Foo
   result: Bar
   ```
   
   When I click **Execute** in the KIE Sandbox, and do not enter a value for 
`Foo` angebe, then my context is not evaluated, and I see the error message 
**Required dependency 'Foo' not found on Node 'Baz'**.
   
   It appears this happens because the execution form in the sandbox does not 
send `null` for empty inputs of type number:
   
   ```
   {
     "Foo": null
   }
   ```
   
   Rather, it sends an empty object to /jitdmn/dmnresult:
   
   ```
   {}
   ```
   Is there a way to send null as input value for an input of type number in 
the Sandbox execute form? Changing the Language of my Bar expression to B-FEEL 
does not help.
   
   Note: If I switch the type of `Foo` to `Any`, the Sandbox form sends an 
empty string to the extended services, which also does not seem quite right - I 
would have expected the form to send `null` for an empty string field as well.
   
   Version info:
   Build Version:
   10.2.0
   Kogito Runtimes Version:
   10.2.0
   Quarkus Version:
   3.27.2
   Dev Deployments Base image URL:
   docker.io/apache/incubator-kie-sandbox-dev-deployment-base:10.2.0
   Dev Deployments Quarkus Blank App image URL:
   
docker.io/apache/incubator-kie-sandbox-dev-deployment-quarkus-blank-app:10.2.0
   Dev Deployments DMN Form webapp image URL:
   http://localhost:8086
   Extended Services version:
   10.2.0
   Commit SHA:
   116e8d86d
   
   Edge, Windows 11
   
   (rename file extension from .dmn.xml to .dmn before opening with tools)
   [Fails to send null for empty 
field.dmn.xml](https://github.com/user-attachments/files/29753065/Fails.to.send.null.for.empty.field.dmn.xml)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to