@lcap/asl
Version:
NetEase Application Specific Language
64 lines (63 loc) • 1.54 kB
TypeScript
import { LEVEL_ENUM, ProcessComponent, Vertex, ActionOptions } from '..';
/**
* 流程节点属性
*/
export declare class ProcessComponentAttribute extends Vertex {
/**
* 概念类型
*/
readonly level: LEVEL_ENUM;
/**
* 流程节点属性类型
*/
readonly type: 'Destination';
/**
* 名称
*/
readonly name: string;
/**
* 关联页面属性
*/
readonly pageRef: string;
/**
* 关联页面路由
*/
readonly url: string;
/**
* 流程组件 Id
*/
readonly processComponentId: string;
/**
* 流程组件 Id
*/
readonly destinationParams: Array<any>;
/**
* 流程节点
*/
readonly processComponent: ProcessComponent;
/**
* @param source 需要合并的部分参数
*/
constructor(source?: Partial<ProcessComponentAttribute>);
/**
* 创建流程节点属性类型
*/
create(): Promise<this>;
/**
* 删除流程节点属性类型
*/
delete(): Promise<void>;
/**
* 更新流程节点属性类型
*/
update(none?: void, actionOptions?: ActionOptions): Promise<void>;
/**
* 流程节点属性类型检查
*/
static checkType(id: string, processComponent: ProcessComponent): Promise<void>;
/**
* 从后端 JSON 生成规范的 ProcessComponentAttribute 对象
*/
static from(source: any, processComponent: ProcessComponent): ProcessComponentAttribute;
}
export default ProcessComponentAttribute;