definition.js 651 Bytes
Newer Older
sunhongwei's avatar
sunhongwei committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
import request from '@/utils/request'

export function getProcessDefinitionPage(query) {
  return request({
    url: '/bpm/process-definition/page',
    method: 'get',
    params: query
  })
}

export function getProcessDefinitionList(query) {
  return request({
    url: '/bpm/process-definition/list',
    method: 'get',
    params: query
  })
}

export function getProcessDefinitionBpmnXML(id) {
  return request({
    url: '/bpm/process-definition/get-bpmn-xml?id=' + id,
    method: 'get'
  })
}
chenjiuping's avatar
chenjiuping committed
25 26 27 28 29 30 31

export function getProcessDefinitionBpmnXMLByKey(id) {
  return request({
    url: '/bpm/model/get-bpmn-xml-key?key=' + id,
    method: 'get'
  })
}