fun step(process: String, router: Router<C>, name: String = process, description: String = processes[process]!!.getDescription()): Unit
Add new step
process
- Which process should be used in this step
router
- The router to use after executing this step
description
- The description of this step
fun step(process: String, nextStep: String?, name: String = process, description: String = processes[process]!!.getDescription()): Unit
Add new step
process
- Which process should be used in this step
nextStep
- The step that should be executed after this, if null this is the last step in the workflow
description
- The description of this step
fun step(process: String, router: (context: C) -> String?, name: String = process, description: String = processes[process]!!.getDescription()): Unit
Add new step
process
- Which process should be used in this step
router
- Function that selects which step should be executed after this, if it returns null this is the last step in the workflow
description
- The description of this step
fun step(process: Process<C>, router: Router<C>, name: String = process.getName(), description: String = process.getDescription()): Unit
Add new step
process
- Process that should be used in this step, is also immediately bound to this workflow
router
- The router to use after executing this step
description
- The description of this step
fun step(process: Process<C>, nextStep: String?, name: String = process.getName(), description: String = process.getDescription()): Unit
Add new step
process
- Process that should be used in this step, is also immediately bound to this workflow
nextStep
- The step that should be executed after this, if null this is the last step in the workflow
description
- The description of this step
fun step(process: Process<C>, router: (context: C) -> String?, name: String = process.getName(), description: String = process.getDescription()): Unit
Add new step
process
- Process that should be used in this step, is also immediately bound to this workflow
router
- Function that selects which step should be executed after this, if it returns null this is the last step in the workflow