elsa-workflows / elsa-samples

A collection of sample solutions referenced from Elsa blog posts
BSD 3-Clause "New" or "Revised" License
82 stars 75 forks source link

Suggestion and Request sample building on old technologies #4

Open sniperwolfpk5 opened 4 years ago

sniperwolfpk5 commented 4 years ago

Dear @sfmskywalker

I have studied your code on different level/projects. You have done brilliant work. But there is one issue with your code is you are following all modern trends. Your sample are on latest frameworks which is not bad at all and should be with latest framework to use modern technologies. A lot of companies/farms are not even switched to .Net Core. Majority are using old Asp.net MVC on .net framework.

Please when creating samples use older technologies. As Elas cannot be directly used in .net framework based applications. People have to use Elsa as a service in that case.

For Example: User registration workflow sample Here is using Blazor and you have injected Elas directly which is fine with Blazor/.net core but not with Asp.net MVC 5.0/.net framework. You have shown how to trigger a SignalActivity by using workflow invoker. but How to do this in Asp.net MVC 5.0. Code sample from User registration workflow

private async Task HandleFormSubmission()
{
    var input = new Variables();
    input.SetVariable("RegistrationModel", registrationModel);

    await WorkflowInvoker.TriggerSignalAsync("RegisterUser", input);
    ShowConfirmation = true;
}

Excuse my English

sniperwolfpk5 commented 4 years ago

@sfmskywalker Can you provide sample of RegisterUser workflow with Asp.net MVC 5.0