Signal Action Completion¶
Definition¶
<signal_action_completion/>
The plan item that will make an action being considered as completed.
| Attribute | Type | Description |
|---|---|---|
| postconfirm | boolean | Optional. The attribute decides if a report move (see below) should be generated when the plan is downdated. If set to false, no report move is generated. Defaults to true. |
| action | string | Optional. If an action is specified, this means that this action will be downdated instead of the action of the containing plan. |
Parents¶
Children¶
None.
Behaviour¶
The <signal_action_completion/> will make TDM treat the perform goal of the containing plan as fulfilled. This means that the remains of the plan (if any) will not be executed, and that a report move indicating success (report(action_status(some_action, done))) will be output.
If an action is specified, then the goal of that action will be condidered successfully completed and will be downdated.
Examples¶
Signal Action Completion element¶
<signal_action_completion/>
Signal Action Completion without post confirmation of the goal¶
<signal_action_completion postconfirm="false"/>
Signal Action Completion with explicit post confirmation of the goal¶
<signal_action_completion postconfirm="true"/>
Perform goal with Signal Action Completion element¶
<goal type="perform" action="action_that_always_succeed">
<plan>
...
<signal_action_completion/>
</plan>
</goal>
Signal Action Completion for other goal with explicit post confirmation of the goal¶
<signal_action_completion postconfirm="true" action="some_other_action"/>