All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.touk.nussknacker.engine.canonize.MaybeArtificialExtractor.scala Maven / Gradle / Ivy

The newest version!
package pl.touk.nussknacker.engine.canonize

import pl.touk.nussknacker.engine.graph.EspProcess

private[engine] trait MaybeArtificialExtractor[A] {
  def get(errors: List[ProcessUncanonizationError], rawValue: A): A
}

private[engine] object MaybeArtificialExtractor {

  implicit val espProcess: MaybeArtificialExtractor[EspProcess] = new MaybeArtificialExtractor[EspProcess] {

    override def get(errors: List[ProcessUncanonizationError], rawValue: EspProcess): EspProcess = {
      // TODO: we should probably remove artificial nodes by dummy id if there is an error
      rawValue
    }

  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy