handlers.itcomponent_default_values_handler

class ItcomponentDefaultValuesHandler(handlers.eventhandler.EventHandler):

Whenever an IT Component is created, set its strategy conformance to "Yes" by default.
Customer-specific automation, requires a special data model. Should not be used for testing.

name = 'Set IT Component Strategy Conformance'
description = "Whenever an IT Component is created, set its strategy conformance to 'Yes' by default."
conditions = {'event_types': ['FactSheetCreatedEvent'], 'fs_types': ['ITComponent']}
config_template = {}
def handle(self, event, it_component, **kwargs):

Called automatically whenever a FactSheetUpdated event comes in via webhook.