Flow Designer - if statement not being evaluated

othomas1
Kilo Guru

Hello everyone,

I have a flow where i execute several actions, the output form the action looks like this:

find_real_file.png

Output setup of vm-dcom-setup:

find_real_file.png

My if statement in the flow, says "If output doesnt contain failure=0" create a catalog task

find_real_file.png

 

When the testing, the flow gives an error after getting past the vm-dcom-setup step:

1 ACCEPTED SOLUTION

Hitoshi Ozawa
Giga Sage
Giga Sage

It seems like a problem with the output variable type.

I've tried with outputting a String and didn't get any error. The thing that seems odd is the output variable name of the Script step being "Outputs". In my instance, names are converted to lowercase. Also, having a name "outputs" would require a statement "outputs.outputs" in the script step to set a value because "output" is a name of one of the parameter in method execute(inputs, outputs).

 

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

View solution in original post

4 REPLIES 4

Sourav16
Kilo Guru

Hi,

You can test your flow on the flow designer itself using the test button.

find_real_file.png

After the test is performed it will show a message show it has executed the flow like this : -

find_real_file.png

You can click on the click here message which will open the execution details of the flow there can you find why the if statement is not being evaluated.

 

Thanks,

Sourav

 

Hitoshi Ozawa
Giga Sage
Giga Sage

Not sure but if the output variable of the custom action is "dcom-setup_answer", there should be a data pill on the right side with that name. This variable should be used in the if statement instead of "output".

If I'm in the wrong, would appreciate showing me how the if condition is setup.

Hi @Hitoshi Ozawa my dcom-setup_answer pill is being used in the if statement.

 

find_real_file.png

Hitoshi Ozawa
Giga Sage
Giga Sage

It seems like a problem with the output variable type.

I've tried with outputting a String and didn't get any error. The thing that seems odd is the output variable name of the Script step being "Outputs". In my instance, names are converted to lowercase. Also, having a name "outputs" would require a statement "outputs.outputs" in the script step to set a value because "output" is a name of one of the parameter in method execute(inputs, outputs).

 

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png

find_real_file.png