ProcessElementV2 流程元素
1. 结构声明
- TS Declaration
- JSON Schema
class ProcessElementV2 extends BaseNode {
name: string = '';
title: string;
description: string;
type: 'StartNoneEvent' | 'EndNoneEvent' | 'SubmitTask' | 'ApprovalTask' | 'ExclusiveGateway' | 'ParallelGateway' | 'SequenceFlow' | 'ConditionalFlow' | 'InitiateTask' | 'ServiceTask';
sourceRef: string;
targetRef: string;
bounds: Rect;
waypoints: Array<Point>;
bindAttrs: Array<BindAttribute>;
fieldPermissions: Array<FieldPermissionV2>;
operatePermissions: Array<OperatePermissionV2>;
flowCondition: FlowConditionV2;
flowPriority: number;
taskTitle: string;
logic: Logic;
bindEvents: Array<BindEvent>;
approvalPolicy: ApprovalPolicyV2;
}
{
"type": "object",
"properties": {
"composedBy": {
"type": "array",
"items": {
"type": "string"
}
},
"name": {
"type": "string"
},
"title": {
"type": "string"
},
"description": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"StartNoneEvent",
"EndNoneEvent",
"SubmitTask",
"ApprovalTask",
"ExclusiveGateway",
"ParallelGateway",
"SequenceFlow",
"ConditionalFlow",
"InitiateTask",
"ServiceTask"
]
},
"sourceRef": {
"type": "string"
},
"targetRef": {
"type": "string"
},
"bounds": {
"$ref": "#/definitions/Rect"
},
"waypoints": {
"type": "array",
"items": {
"$ref": "#/definitions/Point"
}
},
"bindAttrs": {
"type": "array",
"items": {
"$ref": "#/definitions/BindAttribute"
}
},
"fieldPermissions": {
"type": "array",
"items": {
"$ref": "#/definitions/FieldPermissionV2"
}
},
"operatePermissions": {
"type": "array",
"items": {
"$ref": "#/definitions/OperatePermissionV2"
}
},
"flowCondition": {
"$ref": "#/definitions/FlowConditionV2"
},
"flowPriority": {
"type": "number"
},
"taskTitle": {
"type": "string"
},
"logic": {
"$ref": "#/definitions/Logic"
},
"bindEvents": {
"type": "array",
"items": {
"$ref": "#/definitions/BindEvent"
}
},
"approvalPolicy": {
"$ref": "#/definitions/ApprovalPolicyV2"
}
},
"required": [
"name",
"title",
"description",
"type",
"sourceRef",
"targetRef",
"bounds",
"waypoints",
"bindAttrs",
"fieldPermissions",
"operatePermissions",
"flowCondition",
"flowPriority",
"taskTitle",
"logic",
"bindEvents",
"approvalPolicy"
],
"additionalProperties": false
}