⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 transitionimpl.cs

📁 工作流的基本资料(文档资料
💻 CS
字号:
using NetBpm.Util.Xml;

namespace NetBpm.Workflow.Definition.Impl
{
	public class TransitionImpl : DefinitionObjectImpl, ITransition
	{
		private INode _from = null;
		private INode _to = null;

		public TransitionImpl()
		{
		}

		public TransitionImpl(IProcessDefinition processDefinition) : base(processDefinition)
		{
		}

		public override void ReadProcessData(XmlElement xmlElement, CreationContext creationContext)
		{
			DefinitionObjectImpl parent = creationContext.DefinitionObject;
			creationContext.DefinitionObject = this;
			base.ReadProcessData(xmlElement, creationContext);
			creationContext.DefinitionObject = parent;
			this._from = creationContext.Node;

			creationContext.AddUnresolvedReference(this, xmlElement.GetProperty("to"), creationContext.TransitionDestinationScope, "to", typeof (INode));
		}

		public INode From
		{
			set { _from = value; }
			get { return _from; }
		}

		public INode To
		{
			set { _to = value; }
			get { return _to; }
		}
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -