Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition from options to ACTIVATED for bikes and scooters #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion specs/workflow/bike.mmd
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,21 @@ graph TD
label1(Bike/scooter state flow)
%% MermaidJS workflow graph for Bike or E-bike TSP
%% Use https://mermaid-js.github.io/mermaid-live-editor/ to edit
Options[Booking options] -.->|Reserving a bike | Reserved
Options -->|Starting the ride| Activated2[Activated]
Options[Booking options] -->|Reserving a bike | Reserved
Reserved -->|Unlocking| Activated2[Activated]
Reserved -.->|Subject to a fee| Cancelled
Reserved -.->|Denied by TSP| Rejected
Reserved -->|Reservation timed-out| Expired2[Expired]
Activated -->|Ride finished| Expired
Activated -.->|Subject to a fee| Cancelled2[Cancelled]
Activated -->|Lock and keep reserved| On_hold[On hold]
Expired -->|Final price received| Finished
On_hold[On hold] -->|Unlock| Activated
Activated -.->|Denied by TSP| Rejected2[Rejected]
On_hold[On hold] -.->|Denied by TSP| Rejected2[Rejected]
style Cancelled color:red,stroke-dasharray: 5, 5
style Cancelled2 color:red,stroke-dasharray: 5, 5
style Rejected color:red,stroke-dasharray: 5, 5
style Rejected2 color:red,stroke-dasharray: 5, 5
style Expired2 color:red,stroke-dasharray: 5, 5
Expand Down