Detect when a Flow Graph Ends

FlowCanvas Forums Support Detect when a Flow Graph Ends

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1451
    edwoodgrant
    Participant

    Hello,

    I’ve created a custom event node that triggers when I press an action Button.
    Of course if I press the button again. The event will trigger again.
    My idea is to disable the event execution up until the flow itself end, then I re-activate it again so I can press the button again.

    Is there a way to do this? I would love to be able to detect when a flow ends from the event unit so I can let the evento node fire again.

    Thanks a lot,

    PS: I know there is a “Finish” node… and I suppose I can use this to block the trigger until the flow finishes, but I would love to see if I can do this without having to resort to every flow have this node executing.

    #1452
    Gavalakis
    Keymaster

    Hello,

    Hmm. A custom event is basically similar to calling a function and -like you said- calling it again, would always be possible as long as the flowScript is actively running. One thing you can do, would be to check some kind of condition right after the event node, and continue only when that condition allow it. Here is an example of what I mean using a boolean variable, but the condition could be just about anything returning a boolean value.
    SwitchCondition

    Let me know if this would works for you.
    Thanks.

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #1454
    edwoodgrant
    Participant

    Thanks a lot for the response. I guess I would want to be able for the flow creator not to have to do this everytime. Mostly as a convenience thing, so they wouldn’t have to do it for “every” FlowCanvas diagram that requires this type of configuration. (imagine a scenewith 20 or 30 events of the same style for example, it could be daunting and error prone).

    Its not THAT a big deal though, but I think I may find a possible solution using some kind of macro (like the same thing you posted it, but just in macro from possibly at the beginning of a node), or maybe just having one node that “terminates the event”, so they would only use one node at the end.

    Well, in any case thanks for the help, I’ll see I can find something that requieres even less diagram manipulation 🙂 and I’ll post it if I find it.

    #1456
    Gavalakis
    Keymaster

    Great 🙂 Thanks a lot for the follow up.
    Of course, please do post here if you find a better way of handling what you are after! 🙂
    I will also dig into this a bit more to see if I can find some kid of a feature to implement to make this easier to handle.
    Thanks again!

    Join us on Discord: https://discord.gg/97q2Rjh

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.