|
@@ -98,7 +98,7 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
/// </summary>
|
|
|
public async Task StartAsync(Workflow workflow, WorkflowStep startStep, BasicWorkflowDto dto,
|
|
|
StepDefine firstStepDefine, bool isNextDynamic, FlowAssignInfo flowAssignInfo,
|
|
|
- ECounterSignType counterSignType, DateTime? expiredTime, CancellationToken cancellationToken)
|
|
|
+ ECounterSignType? counterSignType, DateTime? expiredTime, CancellationToken cancellationToken)
|
|
|
{
|
|
|
//1. 创建first节点 (和trace)2.办理开始节点
|
|
|
|
|
@@ -1120,12 +1120,13 @@ namespace Hotline.FlowEngine.Workflows
|
|
|
/// <param name="businessType"></param>
|
|
|
/// <returns></returns>
|
|
|
/// <exception cref="ArgumentOutOfRangeException"></exception>
|
|
|
- public ECounterSignType GetCounterSignType(EBusinessType businessType) =>
|
|
|
+ public ECounterSignType? GetCounterSignType(EBusinessType businessType) =>
|
|
|
businessType switch
|
|
|
{
|
|
|
EBusinessType.Center => ECounterSignType.Center,
|
|
|
EBusinessType.Send => ECounterSignType.Center,
|
|
|
EBusinessType.Department => ECounterSignType.Department,
|
|
|
+ EBusinessType.File => null,
|
|
|
_ => throw new ArgumentOutOfRangeException(nameof(businessType), businessType, null)
|
|
|
};
|
|
|
|