Looking at the code, it seems that the way to "raise" an Error/Escalation, etc. from a boundary event is using the signalEvent with the correct "type".
The "type" seems to be specified as the first String part of the "type" parameter in the signalEvent method.
I mean: "Escalation-", "Error-", "Compensate-", etc...