Foundations Apex API Developer Reference

fferpcore.ffasync_ChainedProcess

global class ffasync_ChainedProcess

Implements chained processes. The supplied processes in the list will be linked together to run consecutively, e.g. process A, then process B, then process C.

Sample Code

//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.

fferpcore.Process p = new SampleProcess();
String parentDescription = 'Background Posting';
List<fferpcore.ffasync_IAction> actions = new List<fferpcore.ffasync_IAction>{new CustomAction()};// CustomAction will implement ffasync_IAction interface
fferpcore.ffasync_ChainedProcess cProcess = new fferpcore.ffasync_ChainedProcess(new List<fferpcore.ffasync_Process>{p}, parentDescription, actions);
fferpcore.ffasync_ProcessService.startChainedProcesses(cProcess);

Methods

ffasync_ChainedProcess

global ffasync_ChainedProcess(List<fferpcore.ffasync_IProcess> processes, String description, List<fferpcore.ffasync_IAction> endOfAllProcessActions)

Input Parameters

Name Type Description
processes List<fferpcore.ffasync_IProcess> List of Processes to be run.
description String Description for parent Process Run.
endOfAllProcessActions List<fferpcore.ffasync_IAction> Actions to be run after all Processes finish.

ffasync_ChainedProcess

global ffasync_ChainedProcess(List<fferpcore.ffasync_Process> processes, String description, List<fferpcore.ffasync_IAction> endOfAllProcessActions)

Input Parameters

Name Type Description
processes List<fferpcore.ffasync_Process> List of Processes to be run.
description String Description for parent Process Run.
endOfAllProcessActions List<fferpcore.ffasync_IAction> Actions to be run after all Processes finish.
© Copyright 2009–2022 FinancialForce.com, inc. All rights reserved. Various trademarks held by their respective owners.