I have a Web Scenario which activates a Trigger which fires an Action. This is all working fine. But I'm running into a situation where the initial running of the Action doesn't seem to fix the problem.
I'd like to have a subsequent Action that checks the status of a Trigger again, 2 minutes later, and if it is STILL active (i.e. the service is down) then it should try an additional Operation.
I've looked at {Trigger.Value} to determine the state of a Trigger, but it doesn't seem like you can use this in an Action -> Operation step. And Operation steps don't appear to allow for conditional execution. Something like this pseudo code:
- Service goes down
- Trigger goes active
- Action -> Operation is performed (attempt to restart service)
- Loop
Is Trigger still active? Is service still down?
Perform Action -> Operation (same as above - or could be slightly different)
- End Loop
Hmm...maybe the solution is just a 2nd Trigger that has a longer sequence of necessary failures. My current trigger goes active when it fails for 2 consecutive tests. Maybe I need another one that goes active when it fails for 4 or 5 consecutive tests.
I'd like to have a subsequent Action that checks the status of a Trigger again, 2 minutes later, and if it is STILL active (i.e. the service is down) then it should try an additional Operation.
I've looked at {Trigger.Value} to determine the state of a Trigger, but it doesn't seem like you can use this in an Action -> Operation step. And Operation steps don't appear to allow for conditional execution. Something like this pseudo code:
- Service goes down
- Trigger goes active
- Action -> Operation is performed (attempt to restart service)
- Loop
Is Trigger still active? Is service still down?
Perform Action -> Operation (same as above - or could be slightly different)
- End Loop
Hmm...maybe the solution is just a 2nd Trigger that has a longer sequence of necessary failures. My current trigger goes active when it fails for 2 consecutive tests. Maybe I need another one that goes active when it fails for 4 or 5 consecutive tests.
Comment