Hi, how can I call the methode and pass the value for the datafields in my Workflow. Here is the code:
$.ajax ({
url: 'http://K2Server/k2services/REST.svc/Process/Definitions(K2.WF.RoleApproval_B_RoleApproval)/StartInstance?folio=MyTest',
method: 'GET',
contentType: "application/json; charset=utf-8",
dataType: "JSON",
cache: false,
async: true,
beforeSend: function (XMLHttpRequest) {
XMLHttpRequest.setRequestHeader("Accept", "application/json");
$.support.cors = true; },
crossDomain: false,
error: function (data, errors, status) {alert("Error " + status); },
success: function (data) {alert("Success " + status) } });
How can I set the datafields in the code. I have a datafield "owner". What I need to do is to pass the value of this datafield in the request.
Thanks Shadi