?? verifycurrentsteps.cs
字號:
using System;
using System.Collections;
using DotNetTools.PropertySet;
using DotNetTools.Workflow.Spi;
/*
* Copyright (c) 2002-2003 by OpenSymphony
* All rights reserved.
*/
namespace DotNetTools.Workflow.Util
{
/// <author> hani Date: Feb 17, 2005 Time: 3:56:57 PM
///
/// </author>
public class VerifyCurrentSteps : IFunctionProvider
{
//~ Methods ////////////////////////////////////////////////////////////////
public virtual void Execute(IDictionary transientVars, IDictionary args, IPropertySet ps)
{
IList currentSteps = (IList) transientVars["currentSteps"];
if (currentSteps.Count != 1)
{
throw new WorkflowException("Expected 1 step to be in currentSteps, instead found " + currentSteps.Count);
}
int expectedId = Int32.Parse((String) args["step.id"]);
IStep step = (IStep) currentSteps[0];
if (step.StepId != expectedId)
{
throw new WorkflowException("Expected step id " + expectedId + " in prefunction, instead found id " + step.StepId);
}
}
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -