AddPreparedStepInstance

This method simply stores the given instance withing AppDefinition.PreparedInstances. To do this, an internal datatype „StepInstance“ is used:

namespace AB3.DataTypes
{
	/// <summary>DataType to store an instance of a step
	/// </summary>
	public class StepInstance
	{						
		/// <summary>Returns the full name of the instance: 
		/// 'MainFlow.SubFlowA.Component1'
		/// </summary>
		/// <returns></returns>
		public string FullName
		{ get { return string.Concat(FDLNamespace, ".", FDLCustomName); } }
 
		/// <summary>Namespace of the instance (MainFlow.A.B)
		/// </summary>
		public string FDLNamespace { getprivate set; }
 
		/// <summary>Custom name of the instance
		/// </summary>
		public string FDLCustomName { getset; }
 
		/// <summary>Instance of the object (or null if static)
		/// </summary>
		public object StepObject { getset; }
 
		/// <summary>Type of the instance
		/// </summary>
		public Type StepType { getset; }
 
		/// <summary>Creates a new instance item
		/// </summary>	
		/// <param name="fdlNamespace">Namespace of the instance 
 		///  (MainFlow.SubFlow1.SubSubFlow1)</param>
		/// <param name="fdlCustomName">Custom name of the instance</param>
		public StepInstance(string fdlNamespace, string fdlCustomName)
		{
			FDLNamespace = fdlNamespace;
			FDLCustomName = fdlCustomName;
		}		
	}
}

The enumeration „StepType“ can be „Step“ or „Flow“ as defined in the flow definition.

Last edited Apr 20, 2013 at 10:30 AM by InneHo, version 1

Comments

No comments yet.