Search for the Right Document
Activity Diagram Example for User Registration and Email Verification
Process Overview
The process describes how a new user registers for an account and verifies their email address to activate the account. The flow includes user input, system validation, email notification, and account activation.
Activities and Flow
- Start
- The process begins when a new user navigates to the “Register” page.
- Fill Registration Form
- Input: User enters first name, last name, email, and password.
- Decision Point: Check if all required fields are filled and the data format is valid.
- Yes: Proceed to “Submit Registration Form.”
- No: Display error messages and return to “Fill Registration Form.”
- Submit Registration Form
- Action: User clicks the “Register” button.
- System Process: Validate the input data against security and format rules (e.g., email format, password strength).
- Decision Point: Data Validation
- Condition: Is the input data valid?
- Yes: Proceed to “Create User Account.”
- No: Display error messages and return to “Fill Registration Form.”
- Condition: Is the input data valid?
- Create User Account
- Action: System creates a user account in the database.
- System Process: Store user data securely, hash and salt the password, and set the account status to “Pending Verification.”
- Send Verification Email
- Action: System generates a verification email with a unique activation link and sends it to the user’s email address.
- System Process: Wait for the user to click the activation link.
- Decision Point: User Clicks Verification Link
- Condition: Has the user clicked the email verification link?
- Yes: Proceed to “Activate Account.”
- No: System sends a reminder email if the user has not verified within 24 hours.
- Condition: Has the user clicked the email verification link?
- Activate Account
- Action: System verifies the activation link and sets the account status to “Active.”
- Output: Display a success message, “Your account has been successfully activated!”
- End
- The process ends with the user being able to log in to their activated account.
Diagram Layout Description
- Start Node: Represented by a solid circle at the top of the diagram.
- Activity Nodes: Represented by rounded rectangles for each activity (e.g., “Fill Registration Form,” “Submit Registration Form”).
- Decision Nodes: Represented by diamonds for conditional logic (e.g., “Is the data valid?”).
- Arrows: Indicate the flow of the process, connecting activities and decision points.
- End Node: Represented by a solid circle with a border at the bottom of the diagram, indicating the end of the process.
Example Flow
- User Action: The user fills in their details and submits the form.
- System Validation: The system checks the details and either creates the account or returns an error.
- Email Verification: The user receives and clicks the verification link, activating their account.
- Account Activation: The account is activated, and the user is ready to log in.