Extractor for matching the response of composite DMR operations.
Extractor for matching the response of composite DMR operations.
val node = ... // a model node returned by some composite DMR operation node match { case Composite(Success, steps) => steps.foreach(step => s"Processing step $step") case Composite(Failure, failure) => println(s"DMR operation failed: $failure") case _ => println("Undefined result") }
the node to match
the matched patterns
Extractor for parsing responses to composite operations