|
@@ -2378,22 +2378,22 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
/// </summary>
|
|
|
private bool HasStepsAllHandledIncludeCountersign(List<WorkflowStep> steps, WorkflowStep countersignStartStep)
|
|
|
{
|
|
|
- _logger.LogWarning($"StartCountersignId: {countersignStartStep.StartCountersignId}");
|
|
|
+ _logger.LogWarning($"wfId: {countersignStartStep.WorkflowId}, StartCountersignId: {countersignStartStep.StartCountersignId}");
|
|
|
var innerSteps = steps.Where(d => d.CountersignId == countersignStartStep.StartCountersignId).ToList();
|
|
|
- _logger.LogWarning($"innerSteps count: {innerSteps.Count}");
|
|
|
+ _logger.LogWarning($"wfId: {countersignStartStep.WorkflowId}, innerSteps count: {innerSteps.Count}");
|
|
|
|
|
|
foreach (var step in innerSteps)
|
|
|
{
|
|
|
if (step.Status != EWorkflowStepStatus.Handled)
|
|
|
{
|
|
|
- _logger.LogWarning($"step Id: {step.Id}, status: {step.Status}, step unhandle");
|
|
|
+ _logger.LogWarning($"wfId: {countersignStartStep.WorkflowId}, step Id: {step.Id}, status: {step.Status}, result false");
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
if (step.IsStartCountersign)
|
|
|
return HasStepsAllHandledIncludeCountersign(steps, step);
|
|
|
}
|
|
|
- _logger.LogWarning($"result true");
|
|
|
+ _logger.LogWarning($"wfId: {countersignStartStep.WorkflowId}, result true");
|
|
|
return true;
|
|
|
}
|
|
|
|