Closed yBqdo2VLaCdftea1MqgSdtEhrPZtV5oJRr4eIUo closed 6 months ago
In Broadway null has an implicit conversion to every supported primitive type (String, Long, etc). The NullValue actor assigns the Object with the null value specifically. You should do one of the following:
Hi Nataly, If I change input param to be an Object - via LuParam - inptut param - set schema
{ "type": "object" }
then I still get empty string in my java function as an input (or you meant to say I have to change it in Java function from String to Object)?
If I use NullValue -> MapCreate -> LuParam as you proposed in option 2 above - then I get my input as "{}" (it loos like it is getting converted to the type I have under java function for this param):
and result in debugger:
Is there something wrong in how I use MapCreate ? I have just one input as input1 defined as link:
Best regards, Andrey
I meant that you need to define the Java function input as Object.
Hello, I'd like to call a java function from my BW flow using LuFunction actor. Function that I'm calling has few input parameters and I need to set few of them into null value. When I'm trying to do so using NullValue actor in front - I still see that my LuFunction is getting empty String object (for inputs defined as String type) instead of null:
This is how it is in the flow - for reference only for executionNote input:
and this is what I see from debugger:
For reference - these are all my input params defined in java function and as I see null is coming only for Object datatype and always initialized into "" or 0 or 'false' for Primitive datatype (like Integer, Boolean, String, Long).
Is there any way to make inputs as null for all datatypes?
Best regards, Andrey