# ErrorEventDefinition custom properties

**URL:** <https://forum.bpmn.io/t/erroreventdefinition-custom-properties/14030>\
**Category:** Developers\
**Created:** [November 14, 2024, 7:14am UTC](https://forum.bpmn.io/t/erroreventdefinition-custom-properties/14030 "2024-11-14T07:14:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![indu](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/i/eada6e/32.png) [@indu](https://forum.bpmn.io/u/indu)\
**Post date:** [November 14, 2024, 7:14am UTC](https://forum.bpmn.io/t/erroreventdefinition-custom-properties/14030/1 "2024-11-14T07:14:03Z")

</div>

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](https://forum.bpmn.io/uploads/default/original/2X/a/a30c83433be4c17ebda5a09c1309c7939f748d0f.png)

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.

---

<div class="post-metadata">

**Author:** ![misiekhardcore](https://forum.bpmn.io/user_avatar/forum.bpmn.io/misiekhardcore/32/6201_2.png) [@misiekhardcore](https://forum.bpmn.io/u/misiekhardcore)\
**Post date:** [November 14, 2024, 2:32pm UTC](https://forum.bpmn.io/t/erroreventdefinition-custom-properties/14030/2 "2024-11-14T14:32:46Z")

</div>

Hello!  
I think this can be done with custom modeling rules. Please take a look at [custom-modeling-rules](https://github.com/bpmn-io/bpmn-js-examples/tree/main/custom-modeling-rules) example.

---

<div class="post-metadata">

**Author:** ![indu](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/i/eada6e/32.png) [@indu](https://forum.bpmn.io/u/indu)\
**Post date:** [November 15, 2024, 1:27am UTC](https://forum.bpmn.io/t/erroreventdefinition-custom-properties/14030/3 "2024-11-15T01:27:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![barmac](https://forum.bpmn.io/user_avatar/forum.bpmn.io/barmac/32/974_2.png) [@barmac](https://forum.bpmn.io/u/barmac)\
**Post date:** [July 9, 2025, 10:10am UTC](https://forum.bpmn.io/t/erroreventdefinition-custom-properties/14030/4 "2025-07-09T10:10:10Z")

</div>

Closed on July 9, 2025, 10:10am UTC

Closing old topics.
