< Summary

Information
Class: Elsa.Workflows.Runtime.TriggerInvoker
Assembly: Elsa.Workflows.Runtime
File(s): /home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Services/TriggerInvoker.cs
Line coverage
100%
Covered lines: 13
Uncovered lines: 0
Coverable lines: 13
Total lines: 20
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
InvokeAsync()100%11100%

File(s)

/home/runner/work/elsa-core/elsa-core/src/modules/Elsa.Workflows.Runtime/Services/TriggerInvoker.cs

#LineLine coverage
 1namespace Elsa.Workflows.Runtime;
 2
 573public class TriggerInvoker(IWorkflowStarter workflowStarter) : ITriggerInvoker
 4{
 5    public async Task<StartWorkflowResponse> InvokeAsync(InvokeTriggerRequest request, CancellationToken cancellationTok
 6    {
 57        var startRequest = new StartWorkflowRequest
 58        {
 59            Workflow = request.Workflow,
 510            CorrelationId = request.CorrelationId,
 511            Input = request.Input,
 512            Variables = request.Variables,
 513            Properties = request.Properties,
 514            ParentId = request.ParentWorkflowInstanceId,
 515            TriggerActivityId = request.ActivityId,
 516        };
 17
 518        return await workflowStarter.StartWorkflowAsync(startRequest, cancellationToken);
 519    }
 20}