I'm looking to utilize a new WF 4.0 state machine, and the way it's going to be used is that I have a Business Layer that is going to be driven by a state machine but then it will be wrapped by a service layer that is going to be implemented on WCF
databus (non Workflow WCF service), so basically, whenever a call is received on WCF, that service needs to interact with a state machine. To be more specific, it needs to be able to restore an instance of a state machine from a store (db) based
on some WCF parameters (and there may be multiple instances of state machines persisted in db) and request certain data from that state machine and potentially move that state machine to some other state and persist it until next WCF call against
that particular FSM.
I've gone through all the tutorials, and it does seem relatively simple in tutorials, however I'm having difficulties interacting with a state machine from pure code outside. I am most likely missing something very simple, but whenever I define a variable on
a state machine level (I'm using VS designer), I cannot seem access it from code when instantiating that state machine with either