Workflow to mermaid
servicenow_workflow_to_mermaidGenerates Mermaid diagrams mapping ServiceNow flow and subflow relationships from root flow names or sys_ids, with depth control and optional markdown file export.
Instructions
Generates a Mermaid diagram representing the relationships between ServiceNow flows and subflows.
:param flow_identifiers: List of flow names or sys_ids to use as roots. If None, fetches all active flows. :param max_depth: Maximum recursion depth for subflow discovery. :param save_to_file: Whether to save the result to a markdown file. :param output_dir: Directory to save the report. Defaults to project/servicenow_flow_reports. :param mermaid_name: Base name for the generated file (used if destination_file is not provided). :param segment_by_root: If True, generates a separate diagram for each root flow. :param destination_file: Explicit full path to save the markdown report.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| max_depth | No | ||
| output_dir | No | ||
| mermaid_name | No | servicenow_workflow | |
| save_to_file | No | ||
| segment_by_root | No | ||
| destination_file | No | ||
| flow_identifiers | No |