A free trial that ends
A team tries a B2B tool for 14 days without a card. The home page shows a banner with the days left, a reminder email goes out three days before the end, and on day 14 the workspace goes read-only; if nobody upgrades, its data is deleted 30 days later, after a warning email. Upgrading is a journey of its own, Choose a plan, where the team picks a plan and adds a card; the banner, the reminder email and the read-only page all lead to it.
What UJN shows here Point at a note to see its part of the drawing
The source (46 lines)
trial.puml
@startujnrender { direction: down; arrow_spacing: 24 }journey TRIAL "A free trial that ends"description: "14 days free with no card. Then the workspace goes read-only, and its data is deleted 30 days later"unique_id_friendly: trial start from_signup { description: "Right after sign-up" }action start_trial { title: "Start the trial"; description: "Day 0, no card needed" }data workspaces { title: "Workspace plan"; description: "Trial, read-only or paid"; location: table workspaces }view home { title: "Workspace home"; description: "Banner: days left, Upgrade"; route: /w/:id }action day_11 { type: wait; title: "Until day 11"; description: "If still on trial"; timeout: 11 d }action remind { type: message; title: "Trial ends in 3 days"; channel: email }handoff remind_link { title: "Reminder email"; channel: email; resume: /settings/billing/plans }action day_14 { type: wait; title: "Until day 14"; description: "If still on trial"; timeout: 14 d }action end_trial { title: "End the trial"; description: "Edits blocked, data kept" }action day_44 { type: wait; title: "Until day 44"; description: "If still read-only; a warning email goes out first"; timeout: 30 d }action delete_data { title: "Delete the data"; description: "The workspace and everything in it" }end deleted { type: abandoned; description: "Never came back" }start returning { description: "Signs in later, not yet paid" }action open_ws { title: "Open workspace"; description: "Reads the plan" }view read_only { title: "Workspace, read-only"; description: "Trial ended: view and export, no edits"; route: /w/:id }ref plan { journey: CHOOSE_PLAN; title: "Choose a plan"; description: "Pick a plan, add a card" }end paid { type: success; description: "On a paid plan" } from_signup --> start_trialstart_trial --> homestart_trial --> workspaces { payload: [plan, trial_ends_at] }start_trial --> day_14start_trial --> day_11day_11 --> remind : timeoutremind --> remind_linkremind_link ..> plan : [Choose a plan]day_14 --> end_trial : timeoutend_trial --> workspaces { payload: [plan] }end_trial --> day_44day_44 --> delete_data : timeoutdelete_data --> deletedreturning --> open_wsworkspaces --> open_ws { payload: [plan, trial_ends_at] }open_ws -up-> home : on trialopen_ws --> read_only : read-onlyhome --> plan : [Upgrade]read_only --> plan : [Upgrade]plan .right.> paid : upgradedplan ..> open_ws : left without paying@endujn