|
@@ -147,22 +147,25 @@ public class WorkflowApplication : IWorkflowApplication, IScopeDependency
|
|
|
current.RequiredUserId, current.RequiredOrgId,
|
|
|
externalId, cancellationToken);
|
|
|
|
|
|
- //var startStepHandles = new List<WorkflowStepHandler>{WorkflowStepHandler.Create(workflow.Id, workflow.ExternalId,
|
|
|
- // EFlowAssignType.User, current.RequiredUserId, current.UserName,
|
|
|
- // current.RequiredOrgId, current.OrgName)};
|
|
|
-
|
|
|
- var startStep = _workflowDomainService.CreateStartStep(workflow, startStepDefine, dto,
|
|
|
- new FlowStepHandler
|
|
|
- {
|
|
|
- Key = current.RequiredUserId,
|
|
|
- Value = current.UserName,
|
|
|
- UserId = current.UserId,
|
|
|
- Username = current.UserName,
|
|
|
- OrgId = current.RequiredOrgId,
|
|
|
- OrgName = current.OrgName
|
|
|
- }, expiredTime);
|
|
|
-
|
|
|
- var flowAssignInfo =
|
|
|
+ //var startStepHandles = new List<WorkflowStepHandler>{WorkflowStepHandler.Create(workflow.Id, workflow.ExternalId,
|
|
|
+ // EFlowAssignType.User, current.RequiredUserId, current.UserName,
|
|
|
+ // current.RequiredOrgId, current.OrgName)};
|
|
|
+
|
|
|
+ var defineHandler = startStepDefine.HandlerTypeItems.First();
|
|
|
+ var startStep = _workflowDomainService.CreateStartStep(workflow, startStepDefine, dto,
|
|
|
+ new FlowStepHandler
|
|
|
+ {
|
|
|
+ Key = current.RequiredUserId,
|
|
|
+ Value = current.UserName,
|
|
|
+ UserId = current.UserId,
|
|
|
+ Username = current.UserName,
|
|
|
+ OrgId = current.RequiredOrgId,
|
|
|
+ OrgName = current.OrgName,
|
|
|
+ RoleId = defineHandler.Key,
|
|
|
+ RoleName = defineHandler.Value,
|
|
|
+ }, expiredTime);
|
|
|
+
|
|
|
+ var flowAssignInfo =
|
|
|
await GetNextStepFlowAssignInfoAsync(workflow, startStep, dto, firstStepDefine, isNextDynamic, cancellationToken);
|
|
|
|
|
|
//var firstStepHandlers = await GetNextStepHandlersAsync(workflow, firstStepDefine, dto, cancellationToken);
|