You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
384 B
Kotlin

package wf.servitor.common.workflow
import java.io.Serializable
class Workflow(
val entry: Flow = Flow(),
val flows: MutableMap<String, Flow> = mutableMapOf(),
val services: MutableMap<String, Map<String, Any?>> = mutableMapOf()
) : Serializable {
fun getStep(flow: String, path: List<Int>): Step? = (if (flow == "entry") entry else flows.get(flow))?.getStep(path)
}