Skip to content

Signal_Action_Failure

Definition

<signal_action_failure reason="failure_reason"/>

The plan item that will make a perform plan stop running, indicating failure through the output of a "report(action_status(some_action, aborted(failure_reason)))" move.

Attribute Type Description
None. - -

Parents

Children

None.

Behaviour

The <signal_action_failure/> will make TDM treat the perform goal of the current plan as failed. This means that the remains of the plan (if any) will not be executed, and that a report move indicating failure (see above) will be output.

The failure reason is a string, which doesn't need to be declared in any way.

Examples

Signal_Action_Failure element indicating the failure reason of "no_money"

<signal_action_failure reason="no_money"/>

Examples

Goal that will always fail with the reason "phone_not_avalable"

<goal type="perform" action="action_that_always_fail">
    <plan>
        <signal_action_failure reason="phone_not_available"/>
    </plan>
</goal>

Last update: January 31, 2022