Ad Widget

Collapse

Create a Trigger That Activates Only If Other 2-3 Triggers' Conditions Are Not Met

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yusfu
    Junior Member
    • Aug 2025
    • 2

    #1

    Create a Trigger That Activates Only If Other 2-3 Triggers' Conditions Are Not Met

    Hello, I'm a first-timer here.

    My problem is that I want to create a trigger 'A' that acts as a fallback trigger. This means if the conditions for my other triggers 'B' and 'C' are not met, trigger 'A' should activate. However, if the conditions for triggers 'B' or 'C' are met, trigger 'A' should remain inactive. I don't want trigger 'A' to check whether 'B' or 'C' are active; it should activate only when the conditions for 'B' or 'C' are not met. I have many triggers, so I can't include the conditions of other triggers in 'A'.

    Is there solution for this case?

    Thank you.
  • yusfu
    Junior Member
    • Aug 2025
    • 2

    #2

    At first, trigger dependencies looked like they could solve my issue, but they’re not quite right.

    I’ve got 10 specific triggers, each tied to a known error pattern in a log file. The reason I created specific triggers is they can resolve themself. These are fixed and clear-cut. On top of that, I have one general trigger to catch any unexpected or unknown errors that don’t match the known patterns and the can't resolve themself.

    What I need is:
    • If a known error pops up and one of the specific triggers fires, the general trigger shouldn’t activate for that same log entry.
    • But if the log has an unknown error (one that doesn’t match any known patterns), the general trigger should fire on its own.

    The problem with trigger dependencies is they’re too strict. If I use them, the general trigger gets blocked whenever any specific trigger fires, even if the errors are unrelated. This means I can’t catch known and unknown errors at the same time, which isn’t what I want.

    So, trigger dependencies don’t cut it. I need something more like conditional logic.
    Last edited by yusfu; 04-08-2025, 14:26.

    Comment

    Working...