Options
All
  • Public
  • Public/Protected
  • All
Menu

流程组件类

Hierarchy

Index

Constructors

constructor

Properties

Protected Readonly JSON_EXCLUDED_KEYS

JSON_EXCLUDED_KEYS: Set<string>

toJSON 时需要去除的键,为了避免出现 CircularJSON

Readonly _cacheTimestamp

_cacheTimestamp: string = ...

前端记录缓存的时间戳

Protected _mutable

_mutable: boolean = true

可修改标志,内部属性 标记在构造函数结束后是否可修改

Readonly _uuid

_uuid: string = ...

唯一 uuid 目前主要用于前端 Debug 区分两个实例

Readonly completeTaskInterface

completeTaskInterface: ProcessInterface = ...

完成任务接口

Readonly createdBy

createdBy: string = ...

创建人

Readonly createdTime

createdTime: string = ...

创建时间

Readonly description

description: string = ...

流程组件描述

Readonly destination

destination: ProcessComponentAttribute = ...

流程组件属性

editable

editable: boolean = true

是否可编辑

editing

editing: boolean = false

是否正在编辑 前端 UI 状态

Readonly existingNames

existingNames: string[] = ...

已存在名称集合

expanded

expanded: boolean = false

节点是否为展开状态 前端 UI 状态

Readonly hidden

hidden: boolean = false

树组件的隐藏属性

Readonly id

id: string = ...

流程组件 Id

Readonly ideVersion

ideVersion: string = ...

IDE 版本

isLeaf

isLeaf: boolean = false

是否为叶子节点 前端 UI 状态

Readonly level

level: LEVEL_ENUM = ...

概念类型

loading

loading: boolean = false

是否正在请求 前端 UI 状态

Readonly logic

logic: Logic = ...

流程组件逻辑

Readonly logicId

logicId: string = ...

流程组件逻辑 ID

Readonly moreChildrenFields

moreChildrenFields: string[] = ...

树组件的子节点字段

Readonly name

name: string = ...

流程组件名称

Readonly parentId

parentId: string = ...

所属流程 Id

Readonly process

process: Process = ...

所属流程

Readonly returns

returns: any[] = ...

流程组件输出参数

Readonly title

title: string = ...

流程组件标题

Readonly type

type: string = ...

流程组件类型

Readonly updatedBy

updatedBy: string = ...

修改人

Readonly updatedTime

updatedTime: string = ...

修改时间

Readonly variables

variables: any[] = ...

流程组件局部变量

Methods

assign

  • assign(source: any): void
  • Parameters

    • source: any

    Returns void

create

  • 添加流程组件

    Returns ProcessComponent

deepPick

  • deepPick(source: any, keys?: string[]): void
  • 从对象中深度获取

    example

    比如一般后端返回只是添加了个 id

    this.deepPick(result, ['id'])
    

    Parameters

    • source: any
    • keys: string[] = ...

    Returns void

delete

  • delete(): void
  • 删除流程组件

    Returns void

emit

  • emit(eventName: string, ...args: any[]): void
  • 触发事件

    Parameters

    • eventName: string

      事件名

    • Rest ...args: any[]

      事件参数

    Returns void

emitVertexIdToNameChange

  • emitVertexIdToNameChange(): void

findUsage

  • findUsage(): Promise<any>
  • 查找引用

    Returns Promise<any>

off

  • 取消监听事件

    Parameters

    Returns void

on

  • 监听事件

    Parameters

    Returns void

once

  • 只监听一次事件

    Parameters

    Returns void

pick

  • pick(source: any, keys?: string[]): void
  • Parameters

    • source: any
    • keys: string[] = ...

    Returns void

plainAssign

  • plainAssign(source: any): void
  • Parameters

    • source: any

    Returns void

setAssignee

  • setAssignee(assignee: string[]): Promise<void>
  • 设置流程组件任务完成人 (UserTask)

    Parameters

    • assignee: string[]

      任务完成人

    Returns Promise<void>

setDescription

  • setDescription(description: string): Promise<void>
  • 设置流程组件描述

    Parameters

    • description: string

      描述

    Returns Promise<void>

setFlowValue

  • setFlowValue(flowValue: string): Promise<void>
  • 设置流程组件值 (SequenceFlow)

    Parameters

    • flowValue: string

    Returns Promise<void>

setName

  • setName(name: string): Promise<void>
  • 设置流程组件名称

    Parameters

    • name: string

      名称

    Returns Promise<void>

setTitle

  • setTitle(title: string): Promise<void>
  • 设置流程组件标题

    Parameters

    • title: string

      标题

    Returns Promise<void>

toJSON

  • toJSON(parentKey?: string, excludedKeys?: string[]): any
  • 去除循环依赖,转为纯 JSON

    Parameters

    • Optional parentKey: string

      外面的 key

    • excludedKeys: string[] = ...

      需要额外排除的 keys

    Returns any

toPlainJSON

  • toPlainJSON(parentKey?: string, excludedKeys?: string[]): any
  • 转为单层的 JSON

    Parameters

    • Optional parentKey: string

      外面的 key

    • excludedKeys: string[] = ...

      需要额外排除的 keys

    Returns any

updateAttr

  • 修改流程组件属性

    Returns Promise<ProcessComponent>

Static from

  • 从后端 JSON 生成规范的 Param 对象

    Parameters

    Returns ProcessComponent

Static getVertexByRef

  • getVertexByRef(ref: string): Vertex
  • 通过 Ref 去查找点

    Parameters

    • ref: string

    Returns Vertex

Generated using TypeDoc