using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Serein.Library.Api { /// /// 脚本代码中关于流程运行的API /// public interface IScriptFlowApi { /// /// 当前流程 /// IFlowEnvironment Env { get; } /// /// 对应的节点 /// NodeModelBase NodeModel { get; } /// /// 动态流程上下文 /// IDynamicContext Context { get; set; } /// /// 根据索引从入参数据获取数据 /// /// /// object GetDataOfParams(int index); /// /// 根据入参名称从入参数据获取数据 /// /// /// object GetDataOfParams(string name); /// /// 获取全局数据 /// /// /// object GetGlobalData(string keyName); /// /// 获取流程当前传递的数据 /// /// object GetFlowData(); /// /// 立即调用某个节点并获取其返回值 /// /// /// Task CallNode(string nodeGuid); } }