Matthew Layton
Matthew Layton

Reputation: 42340

Corda - Get State Machine Feed from ServiceHub

CordaRPCOps provides a mechanism to access the state machine feed

ops.stateMachinesFeed().updates.subscribe {
    ...
}

I want to be able to access the state machine feed from a Corda service. Is there an equivalent to this using ServiceHub or AppServiceHub?

Upvotes: 0

Views: 64

Answers (1)

Dan Newton
Dan Newton

Reputation: 920

You can't do it at the moment. It requires accessing an instance of StateMachineManager and there is not a way to wire that into a service.

Upvotes: 1

Related Questions