123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- import request from '@/utils/httpRequest'
- export default class ProcessService {
- list (params) {
- return request({
- url: '/flowable/process/list',
- method: 'get',
- params: params
- })
- }
- runningDataList (params) {
- return request({
- url: '/flowable/process/runningData',
- method: 'get',
- params: params
- })
- }
- historyListData (params) {
- return request({
- url: '/flowable/process/historyListData',
- method: 'get',
- params: params
- })
- }
- revokeProcIns (id) {
- return request({
- url: `/flowable/process/revokeProcIns`,
- method: 'put',
- params: {id: id}
- })
- }
- deleteProcIns (ids, reason) {
- return request({
- url: '/flowable/process/deleteProcIns',
- method: 'delete',
- params: {
- ids: ids,
- reason: reason}
- })
- }
- deleteAllProcIns (ids) {
- return request({
- url: '/flowable/process/history/deleteAllProcIns',
- method: 'delete',
- params: {procInsIds: ids}
- })
- }
- suspend (procDefId) {
- return request({
- url: '/flowable/process/update/suspend',
- method: 'put',
- params: {procDefId: procDefId}
- })
- }
- active (procDefId) {
- return request({
- url: '/flowable/process/update/active',
- method: 'put',
- params: {procDefId: procDefId}
- })
- }
- stop (id, message) {
- return request({
- url: '/flowable/process/stop',
- method: 'put',
- params: {id: id, message: message}
- })
- }
- getFlowChart (processDefId) {
- return request({
- url: '/flowable/process/getFlowChart',
- method: 'get',
- params: {processDefId: processDefId}
- })
- }
- queryProcessStatus (procDefId, procInsId) {
- return request({
- url: '/flowable/process/queryProcessStatus',
- method: 'get',
- params: {procDefId: procDefId, procInsId: procInsId}
- })
- }
- exist (key) {
- return request({
- url: '/flowable/process/exist',
- method: 'get',
- params: {key: key}
- })
- }
- getByName (name) {
- return request({
- url: `/flowable/process/getByName`,
- method: 'get',
- params: {name: name}
- })
- }
- getById (id) {
- return request({
- url: `/flowable/process/getById`,
- method: 'get',
- params: {id: id}
- })
- }
- }
|