# IF_Chain.Step

**Class** · Group: `Async`

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

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

```apex
global interface IF_Chain.Step
```

**Known Derived Types:** [UTIL_AsyncChain.ApiStep](/reference/apex/util-asyncchain-apistep), [UTIL_AsyncChain.ChainStep](/reference/apex/util-asyncchain-chainstep), [UTIL_AsyncChain.ApiStep.work(UTIL_AsyncChain.ChainContext)](/reference/apex/util-asyncchain-apistep#work), [UTIL_AsyncChain.ChainStep.work(UTIL_AsyncChain.ChainContext)](/reference/apex/util-asyncchain-chainstep#work)

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.

</div>

---

## Methods

| Method | Description |
|--------|-------------|
| global abstract [UTIL_AsyncChain.StepResult](/reference/apex/util-asyncchain-stepresult) [work](#work)([UTIL_AsyncChain.ChainContext](/reference/apex/util-asyncchain-chaincontext) context) | Executes the step's business logic within the chain. |

### work

<div class="apex-member">

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

Executes the step's business logic within the chain.

**Parameters**

| Parameter | Type | Description |
|-----------|------|-------------|
| `context` | [UTIL_AsyncChain.ChainContext](/reference/apex/util-asyncchain-chaincontext) | Shared chain context for reading/writing state between steps. |

**Returns** [UTIL_AsyncChain.StepResult](/reference/apex/util-asyncchain-stepresult) — StepResult indicating success or failure of the step.

</div>
