Esempio n. 1
0
 protected StructDef GetTaskInternalDataSchema()
 {
     StructDef sd = new StructDef();
     sd.ParentTypeSet = ProcessTask.ParentProcess.DataTypes;
     foreach (VariableDef vd in ProcessTask.TaskVariables)
     {
         if (vd.VariableDir == VariableDef.Dir.In || vd.VariableDir == VariableDef.Dir.InOut)
         {
             sd.Members.Add(vd);
         }
         else
         {
             VariableDef vd2 = new VariableDef(vd); vd2.IsRequired = false;
             sd.Members.Add(vd2);
         }
     }
     return sd;
 }
Esempio n. 2
0
 public StructDef GetTaskInternalDataSchema()
 {
     if (ParentProcess == null) throw new Exception();
     StructDef sd = new StructDef();
     sd.ParentTypeSet = ParentProcess.DataTypes;
     foreach (VariableDef vd in TaskVariables)
     {
         if (vd.VariableDir == VariableDef.Dir.In || vd.VariableDir == VariableDef.Dir.InOut)
         {
             sd.Members.Add(vd);
         }
         else
         {
             VariableDef vd2 = new VariableDef(vd); vd2.IsRequired = false;
             sd.Members.Add(vd2);
         }
     }
     return sd;
 }
Esempio n. 3
0
 public VariableDef(VariableDef rhs)
     : base(rhs)
 {
     _dir = rhs.VariableDir; _defaultValueExpr = rhs.DefaultValueExpr;
 }
Esempio n. 4
0
 /// <summary>
 /// Add new variable definition
 /// </summary>
 /// <param name="vd"></param>
 public void AddTaskVariable(VariableDef vd)
 {
     if (GetVariable(vd.Name) != null) throw new ApplicationException("Variable already defined: " + vd.Name);
     _taskVariables.Add(vd);
 }