[]
如果插件中引用了流程的名称,一旦流程重命名后,插件中的相关属性的值就期望被同步;
这种情况下就需要实现这个接口,而且,当查找页面中的流程引用时,插件中的相关属性也会被查找出来。
public interface IReferenceProcess
public void RenameProcessName(string oldName, string newName)
{
if(string.Equals(this.ListViewName, oldName))
{
this.ProcessName = newName;
}
}
}
返回插件中所有引用流程的信息。
IEnumerable<LocatedObject<string>> GetProcessNameLocations(LocationIndicator location)
| 类型 | 名称 | 描述 |
|---|---|---|
| LocationIndicator | location | 坐标定位器。 |
| 类型 | 描述 |
|---|---|
| System.Collections.Generic.IEnumerable<T><LocatedObject<string>> | 返回插件中所有引用流程的信息。 |
获取当前引用流程的名称
IEnumerable<string> GetProcessNames()
| 类型 | 描述 |
|---|---|
| System.Collections.Generic.IEnumerable<T><string> |
一旦流程名被重命名时会调用该函数,所以需实现该接口重命名插件中使用到的相关流程名。
void RenameProcessName(string oldName, string newName)
| 类型 | 名称 | 描述 |
|---|---|---|
| string | oldName | 重命名之前的流程名。 |
| string | newName | 重命名之后的流程名。 |