Objects of the Cancel event type are used in transaction subprocesses and can be modeled as objects of the Intermediate boundary event or End event types that are embedded in a task.
If it is an object of the Boundary event type, a boundaryEvent element is generated that has a reference to the transaction. If it is an embedded end event, a subordinate endEvent element is generated within the transaction element.