# Learn Flow with Driving Licence example

# Objective

We will build a Driving Licence Flow.

  • A applicant will apply for driving licence.
  • Applicant's application will be reviewed and accepted/rejected.
  • If application is accepted then applicant will select question for written test.
  • After selecting question, applicant will go for written test.
  • Written test will get evaluated.
  • If applicant passes then Learner licence will be issued or a regret letter will be sent to the applicant.
  • Successful applicant will go for road test.
  • Applicant can attempt two road test. If twice unsuccessful then a regret letter will be sent to the applicant.
  • If applicant passes road test then driving licence will be issued.

# Code

[https://bitbucket.org/sagar-metastay/drivinglicence] (https://bitbucket.org/sagar-metastay/drivinglicence)

# Scope

Lets develop this flow in fourphases, eachphase will gradually build the flow but also can be stopped there if we want to take rest of the licence process manually.

Phase Contains
phase I Create DL Project
Review Application Task
Gompa Setup
Execute Flow
phase II Select Question, Write Test, Issue Regret Letter Task
Execute Flow
phase III Evaluate, Learner Licence Task
Execute Flow
phase IV Road Test, Issue DL Task
Execute Flow
Play with Flow
phase V Add new Functionality, Introduce Issue DL as separate flow
Gompa Setup For Subflow < gompa-setup
Execute Flow