This Aura component enables to trigger a Flow embedded within a page instead of a popup as with standard Quick Actions. Its main benefit compared to the standard Flow App Builder component providing similar functionality is to avoid loading and initialising the Flow definition at initial page rendering if the user does not necessarily need to launch the flow.
By default, a single action button is displayed on the right.
When the user clicks on the button, the component toggles in execution mode with the embedded Flow page displayed below a close icon button.
Upon completion/closing of the flow, the component gets back to its original state (with a single button displayed).
The component is easily configurable from the App Builder.
As a baseline, the following elements are configurable
- The
Label
andVariant
of the action button to lauch the flow - The Developer Name of the Flow to execute (as
Flow Name
parameter) - Various flags to provide contextual information to the flow
(as
recordId
andsObjectName
input variables) - The ability to automatically trigger a page refresh upon flow completion./cancellation (especially useful when using Lightning conditional display)
- Some CSS classes to tune the containing div appearance
To be completed
This component relies on the standard lightning:flow Aura base component to embed and execute a Flow in an Aura component. It listens to its state transitions to track its completion.