ErrorEventDefinition custom properties

Hello, I am currently working on a project involving Flowable BPMN processes, and I am trying to implement custom properties within the ErrorEventDefinition .

Specifically, I am aiming to achieve something similar to the following XML structure:
Screenshot 2024-11-14 124604

I would like to know if it is possible to create custom properties like those mentioned above in the ErrorEventDefinition. If there is a method or best practice to implement this, I would greatly appreciate your guidance and support.

Thank you for your time and assistance. I look forward to your response.

Hello!
I think this can be done with custom modeling rules. Please take a look at custom-modeling-rules example.

I’ve gone through the example mentioned in the link, specifically the section on creating shapes with the following code snippet:

this.addRule(‘shape.create’, function(context) {
var shape = context.shape,
target = context.parent;

var shapeBo = shape.businessObject,
targetBo = target.businessObject;

var allowDrop = targetBo.get(‘vendor:allowDrop’);

if (!allowDrop || !shapeBo.$instanceOf(allowDrop)) {
return false;
}
});

is there any comprehensive list of actions similar to shape.create which will help me with creating custom error event definition properties properties