|
|
@ -318,19 +318,16 @@ export default { |
|
|
|
/** |
|
|
|
/** |
|
|
|
* Process instance update |
|
|
|
* Process instance update |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
updateInstance ({ state }, payload) { |
|
|
|
updateInstance ({ state }, instanceId) { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
return new Promise((resolve, reject) => { |
|
|
|
const data = { |
|
|
|
io.put(`projects/${state.projectCode}/process-instances/${instanceId}`, { |
|
|
|
globalParams: state.globalParams, |
|
|
|
syncDefine: state.syncDefine, |
|
|
|
tasks: state.tasks, |
|
|
|
globalParams: JSON.stringify(state.globalParams), |
|
|
|
tenantId: state.tenantId, |
|
|
|
|
|
|
|
timeout: state.timeout |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
io.put(`projects/${state.projectCode}/process-instances/${payload}`, { |
|
|
|
|
|
|
|
processInstanceJson: JSON.stringify(data), |
|
|
|
|
|
|
|
locations: JSON.stringify(state.locations), |
|
|
|
locations: JSON.stringify(state.locations), |
|
|
|
connects: JSON.stringify(state.connects), |
|
|
|
taskDefinitionJson: JSON.stringify(state.tasks), |
|
|
|
syncDefine: state.syncDefine |
|
|
|
taskRelationJson: JSON.stringify(state.connects), |
|
|
|
|
|
|
|
tenantCode: state.tenantCode, |
|
|
|
|
|
|
|
timeout: state.timeout |
|
|
|
}, res => { |
|
|
|
}, res => { |
|
|
|
resolve(res) |
|
|
|
resolve(res) |
|
|
|
state.isEditDag = false |
|
|
|
state.isEditDag = false |
|
|
|