Loading
Feature Disruption - Service Cloud VoiceRead More
Feature degradation | Gmail Email delivery failureRead 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
          Interfaces, Implementations, and Services

          Interfaces, Implementations, and Services

          Vlocity applications use interchangeable, reusable interfaces and implementations. You can customize the interfaces, replace them, or preserve your existing business logic. Vlocity offers multiple implementations for each interface. You can choose the implementation that best fits your needs or you can create your own implementation.

          An interface is a call out to business logic. The implementation is that business logic. The interface asks the question and the implementation provides the answer. For example, the pricing interface communicates with the system to ask “how much do these items cost?” The implementation responds with the appropriate business logic to price the products.

          When used judiciously, you can define interfaces once and deploy them many times to consistently maintain and apply business logic.

          You can write your own interface implementations using the interface signature. You can choose the provided implementation that best fits your business needs or you can create your own implementation using Apex code. You can also create a hybrid solution that uses some Vlocity implementations and some custom implementations. An interface can call external functions to resources outside of the Vlocity application. These outside calls connect to other resources and pass parameters. Then, the calls return data to Vlocity.

          Each interface and implementation has a trigger point. At the trigger point, you can call out to an external system and return information from that system. The implementation creates the output and sends it back to the interface.

          The Vlocity provides a set of services that encapsulate functionality you might require for your business application. This section describes these services.

          • Callable Implementations
            Vlocity Apex classes and the Remote Actions of OmniScripts and Integration Procedures support the Callable interface beginning in the Summer '21 release.
          • 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.
          • Interfaces Reference
            Interface descriptions include the type, signature, default implementation, methods, input parameters, output parameters, and other information.
          • Working with Implementations
            An interface interrupts a process; the implementation includes the code that the application executes during that interruption.
          • Implementations Reference
            Implementations are Apex classes that implement interfaces. Implementation descriptions include the implemented interface, other implementations of the same interface, and often sample code. Some implementation descriptions include the type, signature, methods, input parameters, and output parameters. For implementation descriptions that don't, see the interface descriptions.
          • Working with Services
            Services are Apex classes that implement interfaces. Service descriptions include the implemented interface, other implementations of the same interface, and often sample code. Some service descriptions include the type, signature, methods, input parameters, and output parameters. For service descriptions that don't, see the interface descriptions.
           
          Loading
          Salesforce Help | Article