fsprojects / Amazon.SimpleWorkflow.Extensions

Extensions to AmazonSDK's SimpleWorkflow capabilities to make it more intuitive to use
http://fsprojects.github.io/Amazon.SimpleWorkflow.Extensions
MIT License
16 stars 10 forks source link

Add OnDecisionTaskError and OnActivityTaskError events #6

Closed theburningmonk closed 11 years ago

theburningmonk commented 11 years ago

the onExn handler defined for DecisionWorker and ActivityWorker could be used to fire events in the Workflow so those exceptions can be handled by the outside world, e.g.

let workflow = Workflow(...) ++> Activity(...)

workflow.OnDecisionTaskError.Add(fun exn -> ...)