Module 48 State Models

Embed Size (px)

Citation preview

  • 7/30/2019 Module 48 State Models

    1/15

    1 of 15State Model

    Siebel 8.0 Essentials

  • 7/30/2019 Module 48 State Models

    2/15

    Module 46: State Models

  • 7/30/2019 Module 48 State Models

    3/15

    3 of 15State Model

    Module Objectives

    To understand how state models can enforce business logic To learn creation of state model

  • 7/30/2019 Module 48 State Models

    4/15

    4 of 15State Model

    Life Cycles in Business Entities

    Many business entities have a defined life cycle described by:

    A set of states named by the values of one of the entitys fields

    A set of allowed transitions between the states

    For example: A service request could have a life cycle defined interms of these values of the status field:

    Open, Pending, Closed, Cancelled

    Need a way to easily incorporate such restrictions into the lifecycle of an entity

  • 7/30/2019 Module 48 State Models

    5/15

    5 of 15State Model

    State Model Provides a data-driven method for extending workflow control based on the

    status of an object

    It is the blueprint of acceptable states and state transitions that the state

    machine enforces Uses declarative configuration as opposed to script

    Is implemented in the Siebel client and not Siebel Tools Does not involve compiling and deploying a new SRF file

    Needs to be enabled for a Business Component

    Indicated by a business component user property (State Model, Y)

    Business component class is restricted to CSSBCBase

  • 7/30/2019 Module 48 State Models

    6/15

    6 of 15State Model

    State Model

    A state model also consists of:

    A set of allowed transitions that can be restricted Only can be executed by authorized positions

    Only can be executed when a condition is satisfied

    State Transitions

    Restricted Transition

    States

    State Field

  • 7/30/2019 Module 48 State Models

    7/157 of 15

    State Model

    Creating a State Model

    1. Define the Desired Life Cycle

    2. Create a New State Model3. Specify the Allowed States

    4. Specify the Allowed Transitions and Restrictions

    5. Specify Authorized Positions

    6. Test the State Model

  • 7/30/2019 Module 48 State Models

    8/158 of 15

    State Model

    1. Define the Desired Life Cycle

    Review relevant business policies to identify restricted transitions

    Document the allowed transitions and corresponding restrictions

  • 7/30/2019 Module 48 State Models

    9/159 of 15State Model

    2. Create a new State Model

    Navigate to Administration - Application > State Models

    Create a new state model record

    Specify the business component and state field

  • 7/30/2019 Module 48 State Models

    10/1510 of 15State Model

    3. Specify the allowed states

    Navigate to the States view

    Create a record for each allowable value of the state field Specify one state as the default initial state in which new records are

    created

  • 7/30/2019 Module 48 State Models

    11/1511 of 15State Model

    4. Specify the Allowed Transitions and Condition

    A state machineis an engine that enforces the transitions betweenstates for an object during its lifetime

    A state transitiondefines the allowable migration of an object fromone state to the next.

    Navigate to the Transitions view

    Create a record for each allowable transition

    Select the from and to states using the drop-down list

    Indicate if there are restrictions on who can execute the transition

    Specify any conditions to be satisfied before transition can occur

  • 7/30/2019 Module 48 State Models

    12/15

  • 7/30/2019 Module 48 State Models

    13/1513 of 15State Model

    6. Test the State Model

    Make sure the state model activation and expiration dates are valid

    Only one state model based on a given field can be active at any given time

    Create one or more test records and verify that the business policy is

    correctly implemented

    New state model is effective when a new application object manager

    process starts

    New process reads the updated state model cache

  • 7/30/2019 Module 48 State Models

    14/1514 of 15State Model

    Module Highlights

    A state model restricts the life cycle of a business component by

    defining a set of states and allowed transitions between the states State models:

    Are built in the Siebel client using declarative configuration

    Do not require recompiling the .srf file

    Transitions between states can be restricted as follows:

    Not allowed at all

    Allowed under only certain conditions

    Allowed by only certain positions

    Customers can enable others for state model if the business component

    class is CSSBCBase

  • 7/30/2019 Module 48 State Models

    15/1515 of 15State Model

    Lab

    In this lab you will:

    Create a state model to restrict the changes in the status of a Sales Order