|
|
@ -6,7 +6,6 @@ const request = require('request'); |
|
|
|
let isDev = true |
|
|
|
|
|
|
|
module.exports = function (app, opts,ctx) { |
|
|
|
|
|
|
|
const workOrder = app.fs.scheduleInit( |
|
|
|
{ |
|
|
|
interval: '0 * * * *',//一小时执行一次
|
|
|
@ -68,7 +67,7 @@ module.exports = function (app, opts,ctx) { |
|
|
|
console.log('formRes1',procinstIds) |
|
|
|
// 获取流程实例变量
|
|
|
|
if(formRes && formRes.length > 0){ |
|
|
|
let procinstsVariables = await request.post(encodeURI(opts.camWorkflow.host+'/'+opts.camWorkflow.root+`/engine-rest/history/variable-instance`)) |
|
|
|
let procinstsVariables = await request.post(encodeURI(opts.camundarest.host+'/'+opts.camundarest.root+`/engine-rest/history/variable-instance`)) |
|
|
|
.auth(username, password) |
|
|
|
.set('Content-Type', 'application/json') |
|
|
|
.send({processInstanceIdIn: procinstIds}) |
|
|
|