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

[DOC] Add hero image in the README #45

Merged
merged 3 commits into from
Sep 1, 2021
Merged

[DOC] Add hero image in the README #45

merged 3 commits into from
Sep 1, 2021

Conversation

tbouffard
Copy link
Member

@tbouffard tbouffard commented Sep 1, 2021

closes #43

How to create the screenshot

Run the following R script (for instance, in RStudio)

bpmn_file <- system.file("examples/Email_Voting.bpmn", package = "bpmnVisualization")

overlays <- list(
	# before 1st subprocess
	bpmnVisualization::create_overlay("sequence_flow_3", "26"),
	bpmnVisualization::create_overlay("sequence_flow_4", "69"),
	# 1st subprocess
	bpmnVisualization::create_overlay("sub_process_1", "69"),
	bpmnVisualization::create_overlay("send_task_1", "69"),
	# branch 1
	bpmnVisualization::create_overlay("user_task_2", "69"),
	bpmnVisualization::create_overlay("sequence_flow_34", "69"),
	# branch 2
	bpmnVisualization::create_overlay("user_task_3", "69"),
	bpmnVisualization::create_overlay("sequence_flow_31", "30"),
	bpmnVisualization::create_overlay("sequence_flow_32", "39"),
	bpmnVisualization::create_overlay("sequence_flow_36", "69"),
	# branch 3
	bpmnVisualization::create_overlay("intermediate_catch_event_2", "69"),
	bpmnVisualization::create_overlay("send_task_2", "69"),
	bpmnVisualization::create_overlay("sequence_flow_28", "69"),
	# end of 1st subprocess
	bpmnVisualization::create_overlay("task_1", "69"),
	# after 1st subprocess
	bpmnVisualization::create_overlay("sequence_flow_5", "69")
)

bpmnVisualization::display(bpmn_file, overlays)

Prior doing the screenshot, play with the zoom level to not be affected by process-analytics/bpmn-visualization-js#994 and process-analytics/bpmn-visualization-js#1236

@tbouffard tbouffard requested a review from csouchet September 1, 2021 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOC] Add an hero image in the README
2 participants