handlers.capability_maturity_handler

class CapabilityMaturityHandler(handlers.eventhandler.EventHandler):

Whenever a Capability is updated, we calculate its maturities based on 3 different individual maturity attributes.
current_maturity = min(current_maturity_people, current_maturity_process, current_maturity_technology)
target_maturity = min(target_maturity_people, target_maturity_process, target_maturity_technology)

Customer-specific automation, requires a special data model. Should not be used for testing.

name = 'Set Capability Maturity'
description = 'Whenever a BusinessCapability is updated, calculate maturities based on individual maturities.'
conditions = {'event_types': ['FactSheetUpdatedEvent'], 'fs_types': ['BusinessCapability']}
def handle(self, event, capability, **kwargs):

Called automatically whenever a FactSheetUpdated event comes in via webhook.