As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<br>PUT /task/4711/claim<br>Host: 127.0.0.1:8080<br>Accept-Encoding: identity<br>Content-Length: 26<br>content-type: application/json<br>Authorization: Basic cnViZW46cnViZW5zc2VjcmV0cGFzcw==<br>
<br>[size=85]<br><br>function claimTheTask(theTaskId)<br>{<br> alert("claimTheTask() was called with theTaskId = " + theTaskId);<br> var activitiClaimTaskUrl = "<a href="http://172.30.1.67:8080/activiti-rest/service/task" rel="nofollow noopener noreferrer">http://172.30.1.67:8080/activiti-rest/service/task</a>";<br> var theParameters = "/" + theTaskId + "/claim";<br> var theRequest = new Ajax.Request<br> (activitiClaimTaskUrl + theParameters,<br> {<br> requestHeaders: ["ContentType", "application/json;charset=UTF-8"],<br> requestHeaders: ["Authorization", "Basic a2VybWl0Omtlcm1pdA=="],<br> method: "PUT",<br> onFailure: function (originalRequest)<br> {<br> document.getElementById("theReply").innerHTML<br> = "Failed with: Status = " + originalRequest.status;<br> alert("onFailure() was called.");<br> },<br> onSuccess: function(originalRequest)<br> {<br> document.getElementById("theReply").innerHTML<br> = "Received: " + originalRequest.responseText;<br> alert("onSuccess() was called."); }<br>});<br>}[/size]
POST http://172.30.1.67:8080/activiti-rest/service/task/953/claim HTTP/1.1Host: 172.30.1.67:8080User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23Accept: text/javascript, text/html, application/xml, text/xml, */*Accept-Language: en-us,en;q=0.5Accept-Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7Keep-Alive: 115Connection: keep-aliveX-Requested-With: XMLHttpRequestX-Prototype-Version: 1.7Content-Type: application/x-www-form-urlencoded; charset=UTF-8Authorization: Basic a2VybWl0Omtlcm1pdA==Referer: http://172.30.1.67:8080/Act-Control-Proj2/ActControlServletContent-Length: 11Pragma: no-cacheCache-Control: no-cache_method=put