April 27, 2022, 12:35pm
i am having 4 code num, each code extracting some fields.
one time we are getting one code only, base on that code we will extract the particular code felids.
code num1-- name
In code num1 – if any one of the field(name or age …) is missing we should throw an exception. same for each and every code.
what will be the logic here can any one help me.
how build this sequence.
April 27, 2022, 12:40pm
You can use an If statement on the output and use the condition:
In the Then path you can have a throw and in the Else it can just be left empty or a log message
April 27, 2022, 1:09pm
@moulton, i am having not a single field, like 5 to 6 fields in each code in that case should i apply each and every field in if condition.
April 27, 2022, 1:12pm
@meeraa , I’m sure you could find a way to fit it into one line of code, but having 5 to 6 If statements with clear exception messages will be the quickest to develop and the most straightforward for other developers to understand
April 27, 2022, 1:23pm
@moulton , how to add not for String.IsNullOrWhiteSpace(YourString)
April 27, 2022, 1:36pm
String.IsNullOrWhiteSpace(YourString) = False
This should put the happy path into the ‘then’ path
April 27, 2022, 7:25pm
@meeraa Trt the below workflow
Example.zip (11.2 KB)
June 13, 2022, 3:19am
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.