Use-case
This library aims to effectively plan the software development by following UML Use-case based from User Stories. Use-case manifests will be detailed later by adding use-case relationships and activity workflows using Apptivity package.
Installation
Use-case is packaged by npm. Source can be found in github repository.
npm install use-
Usage
To better understand how to use this library, we are going to run through a quick start guide.
Quick Start Guide
use-case definition objects.
1. Translate User Stories into Use-case manifest usingThe following are the User Stories gathered from the My Auth Website app.
- As a visitor, I can visit the public area of the system.
- As a visitor or guest, I can login and change my role into admin.
- As an admin, I can logout and change my role back into visitor.
- As an admin, I can update my profile in the users control panel.
Below is the sample translation of User Stories into Use-cases using use-case definition object.
var USECASE = ;USECASE ;
2. Further detail the Use-cases and Activities.
Use-cases can be defined further into subjects
namespace and specific use-case
. When usecases and it's relationships are all defined, their equivalent activities should also be defined to complete the whole Use-case definitions.
var myApp = USECASE; // don't worry, system, subject, usecase, and actors are case-insensitivemyApp ; // here you're going to define activity of the defined usecasesmyApp ; myApp ; myApp ; myApp ;
The example above is for demo purposes only. That is why, Activity definitions and implementations were defined in one script file. The best practice in coding Apptivity is to split definitions (like the
action("setAuthToken");
line above.) from implementations using Apptivity.task(name:String, runner:Function) method in a separate implementation script file.
3. Run a completely defined Use-case.
Complete Use-cases are use-cases having complete definitions of Actor, Subject, optional Usecase relationships, and Activity within the System. Use-cases cannot run using the code below if it is not completely defined.
;
Documentation
Detailed documentation including API can be found here.
License
This Project is fully Open Source MIT licensed.