A system is told when its request is cancelled
A request may be cancelled while an external system works on it, e.g. when a claim’s time limit expires before the assessor has answered. The system should then stop, and it needs to be told which request no longer stands.
A message the contract names
A cancellable service contract may now name a cancellation message, a data structure such as “assessment withdrawn”, holding the claim’s number. Its fields are filled from the request’s fields of the same name, so a process requesting the service states nothing more. Verification reports a field the request cannot fill.
Told, then waited for
Whatever cancels the request, the execution environment sends the message once, over the system’s own transport (an HTTP call, a Kafka record or an AMQP message), or shows it on the task a system holds. It then waits. A system which stopped says so, and nothing needs undoing. One which could not stop answers as it would have, and its late answer is undone through the contract’s undone by. A person’s task is still withdrawn when the time limit expires.
The motor insurer’s dummy assessor is told of a withdrawn claim. How a system is told is in the user manual.