# Set Policy Rules on Screening Results

Screening results are a first-class input to the Fordefi policy engine. A policy
rule can use a **Transaction Screening** condition to act on what a screening provider found, so
that a flagged transaction is blocked or an approved transaction is allowed.

The Transaction Screening condition is part of the regular transaction policy, alongside the
[other rule conditions](/user-guide/policies/policy-rules-conditions-and-actions). It
is not part of the [AML policy](/user-guide/aml/aml-policies).

## Transaction Screening condition

A Transaction Screening condition selects a provider and one or more of that provider's results.
The result field is multi-select, so a single condition can cover several
severities for the same provider:

| Provider | Selectable results |
|  --- | --- |
| Blockaid | `Benign`, `Malicious`, `Warning` |
| Hypernative | `Accept`, `Auto Accept`, `Deny`, `Warn` |


To match on both providers, add a Transaction Screening condition for each one, or write a
separate rule per provider.

### Availability

The Transaction Screening condition depends on the providers your organization has
[activated](/user-guide/screening/config-screening):

- If your organization has no credentials for a given provider, that provider is
greyed out in the condition and cannot be selected.
- If your organization has no credentials for any provider, the Transaction Screening condition
is greyed out in the conditions list and cannot be added to a rule.


You also cannot deactivate a provider while a policy rule still uses a Transaction Screening
condition for it. Remove or edit those rules first.

## Create a rule on a screening result

Follow the instructions in [Create a policy rule](/user-guide/policies/create-a-policy-rule#create-a-new-policy). When adding a condition, select **Transaction Screening** from the condition categories.

### Example rules

- **Hard block on a denied transaction:** A rule whose only condition is
for the provider Hypernative and value `Deny`, or on the provider Blockaid with the value `Malicious`, and whose action is **Block**, stops any transaction that the provider flags as a high risk.
- **Stronger approvals for flagged transactions above a threshold:** A rule with
the condition on the provider Blockaid and value `Warning`, or on the provider Hypernative with the value `Warn`,
and a transaction amount over USD 100,000, and an action of **Require Approval** with an admin quorum,
lets small flagged transactions through the normal flow while escalating large
ones.
- **Escalate anything either provider flags:** Two rules, one per provider, each
selecting both of that provider's results and requiring approval.
- **Allow verified transactions:** A rule with a condition on the provider `Hypernative` and the values `Approve` and `Autoapprove`, or on the provider Blockaid with the value `Benign`, and an action of **Allow**, will allow every transaction the provider deemed safe.


## When a screening result is unavailable

A transaction with no usable screening result is still evaluated against your
policy. What a Transaction Screening condition does then depends on why the result is missing:

- **Unsupported chain:** The Transaction Screening condition does not match, and policy
evaluation continues to the next rule.
- **Timeout, or provider error:** The result is
indeterminate, and Fordefi falls back to the default policy rule, as it does
when [simulation data is missing](/user-guide/manage-transactions/override-simulation#policy-enforcement).


Because an unavailable provider falls back to the default rule, a permissive
default rule weakens every screening rule above it. We recommend
[setting a strict default rule](/user-guide/policies/sample-policies#set-basic-approvals).

Skipping prediction skips screening
A transaction created through the API with `skip_prediction` set to `true` is
not screened, so no Transaction Screening condition can match it. See
[Transaction screening in the API](/developers/transaction-screening).

Learn more:

- [Rule Conditions and Actions](/user-guide/policies/policy-rules-conditions-and-actions)
- [Create a policy rule](/user-guide/policies/create-a-policy-rule)
- [View transaction screening results](/user-guide/screening/screening-results)