📄 vsavalidator.cs
字号:
using System;
using System.Collections;
using DotNetTools.PropertySet;
namespace DotNetTools.Workflow.Util.Vsa
{
/// <summary>
///
/// </summary>
/// <author>jjx</author>
public class VsaValidator : VsaBase,IValidator
{
public void Validate(IDictionary transientVars, IDictionary args, IPropertySet ps)
{
IDictionary objects=new Hashtable();
objects.Add("transientVars",transientVars);
objects.Add("args",args);
objects.Add("propertyset",ps);
if (transientVars!=null)
{
objects.Add("entry",transientVars["entry"]);
objects.Add("context",transientVars["context"]);
}
Prepared(args,objects);
Object o;
try
{
o=control.Invoke("module1.execute",new object[]{});
}
catch (Exception e)
{
String message = "VSA script/validator could not run";
throw new WorkflowException(message, e);
}
finally
{
control.Close();
}
if (o!=null)
throw new InvalidInputException(o.ToString());
}
public VsaValidator()
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -