Mermaid to ARIS EPC Converter

Convert Mermaid flowchart to ARIS EPC XML format

Mermaid to ARIS EPC Converter

AI-generated

Overview

This node converts Mermaid flowchart code into ARIS EPC (Event-driven Process Chain) XML format. It is useful for users who want to transform process diagrams created in Mermaid syntax into a structured ARIS EPC model for further analysis or integration with ARIS tools. For example, a business analyst can input a Mermaid flowchart representing a business process and obtain an ARIS EPC XML file for use in ARIS software.

Use Case Examples

  1. Convert a Mermaid flowchart describing a business process into an ARIS EPC XML file for process modeling.
  2. Use a JSON catalog of reusable elements to enrich the ARIS EPC model with predefined object definitions.
  3. Output the converted ARIS EPC model as a binary XML file to avoid JSON escaping issues.

Properties

Name Meaning
Mermaid Input Mermaid flowchart code to be converted, can reference previous node JSON data.
Model Name Name assigned to the ARIS EPC model.
Catalog JSON Optional JSON catalog of reusable elements with object definition IDs and GUIDs to be used in the conversion.
Output Format Format of the output data, either as an XML string or a binary file.
File Name Base name for the output file when output format is binary; the .xml extension is added automatically.

Output

Binary

Contains the ARIS EPC XML data encoded in base64 with metadata such as MIME type, file name, and extension.

JSON

  • message - Status message indicating successful conversion.
  • format - Format identifier, always 'aris'.
  • timestamp - ISO timestamp of when the conversion was performed.
  • fileName - Name of the output file, including extension.
  • error - Error message if conversion fails and continueOnFail is enabled.

Dependencies

  • Node.js built-in modules: crypto, fs, path

Troubleshooting

  • Ensure the Mermaid input syntax is correct; parsing errors will cause conversion to fail.
  • If the Catalog JSON is invalid, it defaults to an empty object without failing.
  • If the template.xml file is missing from expected locations, the node throws an error indicating the template could not be found.
  • When outputting binary data, ensure the file name does not contain invalid characters to avoid file system errors.

Links

Discussion