Update WorkflowExecuteRunnable.java (#16092)

Corrected the following issues
https://github.com/apache/dolphinscheduler/issues/15366
https://github.com/apache/dolphinscheduler/issues/16010
This commit is contained in:
changxiangshimian/changxiangshimian.github.io 2024-05-31 09:22:26 +08:00 committed by GitHub
parent d8e0178599
commit d675c28812
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -639,6 +639,7 @@ public class WorkflowExecuteRunnable implements IWorkflowExecuteRunnable {
command.setProcessInstanceId(0);
command.setProcessDefinitionVersion(workflowInstance.getProcessDefinitionVersion());
command.setTestFlag(workflowInstance.getTestFlag());
command.setTenantCode(workflowInstance.getTenantCode());
int create = commandService.createCommand(command);
processService.saveCommandTrigger(command.getId(), workflowInstance.getId());
return create;