Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface BPMDefinitionClient

Hierarchy

  • BPMDefinitionClient

Index

Methods

activate

  • activate(defID: string): void
  • 激活指定的流程定义

    example
    import * as bpmmeta from 'bpmmeta';
    let client = bpmmeta.newBPMDefinitionClient()
    let res = client.activate(defId)
    

    Parameters

    • defID: string

      bpm definition id

    Returns void

create

  • 创建一个bpm流程定义

    example
    import * as bpmmeta from 'bpmmeta';
    let client = bpmmeta.newBPMDefinitionClient();
    client.create({
        "name":"bpmNameTest",
         "startEvents": [
         {
         "connector": "userTask",
         "connectorPoint": "{\"fromPort\":\"R1\",\"toPort\":\"L1\",\"joints\":[\"174 80\",\"238 80\",\"238 75\"]}",
         "label": "Start",
         "locationX": 125,
         "locationY": 80,
         "name": "start",
         "type": "Start",
         "startType": "",
         "renderType": "",
         "render": "",
         "document": "",
         "description": ""
         }
     ],
     ...
    });
    

    Parameters

    Returns BPMMetaDataCompileInfo

    include bpm definition compile info and record id

createNewVersion

  • 创建一个新的bpm流程定义版本

    example
    import * as bpmmeta from 'bpmmeta';
    let client = bpmmeta.newBPMDefinitionClient();
    client.createNewVersion({
        "name":"bpmNameTest",
         "startEvents": [
         {
         "connector": "userTask",
         "connectorPoint": "{\"fromPort\":\"R1\",\"toPort\":\"L1\",\"joints\":[\"174 80\",\"238 80\",\"238 75\"]}",
         "label": "Start",
         "locationX": 125,
         "locationY": 80,
         "name": "start",
         "type": "Start",
         "startType": "",
         "renderType": "",
         "render": "",
         "document": "",
         "description": ""
         }
     ],
     ...
    });
    

    Parameters

    Returns BPMMetaDataCompileInfo

    include bpm definition compile info and record id

deactivate

  • deactivate(defID: string): void
  • 禁用指定的流程定义

    example
    import * as bpmmeta from 'bpmmeta';
    let client = bpmmeta.newBPMDefinitionClient()
    let res = client.deactivate(defId)
    

    Parameters

    • defID: string

      bpm definition id

    Returns void

delete

  • delete(defID: string): number
  • 删除指定的流程定义

    example
    import * as bpmmeta from 'bpmmeta';
    let client = bpmmeta.newBPMDefinitionClient()
    let res = client.delete(defId)
    

    Parameters

    • defID: string

      bpm definition id

    Returns number

queryByCondition

queryByID

  • 根据id查询bpm定义

    example
    import * as bpmmeta from 'bpmmeta';
    let client = bpmmeta.newBPMDefinitionClient()
    let res = client.queryByID(defId)
    

    Parameters

    • defID: string

      bpm definition id

    Returns BPMMetadataDefinitionDetail

queryList

  • 查询bpm流程定义列表

    example
    import * as bpmmeta from 'bpmmeta';
    let client = bpmmeta.newBPMDefinitionClient();
    client.queryList({
        "like":true,
        "name":"BpmName",
        "limit":10,
        "skip":0,
        "active":true
    })
    

    Returns BPMMetadataDefinition[]

update

  • 更新指定的流程定义

    example
    import * as bpmmeta from 'bpmmeta';
    let client = bpmmeta.newBPMDefinitionClient()
    let res = client.update(defId,{
        "name":"bpmNameTest",
         "startEvents": [
         {
         "connector": "userTask",
         "connectorPoint": "{\"fromPort\":\"R1\",\"toPort\":\"L1\",\"joints\":[\"174 80\",\"238 80\",\"238 75\"]}",
         "label": "Start",
         "locationX": 125,
         "locationY": 80,
         "name": "start",
         "type": "Start",
         "startType": "",
         "renderType": "",
         "render": "",
         "document": "",
         "description": ""
         }
     ],
     ...
    })
    

    Parameters

    Returns BPMMetaDataCompileInfo