Use-case-driven development starts with what users need to accomplish and progressively turns those goals into requirements, interaction flows, design models, implementation tasks, and tests. Use cases help keep technical decisions connected to user-visible outcomes; they complement—not replace—requirements, architecture, code, and testing.

A useful tool division is:
-
Visual Paradigm: create and manage the structured UML model and related artifacts.
-
Visual Paradigm’s AI-assisted tools: speed up drafting and analysis, then review and correct the output.
-
VPasCode: create, edit, preview, and export text-based diagrams such as PlantUML and Mermaid. Its current feature set includes AI diagram generation, modification, syntax repair, and translation.
1. What “use-case-driven” means
A use case describes how an external role interacts with a system to achieve a goal. It is not simply a feature label or a screen description.

For example:
-
Too vague: “Checkout”
-
More useful: “Customer places an order”
-
A complete use case adds the trigger, preconditions, main success path, alternatives, failures, and postconditions.
A use-case-driven process uses those goal descriptions to guide subsequent work:
-
Identify system scope and stakeholders.
-
Capture actors and their goals.
-
Write and review use-case narratives.
-
Detail important flows with behavioral diagrams.
-
Identify domain concepts and responsibilities.
-
Derive requirements, design tasks, and tests.
-
Keep the artifacts traceable as the system changes.
Use cases are especially useful for clarifying functional behavior and exceptions. They do not, by themselves, adequately specify qualities such as performance, availability, accessibility, or security; capture those as explicit quality requirements and connect them to affected use cases.
2. UML diagrams used in the process
Not every project needs every UML diagram. Choose a diagram when it answers a question that the current narrative or team discussion cannot answer clearly.

| Diagram | What it clarifies | Typical point in the process |
|---|---|---|
| Use-case diagram | System boundary, actors, and goal-level use cases | Scope and stakeholder discussions |
| Activity diagram | Workflow, decisions, parallel work, and alternate paths | Breaking down complex scenarios |
| Sequence diagram | Time-ordered interactions among an actor, UI, services, and external systems | Exploring a scenario or API behavior |
| Class diagram | Important domain concepts, relationships, and later design structure | Domain analysis and object-oriented design |
| State-machine diagram | States and event-driven transitions for a lifecycle-sensitive entity | When an object’s state changes are complex |
| Component diagram | Major software components and their dependencies | Architecture and design |
| Deployment diagram | Runtime nodes and where software components are deployed | Infrastructure and operations design |
Core diagrams
Use-case diagram. This is a scope map, not a detailed workflow. It shows the system boundary, external actors, and goals. It is useful for asking “Who uses this system?” and “What do they need it to do?” It does not show the order of steps.
Activity diagram. Use this when the scenario includes decisions, loops, parallel actions, or several alternative paths. It gives a compact view of workflow logic.
Sequence diagram. Use this when the key question is who sends what message to whom, and in what order. It helps explore responsibilities and identify missing interactions, such as payment failure handling.
Closely related diagrams
Class diagram. Use it to express the domain concepts that surface in narratives—such as Order, Payment, and InventoryReservation—and their relationships. Early on, keep it conceptual; avoid turning it prematurely into a detailed code blueprint.
State-machine diagram. Use it when an entity’s lifecycle matters. An order might move through Draft, PendingPayment, Confirmed, Cancelled, and Fulfilled. This diagram helps make invalid transitions and event handling explicit.
Component and deployment diagrams. These help turn behavioral requirements into a system design: which software parts collaborate, and where they run. They are more valuable once the use cases and responsibilities are sufficiently understood.
3. Key concepts and common mistakes

-
Actor: a role outside the system boundary, such as
Customer,Payment Provider, orWarehouse Service. An actor is not necessarily a person; an external system can be one. -
System boundary: defines what is inside the system being modeled. Place external actors outside it.
-
Use-case goal: an outcome meaningful to an actor, not a UI control or implementation step.
-
Trigger: the event that starts a scenario.
-
Precondition: what must already be true for the scenario to begin.
-
Main success scenario: the ordinary path to the goal.
-
Alternative or exception flow: a meaningful variation, such as payment refusal or unavailable stock.
-
Postcondition: what is true after success or failure.
-
«include»: a relationship for required, reused behavior. It is not just a way to make a diagram look tidy. -
«extend»: a relationship for conditional or optional behavior that extends a base use case under specified conditions. Don’t use it for every error branch; a narrative or activity diagram may express alternatives more clearly. -
Traceability: links among a use case, its requirements, diagrams, implementation tasks, and tests.
Common mistakes include making use cases too small (“click button”), too broad (“manage everything”), treating every actor as a job title rather than an external role, and drawing a use-case diagram as though it were a process flow. Keep diagrams and narratives consistent: if a payment-failure path appears in one, it should not disappear from the related sequence or acceptance tests.
4. Example: customer places an order
Assume an online shop supports customers placing orders, an external payment provider authorizing payment, and a warehouse reserving stock.
Scope and actors

System: Online Shop
Actors: Customer, Payment Provider, Warehouse Service
Goal: Customer places an order
At use-case-diagram level, the customer participates in Place Order; that use case interacts with the external payment and warehouse systems. The diagram should not attempt to show every screen or message.
Use-case narrative

Use case: Place Order
Primary actor: Customer
Trigger: Customer submits a checkout request.
Preconditions: The customer has items in a cart, and the cart can be checked out.
Main success scenario:
-
The system validates the cart and delivery details.
-
The system requests a stock reservation.
-
The warehouse confirms the reservation.
-
The system requests payment authorization.
-
The payment provider approves the payment.
-
The system creates the order and confirms it to the customer.
Alternative flows:
-
Stock unavailable: The system informs the customer which item cannot be reserved and does not confirm the order.
-
Payment declined: The system releases the stock reservation, explains that payment failed, and allows the customer to retry with another payment method.
-
Payment service unavailable: The system does not claim the order is paid; it reports the problem and provides a safe retry path.
Postcondition on success: The order is confirmed, payment is authorized, and stock is reserved.
Postcondition on failure: No order is falsely confirmed; any reservation created for the failed attempt is released or handled by a defined recovery process.
These details can lead to several diagrams:
-
A use-case diagram communicates scope and actors.
-
An activity diagram shows the decision paths for stock and payment.
-
A sequence diagram shows the customer, shop, warehouse, and payment-provider messages in order.
-
A class diagram may identify
Cart,Order,OrderLine,PaymentAuthorization, andStockReservation. -
A state-machine diagram may define valid order transitions and what happens after payment failure.
PlantUML starter: use-case diagram

@startuml
left to right direction
actor Customer
actor "Payment Provider" as Payment
actor "Warehouse Service" as Warehouse
rectangle "Online Shop" {
usecase "Place Order" as PlaceOrder
}
Customer --> PlaceOrder
PlaceOrder --> Payment
PlaceOrder --> Warehouse
@enduml
This is intentionally a scope-level diagram. The order of calls and failure behavior belong in the narrative and behavioral diagrams.
5. Practical workflow in Visual Paradigm

-
Set scope. Record the system boundary, business objective, stakeholders, and assumptions.
-
Identify actors and goals. Use interviews, workshops, existing requirements, and support issues. Phrase goals as outcomes.
-
Draw the use-case diagram. Keep it readable and high-level; group related goals if the diagram becomes crowded.
-
Write use-case narratives. Agree on triggers, preconditions, success steps, alternative flows, and postconditions.
-
Prioritize use cases. Select high-value, high-risk, or technically uncertain goals for further modeling.
-
Add behavioral detail. Use activity diagrams for workflow branching and sequence diagrams for collaborations and message order.
-
Develop the domain model. Identify concepts and relationships from the narratives; add state machines when lifecycles are important.
-
Derive design and tests. Turn the agreed behavior into implementation slices and acceptance tests. Include tests for important alternatives and failure paths, not only the happy path.
-
Review traceability. Make sure every important requirement is covered by a use case or another clear requirement artifact, and that each critical use case has corresponding verification.
-
Update the model as decisions change. Treat the diagrams and narratives as working artifacts, not a one-time documentation phase.
Visual Paradigm lists AI-assisted use-case capabilities including use-case description generation, use-case and scenario analysis, diagram refinement, use-case-to-activity-diagram generation, and a use-case-driven development assistant. It also lists AI tools for sequence and class diagrams. Availability may depend on the product and plan.
6. Using AI effectively
AI is most useful as a drafting and review assistant, not as the authority on requirements.

Good tasks for AI include:
-
Drafting a use-case narrative from stakeholder notes.
-
Finding vague steps, missing actors, ambiguous outcomes, or unhandled exceptions.
-
Suggesting alternate flows and acceptance-test ideas.
-
Generating a first-pass activity or sequence diagram from an agreed narrative.
-
Comparing a diagram against the narrative and identifying mismatches.
A productive review loop is:
-
Provide the AI with the scope, actors, business rules, and constraints.
-
Ask for a draft in a specific format, such as a structured narrative or PlantUML.
-
Check each behavior against stakeholder intent and business rules.
-
Correct invented assumptions and remove irrelevant detail.
-
Render the diagram, then validate that it communicates the intended behavior.
-
Have the responsible analyst, product owner, or engineer approve it before treating it as a requirement or design decision.
For example, prompt with: “Using only the stated requirements, draft the Place Order use case. Separate the main success scenario from alternate flows. Mark unresolved assumptions explicitly; do not invent policies.” That constraint makes review easier than asking AI to “design the checkout system” in one pass.
7. Where VPasCode fits
VPasCode is a browser-based diagram-as-code workspace. It supports text-based diagram formats including PlantUML and Mermaid, with a rendered preview; its feature descriptions also include AI generation and modification, syntax-error repair, translation, and exports such as SVG, PNG, and PDF.

A practical workflow is:
-
Use Visual Paradigm to establish and review the requirements and formal model.
-
Generate or write a PlantUML/Mermaid draft for a diagram where text editing is convenient.
-
Open it in VPasCode to inspect the live rendering, refine the code, and fix syntax issues.
-
Save the source text with the project or documentation so changes can be reviewed and versioned.
-
Export or share the rendered diagram as needed.
VPasCode is a good fit for quick iterations, documentation, and teams comfortable reviewing text diffs. A dedicated modeling tool is generally better when the team needs a centrally managed model with richer model-level relationships and traceability. Don’t assume a diagram generated from text automatically becomes a fully integrated UML model in another tool; check the import and interchange workflow for the specific edition and format.
8. A lightweight checklist
Before considering a use case ready for implementation, check that:

-
The actor and system boundary are clear.
-
The goal describes a meaningful outcome.
-
The trigger, preconditions, and success postcondition are explicit.
-
Important alternate and failure paths are covered.
-
Business rules and unresolved assumptions are visible.
-
Related activity, sequence, class, or state diagrams add clarity rather than duplicate the narrative.
-
Acceptance tests cover success and important failure behavior.
-
AI-generated content has been reviewed by someone accountable for the requirements.
-
Diagram sources and approved artifacts are kept in sync.
The central discipline is straightforward: start with user goals, make behavior explicit, model only what helps resolve uncertainty, and trace the agreed behavior into implementation and tests.
