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

pl.newicom.dddd.scheduling.DeadlinesReceptor.scala Maven / Gradle / Ivy

There is a newer version: 1.7.8
Show newest version
package pl.newicom.dddd.scheduling

import akka.actor.ActorPath
import pl.newicom.dddd.aggregate.EntityId
import pl.newicom.dddd.coordination.{ReceptorBuilder, ReceptorConfig}
import pl.newicom.dddd.messaging.event.EventMessage

object DeadlinesReceptor {

  def apply(businessUnit: EntityId, department: String): ReceptorConfig =
    ReceptorBuilder()
      .reactTo(currentDeadlinesOfficeId(department).caseRef(businessUnit))
      .route {
        case em: EventMessage =>
          ActorPath.fromString(em.getMetaAttribute("target"))
      }
      .copy(isSupporting_MustFollow_Attribute = false)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy