Automate patterns


#1

Hello,

Sorry for the long post. Trying to better understand automate patterns.
.
We have multiple catalog items. All of them are configured to call CatalogItemInitialization. Is calling different entry points from different catalog items a valid option?

What is the recommended flow for customization for service catalog items?
All references are to private domain.

  1. Call different state machines for different services from catalog item design. (Is this an option?)
    Service1StateMachine Instance
    step1 state -> Local method for step1
    step2_sare -> Local method for step2

    Done
    Service2StateMachine Instance
    step1 state -> Local method for step1
    step2_sare -> Local method for step2

    Done

  2. CatalogItemInitialization Instance
    postn state -> local method [ one big method with all logic for all services – Sounds ugly ]
    done

  3. CatalogItemInitialization Instance
    postn state -> local method [ instance switch logic based on service selected ]
    Service1StateMachine Instance
    step1state -> local method
    step2state -> local method
    done
    Service2StateMachine Instance
    step1state -> local method
    step2state -> local method
    done

  4. CatalogItemInitialization Instance
    postn state -> redirect to GenericInstance
    GenericInstance
    one local method [ instance switch logic based on service selected ]
    Service1StateMachine Instance
    step1state -> local method
    step2state -> local method
    done
    Service2StateMachine Instance
    step1state -> local method
    step2state -> local method
    done

  5. Any other recommended patterns?

Thanks,
SN