decisionimpl.cs
来自「工作流的基本资料(文档资料」· CS 代码 · 共 48 行
CS
48 行
using System;
using NetBpm.Util.Xml;
using NetBpm.Workflow.Delegation.Impl;
namespace NetBpm.Workflow.Definition.Impl
{
public class DecisionImpl : NodeImpl, IDecision
{
[NonSerialized()] private DelegationImpl _decisionDelegation = null;
public DelegationImpl DecisionDelegation
{
get { return this._decisionDelegation; }
set { this._decisionDelegation = value; }
}
public DecisionImpl()
{
}
public DecisionImpl(IProcessDefinition processDefinition) : base(processDefinition)
{
}
public DelegationImpl CreateDecisionDelegation()
{
_decisionDelegation = new DelegationImpl(_processDefinition);
return _decisionDelegation;
}
public override void ReadProcessData(XmlElement xmlElement, CreationContext creationContext)
{
base.ReadProcessData(xmlElement, creationContext);
creationContext.DelegatingObject = this;
this._decisionDelegation = new DelegationImpl();
this._decisionDelegation.ReadProcessData(xmlElement, creationContext);
creationContext.DelegatingObject = null;
}
public override void Validate(ValidationContext validationContext)
{
base.Validate(validationContext);
validationContext.Check((_decisionDelegation != null), "no decision delegation specified");
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?