?? vsacondition.cs
字號(hào):
using System;
using System.Collections;
using DotNetTools.PropertySet;
namespace DotNetTools.Workflow.Util.Vsa
{
/// <summary>
///
/// </summary>
/// <author>jjx</author>
public class VsaCondition : VsaBase,ICondition
{
public bool PassesCondition(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"]);
objects.Add("jn",transientVars["jn"]);
}
Prepared(args,objects);
try
{
Object o=control.Invoke("module1.execute",new object[]{});
if (log.IsDebugEnabled)
log.Debug(o);
if (o==null)
return false;
return bool.Parse(o.ToString());
}
catch (Exception e)
{
String message = "VSA script/condition could not run";
throw new WorkflowException(message, e);
}
finally
{
control.Close();
}
}
public VsaCondition()
{
}
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -