function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Thomas OrozcoThomas Orozco 

PluginA extends PluginB that implements Process.Plugin interface: Doesn't show up

Hi,

I want to have two Apex plugins to use in the Cloud Flow designer with a fair bunch of shared functionnality.
Inheritance therefore comes to mind.

Here's what I did:

global virtual class PluginA implements Process.Plugin {
    // Some_Code...
}

global class PluginB extends PluginA {
    // Some_Code...
}


When I go to the Visual Workflow Cloud Designer, PluginA shows up, but PluginB doesn't.


Why is that? Did I go wrong somewhere? 
Is there a way to make this work with inheritance (I could always create another class that implements the functionnality and call it from my Plugins, but that's sub-optimal). 


Thanks in advance,

Thomas

Thomas OrozcoThomas Orozco

We found out that we had to repeat "implements Process.Plugin" in the inheriting class.

RajaramRajaram

Yes.. currently only classes which implements the interface are pulled in the cloud flow designer. Extensions are something we are considering to support.