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] Render Pool when Participant references a Process #520

Merged
merged 5 commits into from
Aug 13, 2020

Conversation

csouchet
Copy link
Member

@csouchet csouchet commented Aug 12, 2020

closes #254
covers #127

B.2.0

image

A.4.1

image

@csouchet csouchet added enhancement New feature or request BPMN rendering Something about the way the lib is rendering BPMN elements labels Aug 12, 2020
@csouchet csouchet marked this pull request as ready for review August 13, 2020 07:56
} else if (bpmnElement.kind === ShapeBpmnElementKind.POOL) {
// mxConstants.STYLE_HORIZONTAL is for the label
// In BPMN, isHorizontal is for the Pool
styleValues.set(mxConstants.STYLE_HORIZONTAL, bpmnCell.isHorizontal ? '0' : '1');
Copy link
Member

Choose a reason for hiding this comment

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

❓ why not putting a boolean like we do for the lane default style?
style[mxConstants.STYLE_HORIZONTAL] = false;
This is clearer and more understandable. We previously did it when we have a dedicated style entry for the activity isExpanded
But maybe this is a mxGraph constraint?

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried to do this, but it's not working.
As we need to convert boolean as string, the final style will be "horizontal=false". But MxGraph wants "horizontal=0".

Copy link
Member

Choose a reason for hiding this comment

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

ok, fair enough, let keep this as it is

@csouchet csouchet merged commit 6473389 into master Aug 13, 2020
@csouchet csouchet deleted the 254-Render_Pool branch August 13, 2020 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN rendering Something about the way the lib is rendering BPMN elements enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Render Pool when Participant references a Process
2 participants