How do I add an 'order complete' from the Commerce module to the Rules events in Drupal 8? I need to add a new event to rules triggered by the successful completion of an order. The action is to grant a user a role which will expire in a fixed duration.

I've tried following the Rules documentation and adding a module with a *.rules.events.yml file. But modifying it to use the order_complete event which I got from this tutorial.

Unfortunately, even though it DID add an option to the events drop down, it doesn't trigger an action.

I've tried a grep through the commerce code for order_complete but it doesn't yield anything.

The action I've set to the rule is just to print a message.
After trying out combinations and with the helpful comments, the solution was to follow the Rules documentation but change the event to commerce_order.place.post_transition which I got from the tutorial.

The final code was to create a MODULENAME.rules.events.yml file and add the following code:

commerce_order.place.post_transition:
  label: 'Order has been completed'
  category: 'Order'


This created the option in the dropdown and allowed me to create the rule that triggered the action.