added test utl path with no changes per execute (#2555)

This commit is contained in:
andrewkorol 2021-12-03 17:56:47 +03:00 committed by GitHub
parent 0169af3fe0
commit cc7acb1790
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View file

@ -62,7 +62,7 @@ export class ElsaWorkflowTestPanel {
this.workflowStarted = false;
}
if (!this.message && message.activityId == this.workflowTestActivityId){
if (!this.message){
this.message = message;
}
});

View file

@ -37,7 +37,8 @@ namespace Elsa.WorkflowTesting.Api.Endpoints
public async Task<IActionResult> Handle([FromBody] WorkflowTestExecuteRequest request, CancellationToken cancellationToken = default)
{
var tenantId = await _tenantAccessor.GetTenantIdAsync(cancellationToken);
var startableWorkflow = await _workflowLaunchpad.FindStartableWorkflowAsync(request.WorkflowDefinitionId!, request.Version, default, default, default, tenantId, cancellationToken);
var testCorrelation = "test-" + request.WorkflowDefinitionId;
var startableWorkflow = await _workflowLaunchpad.FindStartableWorkflowAsync(request.WorkflowDefinitionId!, request.Version, default, testCorrelation, default, tenantId, cancellationToken);
if (startableWorkflow == null)
return NotFound();