Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Detect the Sequential Multi-instance Marker of an Activity #468

Merged

Conversation

csouchet
Copy link
Member

@csouchet csouchet commented Aug 5, 2020

Closes #345

Expected

image

At commit 777af6d

image

@csouchet csouchet added enhancement New feature or request BPMN support Something about the BPMN specification that the lib is already supporting or will support labels Aug 5, 2020
@csouchet csouchet force-pushed the 345-Detect_Sequential_Multi-instance_Marker_of_Activity branch from 777af6d to a4a9f4e Compare August 6, 2020 09:37
@csouchet csouchet marked this pull request as ready for review August 6, 2020 10:55
@csouchet csouchet requested a review from tbouffard August 6, 2020 10:55
@csouchet csouchet force-pushed the 345-Detect_Sequential_Multi-instance_Marker_of_Activity branch from a4a9f4e to e34095a Compare August 6, 2020 10:59
Copy link
Member

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor changes requested in test. Otherwise, looks good

it(`${bpmnKind} with Loop marker`, () => {
const shape = newShape(newShapeBpmnElement(bpmnKind, ShapeBpmnMarkerKind.LOOP), newLabel({ name: 'Arial' }));
expect(computeStyle(shape)).toEqual(`${bpmnKind};bpmn.markers=loop;fontFamily=Arial`);
describe.each([[ShapeBpmnMarkerKind.LOOP], [ShapeBpmnMarkerKind.MULTI_INSTANCE_SEQUENTIAL]])(`compute style - %s marker for ${bpmnKind}`, (markerKind: ShapeBpmnMarkerKind) => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ this change requires to update the dedicated test for subprocess (expand + other marker) which should be parametrized as well.
currently, it is run twice with the loop marker instead of once with the loop, once with the multi instance
Otherwise, we can put this specific test out of this block because we may not want to test expand marker + every other marker

Copy link
Member

@tbouffard tbouffard Aug 6, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wrong the subprocess test is out of the describe block, my bad, sorry.

image

@tbouffard tbouffard merged commit 58cd913 into master Aug 6, 2020
@tbouffard tbouffard deleted the 345-Detect_Sequential_Multi-instance_Marker_of_Activity branch August 6, 2020 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN support Something about the BPMN specification that the lib is already supporting or will support enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Detect the Sequential Multi-instance Marker of an Activity
2 participants