chore: fix comments

This commit is contained in:
Philipp
2024-01-05 11:26:36 +01:00
committed by Philipp Fromme
parent 51b712b408
commit 028cd205f1

View File

@ -11,7 +11,8 @@ import { hasEventDefinition, isEventSubProcess } from '../../../util/DiUtil';
*/
/**
*
* Behavior ensuring that only a single compensation activity is connected to a
* compensation boundary event when connecting, reconnecting or replacing shapes.
*
* @param {import('diagram-js/lib/core/EventBus').default} eventBus
* @param {import('../Modeling').default} modeling
@ -29,7 +30,7 @@ export default function CompensateBoundaryEventBehavior(eventBus, modeling, bpmn
this.postExecuted('element.updateProperties', handlePropertiesUpdate, true);
/**
* Given a connection from boundary event is removed, remove the forCompensation property.
* Given a connection from boundary event is removed, remove the `isForCompensation` property.
*/
function handleConnectionRemoval(context) {
const source = context.source,
@ -41,7 +42,7 @@ export default function CompensateBoundaryEventBehavior(eventBus, modeling, bpmn
}
/**
* Add forCompensation property and make sure only a single compensation activity is connected.
* Add `isForCompensation` property and make sure only a single compensation activity is connected.
*/
function handleNewConnection(context) {
const source = context.source,