Skip to content

Commit

Permalink
feat(sdk-js): add correlate message batch operation
Browse files Browse the repository at this point in the history
related to CAM-13865, closes camunda#1615
  • Loading branch information
tasso94 authored Sep 15, 2021
1 parent dbb0609 commit 69e8372
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -209,13 +209,36 @@ var ProcessInstance = AbstractClientResource.extend(
});
},

/**
* Sets variables to process instances (batch).
*
* @see https://docs.camunda.org/manual/latest/reference/rest/process-instance/post-set-variables-async/
*
* @param {Object} payload
* @param {requestCallback} done
*/
setVariablesAsync: function(payload, done) {
return this.http.post(this.path + '/variables-async', {
data: payload,
done: done
});
},

/**
* Correlates a message against process instances (batch).
*
* @see https://docs.camunda.org/manual/latest/reference/rest/process-instance/post-message-async/
*
* @param {Object} payload
* @param {requestCallback} done
*/
correlateMessageAsync: function(payload, done) {
return this.http.post(this.path + '/message-async', {
data: payload,
done: done
});
},

/**
* Sets a variable of a given process instance by id.
*
Expand Down

0 comments on commit 69e8372

Please sign in to comment.