public async Task <ActionResult <bool> > ResumeAsync( [FromServices] IWorkflowInstanceStore wfStore, [FromServices] IWorkflowInvoker wfInvoker, string name, string correlationId, CancellationToken cancellationToken) { await wfInvoker.TriggerSignalAsync(name, correlationId : correlationId, cancellationToken : cancellationToken); // .ResumeAsync(wf, cancellationToken: cancellationToken); return(Ok(true)); }
public async Task UserRegistration(RegistrationModel request) { _logger.LogInformation("Triggering RegisterUser signal..."); // Sets the variables that will be passed to the workflow var input = new Variables(); input.SetVariable("RegistrationModel", request); // Triggers the workflow execution (same name as registered in the Dashboard) await _workflowInvoker.TriggerSignalAsync("RegisterUser", input); }
public async Task UserRegistration(RegistrationModel request) { _logger.LogInformation("Triggering RegisterUser signal..."); var input = new Variables(); input.SetVariable("RegistrationModel", request); await _workflowInvoker.TriggerSignalAsync("RegisterUser", input); }
public async Task <IActionResult> Intitiaize() { await _invoker.TriggerSignalAsync("INITIALIZE"); return(Ok()); }