-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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:
- Process Builder flows (typically have
processType: 'InvocableProcess') - 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
- Compile a comprehensive list of flow types that don't use the Lightning Flow Canvas
- Identify reliable indicators in the flow XML that can determine if a flow is canvas-based
- Determine if there are any exceptions where non-canvas flows should still be processed
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request