Akka Actor's implementation
In this section, we will try to implement some of the components using the Akka Toolkit to understand it well. Anyhow, it is not a real WF System, just a simple and dummy solution. We will improve this system, step by step in the coming chapters.
Perform the followings steps one by one:
- Create an SBT Project in your favorite IDE (I am using IntelliJ IDEA):
Project Name: akka-wf-system
- Update the
build.sbtfile:
build.sbt:
name := "akka-wf-system"
version := "1.0"
scalaVersion := "2.12.2"
libraryDependencies ++= Seq(
"com.typesafe.akka" %% "akka-actor" % "2.5.9"
) - Create WF DataStore System:
WFDataSystem.scala:
package com.packt.publishing.wfsystem
import akka.actor.Actor
sealed class WFDataMessage
case object WFStoreData extends WFDataMessage
case object WFRetrieveData extends WFDataMessage
class WFDataSystem extends Actor {
override def receive: Receive = {
case...