# Prevent Run Closure if aBOM is Not Completed

### Description:

This rule prevents the last open step in a run from being completed or cancelled if it moves the run status into a completed or partially completed state and 100% of the aBOM items are not filled out. It also allows for a certain user type role to be defined as someone who is able to push through incomplete aBOMs or canceled run aBOMs. You can also decide wether or not you would like to check for build requirements being fulfilled for all parts or just serialized parts being fulfilled. Finally you can toggle this rule to apply or not apply to any variety of run types; build, inspection, maintenance, or test. Build runs are going to be the most applicable use case 99% of the time.

### Functionality:

{% embed url="<https://www.loom.com/share/a6687bd7fc9d4cefa622344bec04d51e?sid=fbdff73e-fd0e-4c12-a397-be0b149eb865>" %}

### Setup:

For generic integration setup follow the instructions on [this page.](https://manual.firstresonance.io/api/how-tos/deploying-integrations-and-automations)

For setup attribute specific to this integration follow the prompts in the integration to customize it to your business process.

<figure><img src="/files/2CCgkT6bwgDwSz0NoFbN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Eq2qS5A85ZlVKX1fpT76" alt=""><figcaption></figcaption></figure>


---

# 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://manual.firstresonance.io/automations/prevent-run-closure-if-abom-is-not-completed.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.
