Loading
Feature Degradation | Agentforce Voice Read More
Get Started with Communications, Media, and Energy & Utilities (CME)...
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
          Working with Interfaces

          Working with Interfaces

          Interfaces and implementations are interchangeable parts that implement business logic in Vlocity applications. An interface is a call out to business logic; the implementation is that business logic. An interface does not contain business logic, the implementation does. The interface asks the question and the implementation provides the answer. The interface describes what the application is supposed to do and the implementation executes the action.

          Using interfaces, you can redirect the standard, or default, process flow to perform specialized tasks, and then return to the process. Use interfaces to perform the following tasks:

          • Enhance and extend standard processing

          • Access and use data from other sources

          • Enforce business rules and processes

          The following are common points in the process where you can call interfaces:

          • The pre-select product procedure calls availability and eligibility interfaces.

          • The select product procedure calls an add item interface.

          • The check compatibility or validate products procedure calls compatibility interfaces.

          • The price the order procedure calls a pricing interface.

          An interface requires an Apex class and an administrative task that specifies that Apex class.

          • Interface Packages, Types, and Default Implementations
            Vlocity provides two packages: managed and unmanaged. The unmanaged package includes examples of interfaces, implementations, classes, and flows that provide starting points for custom business logic.
          • Interface and Implementation Workflows
            Each Vlocity process has several components, including a trigger event, interface, implementation, flow, filter, and action.
          • The Order Process
            A customer wants to buy a product. You use the Vlocity application to determine what you can offer that customer.
          • Availability and Eligibility Interface Implementations
            Use the Availability and Eligibility interfaces to interrupt a flow to return specific items. For example, when you create a quote, you want Vlocity to return the available and eligible offers.
          • Pricing Logic
            A flow drives pricing. Each step in the flow follows a natural language layout. The flow includes Rule Actions and Rule Filters.
          • Add a New Interface
            Salesforce Industries supports many predefined interfaces and releases more interfaces with each upgrade. You can also add your own custom interfaces.
          • Creating a Custom Context Parser
            Depending on the object type, ContextInputParserInterfaceContextInputParserInterface invokes one of five interfaces to parse context information for the object. You can create custom context parsers for additional objects.
           
          Loading
          Salesforce Help | Article