# Strategies

An incident strategy is represented by the `IIncidentStrategy` interface:

```csharp
/// <summary>
/// A strategy for handling workflow incidents
/// </summary>
public interface IIncidentStrategy
{
    /// <summary>
    /// Handles an incident.
    /// </summary>
    /// <param name="context">The activity execution context where the incident occurred.</param>
    void HandleIncident(ActivityExecutionContext context);
}
```

Out of the box, there are two strategies available:

1. `FaultStrategy`: The workflow engine will stop the workflow and mark it as faulted.
2. `ContinueWithIncidentsStrategy`: The workflow engine will continue executing the workflow and create an incident record for each error that occurs.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.elsaworkflows.io/operate/incidents/strategies.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
