sclasen / swfsm

[golang] simple workflow finite state machines
MIT License
53 stars 14 forks source link

Feature Request: have ActivityWorker provide a list of installed handlers #194

Open pkrull opened 7 years ago

pkrull commented 7 years ago

It would be nice, particularly for unit testing, if ActivityWorker could provide a list of installed handlers. The returned list could simply contain the activity names.

sclasen commented 7 years ago

@pkrull seems reasonable, fancy trying your hand at a PR?

pkrull commented 7 years ago

@sclasen You flatter me. I'm a go newbie but could probably tackle it. I might be able to get to it within the next week or so. Do you have a preference for the function name?

sclasen commented 7 years ago

:)

Maybe just make it func Handers() map[string]*ActivityHandler and return a copy of the handlers map?