I’m trying to use the flow switch activity to read the value of an aaname attribute (string) of a window and then, do some actions according with the value.
I have change the typeArgument of the flow switch activity to String and in the “Case” attribute I type the different possible strings for example:
- “Execution OK”
- " Execution OK "
But I have some doubts:
- Should I write the strings between " " or ’ '? The flow always goes to the default case even if the string seems to match. I have read that I don’t have to use " or ’
- Can I use wildcards at the beginning or end of the string? Some of the strings start with spaces and when I create the case, the activity clear the spaces so it can be a reason why the flow selects de default case.
When I type in the case Execution OK with or without " or ', it doesn’t work and the flow finishes going to the default case when the string is " Execution OK ".
Thanks in advance