Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead More
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Use an Autolaunched Flow to Run a Data Processing Engine Definition (Managed Package)

          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

          Managed Package Icon This is a Financial Services Cloud managed package feature.

          1. From Setup, in the Quick Find box, enter Flows, and then select Flows.
          2. Open the Data Processing Sample flow.
            Image showing the Data Processing Sample flow
          3. Double-click the Run Data Processing Job node to open it.
          4. In the Category section, select Data Processing Engine.
          5. In the Action field, select the data processing engine definition that you want to run.
          6. Enter appropriate values for the input variables.
          7. Click Done.
          8. Save your changes, and then activate the flow.
          9. 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();
            }
            }
            } 
            
           
          Loading
          Salesforce Help | Article