Professional Documents
Culture Documents
Untitled
Untitled
Plugin :
-----------------
1. It is the name of the Interface which need to be implemented to achive
plugin concepts
1.invoke
2.describe
Process.PluginRequest:
----------------------
1. This is a apex class defined by the salesforce which takes the inputs
given
from the flow and submit to the Plugin class
request.inputparameters=new Map<String,Object>();
request.inputparameters.put('Name','Satish');
request.inputparameters.get('Name');
Process.PluginResult :
----------------------
1. This class takes the output genarated from business logic in the plugin
class
and return to flow
}
public Process.PluginResult(String, Object){
invoke Method :
----------------
1.This will take the inputparameters from Flow and implement business logic
and return the result back to flow
Syntax :
logic
}
Example :
String name=(String)request.inputparameters.get('empName');
resMap.put('name',name);
return result;
}
Process.PluginDescribeResult :
------------------------------
public List<Process.PluginDescribeResult.Inputparameter>
inputparameters;
public List<Process.PluginDescribeResult.Outputparameter>
outputparameters;
result.outputparameters=new List<Process.PluginDescribeResult>();
Process.PluginDescribeResult.Inputparameter:
----------------------------------------------
2. constructor
Process.PluginDescribeResult.inputparameter(name, dataType,required/not)
3.Example
Process.PluginDescribeResult.inputparameter('empName',
Process.PluginDescribeResult.ParameterType.String, true);
1.Process.PluginDescribeResult.Inputparameter ip1=
new Process.PluginDescribeResult.inputparameter('empName',
Process.pluginDescribeResult.ParameterType.String,true);
2. Process.PluginDescribeResult.Inputparameter ip2=
new Process.PluginDescribeResult.inputparameter('Salary',
Process.PluginDescribeResult.ParameterType.Decimal,true);
Process.PluginDescribeResult.Outputparameter
---------------------------------------------
1.This class will describe properties of outputparameters
2. Constructor
3. Example
Process.PluginDescribeResult.Outputparameter('name',
Process.PluginDescribeResult.ParameterType.String)
Describe Method :
---------------
1. This method is used to describe inputparameters and outputparameters
2. Syntax :
}
Complete Example :
VF page :
<apex:page >
<flow:interview name="Flow3" finishLocation="/apex/page1"></flow:interview>
</apex:page>
---------------------------------------------------------------------------------