Page 1 of 1

User-defined Condition

Posted: 12 Oct 2017 08:58
by Gilleshander
Hi,
I would need to define my own conditions, i.e set some personnal flows that should always return true or false, and would appear in the conditions list, or a kind of "User defined" condition list.
Some workarounds are possible today (execute a flow or script, set a variable to test outside...) but this is not natural and add complexity to flow (loss of readability).
Thanks

Re: User-defined Condition

Posted: 12 Oct 2017 14:24
by Desmanto
Your flow always return true/false, means it can be stored into single variable. Just use Global Variable, example : global_personnal. Then to check the condition, just use expression

Code: Select all

global_personnal

Re: User-defined Condition

Posted: 13 Oct 2017 08:25
by Gilleshander
Desmanto wrote:Your flow always return true/false, means it can be stored into single variable. Just use Global Variable, example : global_personnal. Then to check the condition, just use expression

Code: Select all

global_personnal
Hi,
Thanks for your answer, yes I know it can work like that, but this is precisely what I'd like to avoid. My idea is to get a kind of "legacy" graphical condition block in the editor (I'm just a bit pertectionist ;) )

Re: User-defined Condition

Posted: 13 Oct 2017 09:17
by Desmanto
Umm, if you only need it to be show as the text you want, why don't just rename that expression? Uncheck the default name, and put the name you want it to appear at the flow.