/// <summary> /// 创建下一步活动的节点 /// </summary> /// <param name="activity"></param> /// <returns></returns> internal static NextActivityComponent CreateNextActivityComponent(TransitionEntity transition, ActivityEntity activity) { NextActivityComponent component = null; if (XPDLHelper.IsSimpleComponentNode(activity.ActivityType) == true) //可流转简单类型节点 { string name = "单一节点"; component = new NextActivityItem(name, transition, activity); } else if (activity.ActivityType == ActivityTypeEnum.SubProcessNode) { string name = "子流程节点"; component = new NextActivityItem(name, transition, activity); } else { string name = string.Empty; if (activity.GatewayDirectionType == NETBPMFlow.Engine.Common.GatewayDirectionEnum.AndSplit) { name = "必全选节点"; } else if (activity.GatewayDirectionType == GatewayDirectionEnum.AndSplitMI) { name = "并行多实例节点"; } else { name = "或多选节点"; } component = new NextActivityGateway(name, transition, activity); } return(component); }
/// <summary> /// 创建根显示节点 /// </summary> /// <returns></returns> internal static NextActivityComponent CreateNextActivityComponent() { NextActivityComponent root = new NextActivityGateway("下一步步骤列表", null, null); return(root); }