I have actor system with data flow route depending on passed data.
Now I want to extract common pieces of code from actors and introduce states.
Like if I want to build video with audio - then either on "ffmpeg" state I have to wait for both messages from "PhantomJS" and "Audio", and on Amazon S3 -"PhantomJS" and "FFMPEG" arrived. But for other data sets (just video or just audio) it can simply pass through. States may be governed by several actors.
In the very past I worked with OSWorkflow project, which seems to be dead now. I looked at Akka FSM and Twitter Storm, both seem to solve my problem, but perhaps I need some opinions.