Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        public async Task UserRegistration(RegistrationModel request)
        {
            _logger.LogInformation("Triggering RegisterUser signal...");


            var input = new Variables();

            input.SetVariable("RegistrationModel", request);


            await _workflowInvoker.TriggerSignalAsync("RegisterUser", input);
        }
Ejemplo n.º 4
0
        public async Task <IActionResult> Intitiaize()
        {
            await _invoker.TriggerSignalAsync("INITIALIZE");

            return(Ok());
        }