Visualizations
Workflows4s provides two visualization modes for representing workflows: BPMN and Mermaid Flowchart. Each mode has its strengths and use cases. Both options are considered experimental, and they are subject to change.
Visualization Modes Overview
Mode | Description | Good For | Limitations |
---|---|---|---|
BPMN | Leverages the Business Process Model and Notation (BPMN) standard, widely recognized in workflow and process modeling domains.
Requires the |
|
|
Mermaid Flowchart | Renders workflows as Mermaid flowcharts using built-in support in |
|
|
Usage Examples
BPMN
val wio: WIO[?, ?, ?, ?] = PullRequestWorkflow.workflow
val bpmnModel = BPMNConverter.convert(wio.toProgress.toModel, "process")
val bpmnXml = Bpmn.convertToString(bpmnModel)
Mermaid Flowchart
val wio: WIO[?, ?, ?, ?] = PullRequestWorkflow.workflow
val mermaidString = MermaidRenderer.renderWorkflow(wio.toProgress)