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

📄 joinimpl.cs

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

namespace NetBpm.Workflow.Definition.Impl
{
	public class JoinImpl : NodeImpl, IJoin
	{
		[NonSerialized()] private DelegationImpl _joinDelegation = null;

		/// <summary> overrides the standard scope, transitions of a join will arrive in the parent-processblock of the concurrent block.</summary>
		protected internal override CreationContext TransitionDestinationScope
		{
			set { value.TransitionDestinationScope = value.ProcessBlock.ParentBlock; }

		}

		public DelegationImpl JoinDelegation
		{
			get { return _joinDelegation; }
			set { this._joinDelegation = value; }
		}

		public JoinImpl()
		{
		}

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

		public DelegationImpl CreateJoinDelegation()
		{
			_joinDelegation = new DelegationImpl(_processDefinition);
			return _joinDelegation;
		}

		public override void ReadProcessData(XmlElement xmlElement, CreationContext creationContext)
		{
			base.ReadProcessData(xmlElement, creationContext);

			if ((Object) xmlElement.GetAttribute("handler") != null)
			{
				creationContext.DelegatingObject = this;
				this._joinDelegation = new DelegationImpl();
				this._joinDelegation.ReadProcessData(xmlElement, creationContext);
				creationContext.DelegatingObject = null;
			}
		}

		public override void Validate(ValidationContext validationContext)
		{
			base.Validate(validationContext);

			// check this join has exactly one leaving transition
			validationContext.Check((_leavingTransitions.Count == 1), "the join has " + _leavingTransitions.Count + " leaving transition instead of exactly one");
		}
	}
}

⌨️ 快捷键说明

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