# IF_Chain

**Class** · Group: `Async`

Learn it: [Async Processing guide](/async-processing-guide)

<div class="apex-member apex-class">

```apex
global inherited sharing class IF_Chain
```

A container for shared global interfaces used by the async chain orchestration framework. You implement these interfaces to define chain step logic and conditional branching.

**Example**

```apex
public class MyStep implements IF_Chain.Step
{
    public UTIL_AsyncChain.StepResult work(UTIL_AsyncChain.ChainContext context)
    {
        context.put('result', 'done');
        return UTIL_AsyncChain.succeeded('Step completed');
    }
}
```

**See Also:** [UTIL_AsyncChain](/reference/apex/util-asyncchain)

</div>

---

## Inner Classes

| Class | Description |
|-------|-------------|
| [Step](/reference/apex/if-chain-step) | Interface for defining the business logic of a single chain step. |
