swfsm icon indicating copy to clipboard operation
swfsm copied to clipboard

Feature Request: have ActivityWorker provide a list of installed handlers

Open pkrull opened this issue 8 years ago • 3 comments

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.

pkrull avatar Jan 18 '17 18:01 pkrull

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

sclasen avatar Jan 18 '17 18:01 sclasen

@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?

pkrull avatar Jan 18 '17 18:01 pkrull

:)

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

sclasen avatar Jan 18 '17 19:01 sclasen