public override BpToolsLib.Stage GetStage() { foreach (XmlClasses.Input xmlInput in XmlStage.Inputs) { BpToolsLib.InputParameter parameter = new BpToolsLib.InputParameter( DataTypeConverter.GetDataTypeByName(xmlInput.Type) , xmlInput.Name , xmlInput.Narrative , xmlInput.Expr); BpStageProcess.InputParameters.Add(parameter); } foreach (XmlClasses.Output xmlOutput in XmlStage.Outputs) { BpToolsLib.OutputParameter parameter = new BpToolsLib.OutputParameter( DataTypeConverter.GetDataTypeByName(xmlOutput.Type) , xmlOutput.Name , xmlOutput.Narrative , xmlOutput.Stage); BpStageProcess.OutputParameters.Add(parameter); } BpStageProcess.Process = new BpToolsLib.Process() { Id = XmlStage.ProcessId }; if (XmlStage.OnSuccess != null) { BpStageProcess.NextStage = new BpToolsLib.StageReference(XmlStage.OnSuccess); } return(BpStage); }
public override BpToolsLib.Stage GetStage() { foreach (XmlClasses.Input xmlInput in XmlStage.Inputs) { BpToolsLib.InputParameter parameter = new BpToolsLib.InputParameter( DataTypeConverter.GetDataTypeByName(xmlInput.Type) , xmlInput.Name , xmlInput.Narrative , xmlInput.Expr); BpStageAction.InputParameters.Add(parameter); } foreach (XmlClasses.Output xmlOutput in XmlStage.Outputs) { BpToolsLib.OutputParameter parameter = new BpToolsLib.OutputParameter( DataTypeConverter.GetDataTypeByName(xmlOutput.Type) , xmlOutput.Name , xmlOutput.Narrative , xmlOutput.Stage); BpStageAction.OutputParameters.Add(parameter); } BpStageAction.ActionReference.Vbo = XmlStage.Resource.Object; BpStageAction.ActionReference.Page = XmlStage.Resource.Action; if (XmlStage.OnSuccess != null) { BpStageAction.NextStage = new BpToolsLib.StageReference(XmlStage.OnSuccess); } return(BpStage); }
public InputParameter(BpToolsLib.InputParameter inputParameter) { this.inputParameter = inputParameter; }