diff --git a/api/app/lib/schedule/workOrder.js b/api/app/lib/schedule/workOrder.js index 5499dbb..d59a0a7 100644 --- a/api/app/lib/schedule/workOrder.js +++ b/api/app/lib/schedule/workOrder.js @@ -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})