I have an AES event that sends an email. If the event fails within Syteline, then a record of this is written to the Event States IDO. I want to get those results to write to a custom table. I am finding a couple of issues with this:
1. If the email fails, the event doesn't seem to process any actions after that.
2. The Event State only records failures, which is fine, but it seems odd there is not a complete record for events.
3. There is a delay from the time the email is sent until the Event State ido is updated. I tried the below, but it just seems to loop until it hits the maximum retries on the event and then nothing.
If you have done something like this, and can offer some assistance, I appreciate it.
620 |
Load IDO Row |
Get Event Status |
1 |
IDO("EventStates")PROPERTIES("Status, AnyHandlersFailed, Result, EventParmId")FILTER(SUBSTITUTE("RowPointer = '{0}'", EVENTSTATEID()))SET(RV(EventStatus) = "Status", RV(EventAnyHandlersFailed) = "AnyHandlersFailed", RV(InfoBar) = "Result", RV(VarEventParmId) = "EventParmId") |
622 |
Branch |
The Event is still running retest |
1 |
CONDITION(V(EventStatus) = 2) DEST(700) |
625 |
Branch |
The Event has failed |
1 |
CONDITION(V(EventStatus) = 1 OR V(EventAnyHandlersFailed) = 1) DEST(800) |
630 |
Branch |
Exit the event Finished In Success |
1 |
CONDITION(V(EventStatus) = "0" AND V(EventAnyHandlersFailed) = 0)DEST(900) |
700 |
Wait |
|
1 |
CONDITION(1=1) RETEST(5) |
710 |
Branch |
The Retest the event is running |
1 |
CONDITION(1 = 1) DEST(620) |