Skip to content

Conversation

@csouchet
Copy link
Contributor

Closes #142

@csouchet csouchet added enhancement New feature or request BPMN rendering Something about the way the lib is rendering BPMN elements labels Apr 22, 2020
@csouchet
Copy link
Contributor Author

The render:
image

@csouchet csouchet marked this pull request as ready for review April 22, 2020 14:17
@csouchet csouchet requested review from aibcmars and tbouffard April 22, 2020 14:17
constructor(private graph: mxgraph.mxGraph) {}

public configureStyles(): void {
this.mxConstants.RECTANGLE_ROUNDING_FACTOR = 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.

👍 nice

private configureTaskStyle(): void {
const style = this.mxUtils.clone(this.getStylesheet().getCellStyle(ShapeBpmnElementKind.TASK_USER), this.getDefaultVertexStyle());
style[this.mxConstants.STYLE_STROKECOLOR] = '#663399';
const style = this.cloneDefaultVertexStyle();
Copy link
Member

Choose a reason for hiding this comment

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

❓ I guess we will generalize styling for other tasks when implementing rendering for user or service task

Copy link
Contributor Author

@csouchet csouchet Apr 22, 2020

Choose a reason for hiding this comment

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

Yes, I started the refactoring in the Service Task's PR #208 😉

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.

LGTM 👍

Here is the rendering of the A.1.0 bpmn reference file

Version 0.1.2
A 1 0_bpmn-visulazation-0 1 2

With new implementation
A 1 0_bpmn-visulazation-dev

Co-Authored-By: Thomas Bouffard <[email protected]>
@tbouffard
Copy link
Member

⚠️ @csouchet we forgot to update the doc about the BPMN Support rendering status for the Abstract Task: bpmn-support.adoc

Copy link
Contributor

@aibcmars aibcmars left a comment

Choose a reason for hiding this comment

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

LGTM

@csouchet
Copy link
Contributor Author

⚠️ @csouchet we forgot to update the doc about the BPMN Support rendering status for the Abstract Task: bpmn-support.adoc

Done
It's good for you, you can merge the PR ;)

@tbouffard tbouffard merged commit 2e6ab92 into master Apr 22, 2020
@tbouffard tbouffard deleted the 142-Render_Task branch April 22, 2020 15:40
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 Task

4 participants