Skip to content

Prevent Processing of Non-Canvas-Based Flow Types #27

@mitchspano

Description

@mitchspano

Problem

Flow Lens currently attempts to process all Salesforce flow files, including those that don't use the Lightning Flow Canvas for their layout (e.g., Process Builder flows). This can lead to errors or incorrect/meaningless diagram generation since these flows don't contain proper layout information.

Background

Different types of Salesforce automation tools create different types of flow files. While they all use the .flow-meta.xml format, not all of them contain layout information that can be meaningfully visualized:

  1. Process Builder flows (typically have processType: 'InvocableProcess')
  2. Potentially other types that don't use the Lightning Flow Canvas

Proposed Solution

Add a validation step in the flow processing pipeline that checks for indicators of non-processable flows:

Add clear error messaging when skipping non-processable flows:

Skipping {flowName}: Process Builder flows cannot be visualized as they don't use the Lightning Flow Canvas

Research Needed

  1. Compile a comprehensive list of flow types that don't use the Lightning Flow Canvas
  2. Identify reliable indicators in the flow XML that can determine if a flow is canvas-based
  3. Determine if there are any exceptions where non-canvas flows should still be processed
  4. Investigate if there are any canvas-based flows that might be incorrectly filtered out by the proposed checks

Additional Considerations

  • Should we attempt to create alternative visualization methods for non-canvas flows?
  • How should we handle flows that change type over time (via Git history)?

Related Documentation

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions