Skip to content

Playing around with railway programming via business flows library in java

Notifications You must be signed in to change notification settings

hanfak/railway-prog-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Business Flows Example

Examples of using a java libray implementing 'Railway programming'.

The libray being used is Business Flows found here https://github.com/theangrydev/business-flows

See here for more info on Railway programing: https://fsharpforfunandprofit.com/rop/

Examples:

  • Chaining in a functional style, to flow through happy and sad path, and deal with exceptions via technical failures.
    • To see examples being run, run main method here railway-prog-examples/src/main/java/examplerunners/JobApplicationProcessRunner.java
  • Using Potential failures, to handle sad path only cases where happy path is not neccesary and only care about the sad path.
    • To see examples being run, run main method here railway-prog-examples/src/main/java/examplerunners/FiringProcessRunner.java
  • Using Happy Path, when need to use both paths to split flow and do next steps.
    • To see examples being run, run main method here railway-prog-examples/src/main/java/examplerunners/SalaryProcessRunner.java

About

Playing around with railway programming via business flows library in java

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages