Hi - I’m using ActionBuilder to create a custom protocol…something like this…
val myAction1 = new ActionBuilder {
def build(next: ActorRef, protocols: Protocols) =
system.actorOf(Props(new MyCustomProtocol(next, “title here”)))
}
And I am struggling to pass the result from 1 custom exec step to another…such that myAction2 has access to the result from the prior exec, myAction1.
.exec(myAction1)
.exec(myAction2)
For instance – from the example below, I’m trying to stash “result” in session to be referenced in a subsequent “exec”. But I cannot seem to add a name-value pair to the session from within my class.
Any advise on how to best approach this?