Skip to content

Commit

Permalink
Use PUT to update process variable instead of POST
Browse files Browse the repository at this point in the history
  • Loading branch information
mlaflamm authored and liderman committed Sep 2, 2022
1 parent 8ae3615 commit 4908fb1
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions process-instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -451,11 +451,7 @@ func (p *ProcessInstance) ModifyProcessVariables(id string, req ReqModifyProcess

// UpdateProcessVariable sets a variable of a given process instance by id.
func (p *ProcessInstance) UpdateProcessVariable(by QueryProcessInstanceVariableBy, req ReqProcessVariable) error {
res, err := p.client.doPostJson(by.String(), nil, req)
if res != nil {
res.Body.Close()
}
return err
return p.client.doPutJson(by.String(), nil, req)
}

// Delete deletes a running process instance by id.
Expand Down

0 comments on commit 4908fb1

Please sign in to comment.