Use an Autolaunched Flow to Run a Data Processing Engine Definition (Managed
Package)
Associate a Data Processing Engine definition with an autolaunched flow. Then run the
flow manually or invoke it by Apex, processes, or REST API. You can clone and use the provided
Data Processing Sample flow or create a flow according to your requirements.
Required Editions
Available in: Lightning Experience
Available in: Professional, Enterprise, and Unlimited
Editions
This is a Financial Services Cloud managed package feature.
From Setup, in the Quick Find box, enter Flows, and then select
Flows.
Open the Data Processing Sample flow.
Double-click the Run Data Processing Job node to open it.
In the Category section, select Data Processing Engine.
In the Action field, select the data processing engine definition that you want to
run.
Enter appropriate values for the input variables.
Click Done.
Save your changes, and then activate the flow.
To run the flow, click Run.
Or, you can launch the flow using an Apex trigger. Here’s an
example.
//Trigger Code
trigger InitiateCalcJob on MulesoftJob__c (after update) {
for (MulesoftJob__c job: Trigger.new) {
if(Trigger.oldMap.get(job.id).Status__c == 'In Progress' && job.Status__c == 'Completed'){
RunFlowFuture.runFlow(job.RBL_Job_Name__c);
}
}
}
// Future method code
global class RunFlowFuture {
public static Flow.Interview.Data_Processing_Flow rblFlow {get; set;}
@future
public static void runFlow(String ruleName) {
if(ruleName != null){
Map<String, Object> myMap = new Map<String, Object>();
myMap.put('v1', 'String');
rblFlow = new Flow.Interview.Data_Processing_Flow(myMap);
rblFlow.start();
}
}
}
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.