Loading
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          State Models and Transitions in Salesforce Contracts

          State Models and Transitions in Salesforce Contracts

          State models define the stages a contract moves through during its lifecycle and the allowed transitions between those stages. Salesforce Contracts includes a default state model. Extend it with custom states and transitions to match your business process.

          How State Model Objects Relate to Each Other

          State models use five objects that form a hierarchy:

          1. Object State Definition — The top-level container. It references a base object (such as Contract) and a field (such as Status), and groups together all the valid states and transitions for that object.

          2. Object State Values — The valid states within a definition. Each value corresponds to one picklist value on the referenced field. For example: Draft, Negotiating, Activated.

          3. Object State Transitions — The allowed paths between two states. Each transition specifies a From state and a To state. For example: Draft → In Approval Process.

          4. Object State Action Definitions — The actions that trigger transitions. Each action definition specifies the action type (Apex class or Omniscript) and what it does.

          5. Object State Transition Actions — Junction records that bind an action definition to a specific transition. They also control the display order of action buttons on the contract record.

          How It Works

          Each contract type maps to one Object State Definition. When a user clicks an action button on a contract record, the system checks whether a valid transition exists from the current state. If it does, the associated action runs and the contract moves to the new state. If no valid transition exists, the button doesn't appear.

          Salesforce Contracts includes a default Object State Definition called "Contract Lifecycle Management." Use it as-is or create custom definitions for different contract types.

           
          Loading
          Salesforce Help | Article