Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide specific attribute for signal event #1

Closed
gurmitteotia opened this issue Nov 20, 2017 · 0 comments
Closed

Provide specific attribute for signal event #1

gurmitteotia opened this issue Nov 20, 2017 · 0 comments
Assignees
Projects

Comments

@gurmitteotia
Copy link
Owner

gurmitteotia commented Nov 20, 2017

To handle "resume" signal a user should be able to write handler like below

public class OrderWorkflow :Workflow
{
   [Signal]
   public WorkflowAction Resume(ResumeDetail details)
   {
     // take some action and return workflow action.
   }
}

Or

public class OrderWorkflow :Workflow
{
   [Signal(Name="resume")]
   public WorkflowAction OnSignal(ResumeDetail details)
   {
     // take some action and return workflow action.
   }
}
  • Matching of signal name should be case insenstive
  • Fallback to [WorkflowEvent(EventName.Signal)] handler when no specific SignalAttribute matches.
@gurmitteotia gurmitteotia self-assigned this Nov 20, 2017
@gurmitteotia gurmitteotia added this to To Do in Guflow via automation Nov 20, 2017
@gurmitteotia gurmitteotia moved this from To Do to In Progress in Guflow Oct 30, 2018
@gurmitteotia gurmitteotia moved this from In Progress to Ready to Deploy in Guflow Nov 5, 2018
@gurmitteotia gurmitteotia moved this from Ready to Deploy to Done in Guflow Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Guflow
  
Done
Development

No branches or pull requests

1 participant