[go: nahoru, domu]

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

WorkflowCore.Sample08,This example is not documented. #360

Open
whuanle opened this issue Jul 30, 2019 · 0 comments
Open

WorkflowCore.Sample08,This example is not documented. #360

whuanle opened this issue Jul 30, 2019 · 0 comments

Comments

@whuanle
Copy link
whuanle commented Jul 30, 2019

I've been looking for a long time, but I can't find any explanation for example08.
I've been thinking about this for a long time and don't quite understand what this example does. What does example08 do?

            builder
                .StartWith(context => ExecutionResult.Next())
                .UserTask("Do you approve", data => @"domain\bob")
                    .WithOption("yes", "I approve").Do(then => then
                        .StartWith(context => Console.WriteLine("You approved"))
                    )
                    .WithOption("no", "I do not approve").Do(then => then
                        .StartWith(context => Console.WriteLine("You did not approve"))
                    )
                    .WithEscalation(x => TimeSpan.FromSeconds(20), x => @"domain\frank", action => action
                        .StartWith(context => Console.WriteLine("Escalated task"))
                        .Then(context => Console.WriteLine("Sending notification..."))
                        )
                .Then(context => Console.WriteLine("end"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant