|
@@ -1112,7 +1112,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
{
|
|
{
|
|
var countersign = await CreateCountersignAsync(
|
|
var countersign = await CreateCountersignAsync(
|
|
workflow.Id, startStep, dto.NextHandlers, flowAssignType,
|
|
workflow.Id, startStep, dto.NextHandlers, flowAssignType,
|
|
- counterSignType, startStep.StepExpiredTime.Value,
|
|
|
|
|
|
+ counterSignType, workflow.ExpiredTime,
|
|
startStep.CountersignId, cancellationToken);
|
|
startStep.CountersignId, cancellationToken);
|
|
startStep.StartCountersign(countersign.Id);
|
|
startStep.StartCountersign(countersign.Id);
|
|
}
|
|
}
|
|
@@ -1202,7 +1202,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
|
|
|
private async Task<WorkflowCountersign> CreateCountersignAsync(
|
|
private async Task<WorkflowCountersign> CreateCountersignAsync(
|
|
string workflowId, WorkflowStep startStep, List<Kv> handlers, EFlowAssignType? flowAssignType,
|
|
string workflowId, WorkflowStep startStep, List<Kv> handlers, EFlowAssignType? flowAssignType,
|
|
- ECounterSignType? counterSignType, DateTime stepExpiredTime, string? parentId = null,
|
|
|
|
|
|
+ ECounterSignType? counterSignType, DateTime expiredTime, string? parentId = null,
|
|
CancellationToken cancellationToken = default)
|
|
CancellationToken cancellationToken = default)
|
|
{
|
|
{
|
|
var countersign = new WorkflowCountersign
|
|
var countersign = new WorkflowCountersign
|
|
@@ -1223,6 +1223,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
Members = _mapper.Map<List<CountersignMember>>(handlers),
|
|
Members = _mapper.Map<List<CountersignMember>>(handlers),
|
|
FlowAssignType = flowAssignType,
|
|
FlowAssignType = flowAssignType,
|
|
CounterSignType = counterSignType,
|
|
CounterSignType = counterSignType,
|
|
|
|
+ ExpiredTime = expiredTime,
|
|
};
|
|
};
|
|
await _workflowCountersignRepository.AddAsync(countersign, cancellationToken);
|
|
await _workflowCountersignRepository.AddAsync(countersign, cancellationToken);
|
|
return countersign;
|
|
return countersign;
|