From 64af756df04c45901ed274c462e388985969100c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Souchet=20C=C3=A9line?= <4921914+csouchet@users.noreply.github.com> Date: Wed, 24 Jun 2020 18:48:35 +0200 Subject: [PATCH] [FEAT] Render Interrupting Message Intermediate Event Attached to an Activity Boundary (#338) --- docs/bpmn-support.adoc | 4 ++-- src/component/mxgraph/shape/event-shapes.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/bpmn-support.adoc b/docs/bpmn-support.adoc index a29c56996c..c255355a05 100644 --- a/docs/bpmn-support.adoc +++ b/docs/bpmn-support.adoc @@ -149,8 +149,8 @@ The default rendering uses `white` as fill color and `black` as stroke color. | |Message Interrupting Boundary Event -| -| +|icon:check-circle-o[] +|The stroke & icon width may be adjusted |=== diff --git a/src/component/mxgraph/shape/event-shapes.ts b/src/component/mxgraph/shape/event-shapes.ts index 4304372a7d..1e74e1b7f6 100644 --- a/src/component/mxgraph/shape/event-shapes.ts +++ b/src/component/mxgraph/shape/event-shapes.ts @@ -111,7 +111,7 @@ export class BoundaryEventShape extends IntermediateEventShape { protected paintOuterShape(paintParameter: PaintParameter): void { const isInterrupting = StyleUtils.getBpmnIsInterrupting(this.style); - if (isInterrupting === 'true' || isInterrupting === undefined) { + if ((isInterrupting === 'true' || isInterrupting === undefined) && StyleUtils.getBpmnEventKind(this.style) === ShapeBpmnEventKind.TIMER) { paintParameter.c.setFillColor('yellow'); } else if (isInterrupting === 'false') { paintParameter.c.setFillColor('LightPink');