Skip to content

IF_Chain.Step

Class

apex
global interface IF_Chain.Step

Known Derived Types: UTIL_AsyncChain.ApiStep, UTIL_AsyncChain.ChainStep, UTIL_AsyncChain.ApiStep.work(UTIL_AsyncChain.ChainContext), UTIL_AsyncChain.ChainStep.work(UTIL_AsyncChain.ChainContext)

Interface for defining the business logic of a single chain step. Each step receives a shared context and returns a result indicating success or failure.


Methods

MethodDescription
global abstract UTIL_AsyncChain.StepResult work(UTIL_AsyncChain.ChainContext context)Executes the step's business logic within the chain.

work

apex
global abstract UTIL_AsyncChain.StepResult work(UTIL_AsyncChain.ChainContext context)

Executes the step's business logic within the chain.

Parameters

ParameterTypeDescription
contextUTIL_AsyncChain.ChainContextShared chain context for reading/writing state between steps.

Returns UTIL_AsyncChain.StepResult — StepResult indicating success or failure of the step.