public WorkFlowDefinitionList GetWorkFlowDefinitions() { TrackingWorkFlowInteraction interaction = new TrackingWorkFlowInteraction(); WorkFlowDefinitionList l = interaction.getWorkFlowDefinitions(); return(l); }
public WorkFlowDefinitionList getWorkFlowDefinitions() { WorkFlowDefinitionList l = new WorkFlowDefinitionList(); Assembly trackingWorkFlowAssembly = Assembly.Load("TrackingWorkFlow"); Type[] types = trackingWorkFlowAssembly.GetTypes(); Type target = trackingWorkFlowAssembly.GetType("TrackingWorkFlow.TrackingWorkFlow"); foreach (Type t in types) { if (t.IsSubclassOf(target)) { WorkFlowDefinition WFD = new WorkFlowDefinition(); WFD.WFName = t.Name; l.Add(WFD); } } return(l); }
public WorkFlowDefinitionList getWorkFlowDefinitions() { WorkFlowDefinitionList l = new WorkFlowDefinitionList(); Assembly trackingWorkFlowAssembly = Assembly.Load("TrackingWorkFlow"); Type[] types = trackingWorkFlowAssembly.GetTypes(); Type target = trackingWorkFlowAssembly.GetType("TrackingWorkFlow.TrackingWorkFlow"); foreach (Type t in types) { if (t.IsSubclassOf(target)) { WorkFlowDefinition WFD = new WorkFlowDefinition(); WFD.WFName = t.Name; l.Add(WFD); } } return l; }