Close Menu
SalesforceCodex
    Facebook X (Twitter) Instagram
    Trending
    • 10 Salesforce Chrome Extensions to Boost Your Productivity
    • How to Build a Generic Modal Window in Lightning Web Component
    • Top 10 Salesforce Flow Features of Salesforce Summer ’25
    • Unlock the Power of Vibe Coding in Salesforce
    • How to Implement Dynamic Queueable Chaining in Salesforce Apex
    • How to Implement Basic Queueable Chaining in Salesforce Apex
    • How to Suppress PMD Warnings in Salesforce Apex
    • Top 10 PMD Issues Salesforce Developers Should Focus on in Apex
    Facebook X (Twitter) Instagram
    SalesforceCodex
    Subscribe
    Saturday, June 14
    • Home
    • Architecture
    • Salesforce
      • News
      • Apex
      • Integration
      • Books Testimonial
    • Questions
    • Certification
      • How to Prepare for Salesforce Integration Architect Exam
      • Certification Coupons
    • Integration Posts
    • Downloads
    • About Us
      • Privacy Policy
    SalesforceCodex
    Home»Architecture»UML Sequence Diagram for Salesforce Integration

    UML Sequence Diagram for Salesforce Integration

    Dhanik Lal SahniBy Dhanik Lal SahniDecember 3, 2020Updated:June 11, 20231 Comment6 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    UML Sequence Diagram for Salesforce Integration
    Share
    Facebook Twitter LinkedIn Pinterest Email

    UML Sequence diagram is important for Salesforce Integration with third party system. It will give step by step execution of complete integration based on activity time. Let us see UML diagram concept in detail.

    UML (Unified Modelling Language) is standard modelling language for designing and documenting a system in an object oriented manner. Modelling is about creating some model or some software product. So basically, UML will help us in designing software application. UML will help developer in writing proper code for application based on design.

    UML Design - SalesforceCodex

    UML diagram should be created once requirement phase is completed or some time it is also created in requirement phase.

    UML Diagram Types:

    UML diagram are divided in below two categories based on type of information need to show.

    1. Structural Diagram
    2. Behavioral Diagram

    1. Structural Diagram

    UML Structural diagrams depict the static elements of a system that are independent of time. These static elements forms the main structure and those are stable. Below are types of structural UML diagram

    1. Class Diagram
    2. Object Diagram
    3. Component Diagram
    4. Composite Structure Diagram
    5. Deployment Diagram
    6. Package Diagram
    7. Profile Diagram

    2. Behavioral Diagram

    UML Behavioral Diagrams depict the elements of a system that are dependent on time and dynamic concepts of the system and it also manage how they relate to each other

    1. Activity Diagrams
    2. Use Case Diagrams
    3. StateMachine Diagrams
    4. Timing Diagrams
    5. Sequence Diagrams
    6. Communication Diagrams
    7. Interaction Overview Diagrams

    UML Diagram based on SDLC Cycle

    All UML diagram are not required in each phase of project. Based on project requirement it is created.

    Requirement Phase

    In this phase use case diagram is required. If use cases are being complicated then we can create activity diagram.

    Design Phase:

    Other than use case and activity diagram, we can create in this phase. Again it is not necessary to create each diagram for smaller project. Based on requirement only create UML diagrams.

    Development Phase:

    Whatever we have created in design phase we can use in development phase.

    Testing Phase:

    UML diagram which we have created and requirement and design phase are required in this phase as we need to test complete system.

    UML Sequence Diagram:

    A sequence diagram is a type of interaction diagram because it describes how—and in what order—a group of objects works together. Sequence diagram shows interactions between objects over a specific period of time.

    Sequence diagram is used to visualize the sequence of calls in a system to perform specific functionality. These diagrams are used by software developers and business professionals to understand requirements for a new system or to document an existing process.

    Benefit of Sequence diagram:

    Below are benefits of sequence diagram

    1. Represent the details of a UML use case.
    2. Model the logic of a procedure, function, or operation.
    3. Show how objects and components interact with each other to complete a process.
    4. Plan and understand the detailed functionality of an existing or future scenario.

    Sequence Diagram Symbols/Notations:

    1. Actor:

    • An actor in a UML diagram represents a type of role where it interacts with the system and its objects.
    • We use actors to depict various roles including human users and other external subjects.
    • We represent an actor in a UML diagram using a stick person notation.
    • We can have multiple actors in a sequence diagram.
    Use Case Diagram Actor Icons - Salesforcecodex

    2. Activation Box:

    Activation box represents the time needed for an object to complete a task. The longer the task will take, the longer the activation box becomes in UML diagram.

    Activation Box UML -Salesforcecodex

    3. Object Symbol

    Object symbol represents a class or object in UML. This object symbol demonstrates how an object will behave in the context of the system. We should not list class attributes using this shape.

    Object UML - Salesforcecodex

    4. Lifeline

    • A lifeline is a named element which depicts an individual participant in a sequence diagram.
    • Each instance in a sequence diagram is represented by a lifeline.
    • Lifeline elements are located at the top in a sequence diagram.
    • Lifeline elements are part of the system.

    5. Message Elements

    Communication between objects are depicted using messages. The messages appear in a sequential order on the lifeline. We represent messages using arrows. Lifelines and messages form the core of a sequence diagram.

    Synchronous Message:

    • A synchronous message waits for a reply before the interaction can move forward.
    • The sender waits until the receiver has completed the processing of the message.
    • The caller continues only when it knows that the receiver has processed the previous message i.e. it receives a reply message.
    • We use a solid arrow head to represent a synchronous message
    Synchronous Message - Salesforcecodex

    Asynchronous Message

    • An asynchronous message does not wait for a reply from the receiver.
    • The interaction moves forward irrespective of the receiver processing the previous message or not.
    • We use a lined arrow head to represent an asynchronous message.
    Asynchronous Message - Salesforcecodex

    Create Message:

    We use a Create message to instantiate a new object in the sequence diagram. It is represented with a dotted arrow and create word labelled on it to specify that it is the create Message symbol.

    Create UML Message - SalesforceCodex

    Delete Message:

    We can use a Delete Message to delete an object. When an object is deallocated memory or is destroyed within the system we can use the Delete Message symbol. It destroys the occurrence of the object in the system. It is represented by an arrow terminating with a x.

    Delete UML Message - SaleforceCodex

    Self Message:

    In certain scenarios might arise where the object needs to send a message to itself like recursive methods. Such messages are called Self Messages. Represented with a U shaped arrow.

    Lifeline UML - Salesforcecodex

    Reply messages

    • Reply messages are used to show the message being sent from the receiver to the sender.
    • We represent a return/reply message using an open arrowhead with a dotted line.
    • The interaction moves forward only when a reply message is sent by the receiver.
    Reply Message UML  - Salesforcecodex

    Found Message:

    • A Found message is used to represent a scenario where an unknown source sends the message.
    • It is represented using an arrow directed towards a lifeline from an end point.
    Found Message - Saleforcecodex

    Lost message:

    • A Lost message is used to represent a scenario where the recipient is not known to the system.
    • It is represented using an arrow directed towards an end point from a lifeline
    Lost Message - Salesforcecodex

    Guards (Constraint) Message:

    • To model conditions we use guards in UML.
    • They are used when we need to restrict the flow of messages on the pretext of a condition being met.
    • Guards play an important role in letting software developers know the constraints attached to a system or a particular process.
    UML Guards - Salesforcecodex

    Sequence Diagram For REST API Integration:

    Here is sequence of events when we implement Remote Call-in pattern using either REST API for notifications from external events or SOAP API to query a Salesforce object.

    Sequence diagram for REST API call -SalesforceCodex

    Session Video:

    References:

    http://agilemodeling.com/artifacts/sequenceDiagram.htm

    https://www.smartdraw.com/uml-diagram/

    Other Posts

    1. Create OCR App using Salesforce Einstein OCR API
    2. Extract Driver License Detail from Image using Einstein API
    3. Extract Text From Image using Google Cloud Vision
    integration architecture salesforce salesforce api integration uml uml sequence diagram
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleFile Related List in Lightning Web Component
    Next Article Using Salesforce Bulk API V1
    Dhanik Lal Sahni
    • Website
    • Facebook
    • X (Twitter)

    With over 18 years of experience in web-based application development, I specialize in Salesforce technology and its ecosystem. My journey has equipped me with expertise in a diverse range of technologies including .NET, .NET Core, MS Dynamics CRM, Azure, Oracle, and SQL Server. I am dedicated to staying at the forefront of technological advancements and continuously researching new developments in the Salesforce realm. My focus remains on leveraging technology to create innovative solutions that drive business success.

    Related Posts

    By Dhanik Lal Sahni9 Mins Read

    10 Salesforce Chrome Extensions to Boost Your Productivity

    June 1, 2025
    By Dhanik Lal Sahni4 Mins Read

    How to Build a Generic Modal Window in Lightning Web Component

    May 26, 2025
    By Dhanik Lal Sahni6 Mins Read

    Top 10 Salesforce Flow Features of Salesforce Summer ’25

    May 11, 2025
    View 1 Comment

    1 Comment

    1. Pingback: Studying for the Salesforce.com Integration Architect Certification Exam | Teach Me Salesforce

    Leave A Reply Cancel Reply

    Ranked #1 SALESFORCE DEVELOPER BLOG BY SALESFORCEBEN.COM
    Featured on Top Salesforce Developer Blog By ApexHours
    Recent Posts
    • 10 Salesforce Chrome Extensions to Boost Your Productivity
    • How to Build a Generic Modal Window in Lightning Web Component
    • Top 10 Salesforce Flow Features of Salesforce Summer ’25
    • Unlock the Power of Vibe Coding in Salesforce
    • How to Implement Dynamic Queueable Chaining in Salesforce Apex
    Ranked in Top Salesforce Blog by feedspot.com
    RSS Recent Stories
    • Top 20 Salesforce Data Cloud Interview Questions & Answers for Admins June 5, 2025
    • How to Connect Excel to Salesforce to Manage Your Data and Metadata February 9, 2025
    • Difference Between With Security and Without Security in Apex January 2, 2025
    • Top Reasons to Love Salesforce Trailhead: A Comprehensive Guide December 5, 2024
    • How to Utilize Apex Properties in Salesforce November 3, 2024
    Archives
    Categories
    Tags
    apex (111) apex code best practice (8) apex rest (11) apex trigger best practices (4) architecture (22) Asynchronous apex (9) AWS (5) batch apex (9) batch processing (4) code analysis (3) code optimization (8) custom metadata types (5) design principle (9) flow (15) future method (4) google (6) google api (4) integration (19) integration architecture (6) lighting (8) lightning (65) lightning-combobox (5) lightning-datatable (10) lightning component (31) Lightning web component (63) lwc (52) named credential (8) news (4) optimize apex code (4) optimize apex trigger (3) Permission set (4) pmd (3) Queueable (9) rest api (23) S3 Server (4) salesforce (142) salesforce apex (47) salesforce api (4) salesforce api integration (5) Salesforce Interview Question (4) salesforce news (5) salesforce question (5) solid (6) tooling api (5) Winter 20 (8)

    Get our newsletter

    Want the latest from our blog straight to your inbox? Chucks us your detail and get mail when new post is published.
    * indicates required

    Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn Reddit Telegram
    © 2025 SalesforceCodex.com. Designed by Vagmine Cloud Solution.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.