# ClearTrigger Stop Key Processing Functionality

**URL:** <https://community.abs-consulting.com/t/cleartrigger-stop-key-processing-functionality/52>\
**Category:** ClearTrigger\
**Created:** [November 9, 2021, 3:38pm UTC](https://community.abs-consulting.com/t/cleartrigger-stop-key-processing-functionality/52 "2021-11-09T15:38:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert](https://community.abs-consulting.com/user_avatar/community.abs-consulting.com/robert/32/28_2.png) [@robert](https://community.abs-consulting.com/u/robert)\
**Post date:** [November 9, 2021, 3:38pm UTC](https://community.abs-consulting.com/t/cleartrigger-stop-key-processing-functionality/52/1 "2021-11-09T15:38:52Z")

</div>

# ClearTrigger Stop Key Processing Functionality

In **ClearTrigger** the ability to define a Command Key that stops the processing of other Command Keys was introduced to enhance the ability to test Command Keys and produce smaller Command Keys. The “Stop Key Processing” is invoked from the [Command Key Inhibit\_Flag](https://www.abs-consulting.com/products_cd/cleartrigger_distribution/dilbert/cleartrigger/help/key_inhibit.html).

Consider the Clearbits\_file with the 40 keys below:

```auto
pre_MODIFY_ELEM;R;brtype<scratch_*>;S;
pre_MODIFY_ELEM;R;;0;-10;
pre_chevent;R;;S;
pre_mktype;r;lbtype<REL#.#> brtype<*_int_*>;x;-10;
pre_rmelem;R;;x;-10;
pre_checkout;R; ;0;0;0;D; ;N; ;0;verify.pl;
pre_checkin;R; ;0;0;0;D; ;N; ;0;approval_check.pl;;;;0;P;Who approved it?;
post_checkin;R;brtype<*_int_*>;0;0;0;D; ;N; ;0;;;;;0;;Q;Are you ready to close this defect?;YN;
...
(33 more keys)
...
pre_MODIFY_ELEM;R;brtype<rel_#.#>0;0;X;

```

The ClearTrigger Policy Maker can created **stop keys** (like the keys in red that serve to stop processes the clearbits\_file for matching cases, in this case any **element modification** on a branch who’s name begins with “scratch\_” would not be subject to ano of the keys below it in the clearbits\_file and the **chevent** command is subject to the 10 word comment restriction of the key above, but again not to any of the policy defined below the key. This has these general effects:

- **performance** - It minimizes how many keys are processed in the success case

- **smaller keys** - The keys that follow do not have to account for “avoiding” the cases covered in the “stop keys”

- **smaller scripts** - The scripts referred to in the following keys do not have to account for “avoiding” the cases covered in the “stop keys”

- **testing and exception flexibility** - Stop keys can quickly allow certain commands through for a short period of time without having to modify many Command Keys or the scripts referred to by the key.
