09-29-2011 05:05 AM
09-29-2011 05:09 AM
09-29-2011 05:21 AM
09-29-2011 06:21 AM
09-29-2011 10:44 AM
PUT /task/4711/claim
Host: 127.0.0.1:8080
Accept-Encoding: identity
Content-Length: 26
content-type: application/json
Authorization: Basic cnViZW46cnViZW5zc2VjcmV0cGFzcw==
09-29-2011 07:56 PM
11-10-2011 05:54 PM
[size=85]
function claimTheTask(theTaskId)
{
alert("claimTheTask() was called with theTaskId = " + theTaskId);
var activitiClaimTaskUrl = "http://172.30.1.67:8080/activiti-rest/service/task";
var theParameters = "/" + theTaskId + "/claim";
var theRequest = new Ajax.Request
(activitiClaimTaskUrl + theParameters,
{
requestHeaders: ["ContentType", "application/json;charset=UTF-8"],
requestHeaders: ["Authorization", "Basic a2VybWl0Omtlcm1pdA=="],
method: "PUT",
onFailure: function (originalRequest)
{
document.getElementById("theReply").innerHTML
= "Failed with: Status = " + originalRequest.status;
alert("onFailure() was called.");
},
onSuccess: function(originalRequest)
{
document.getElementById("theReply").innerHTML
= "Received: " + originalRequest.responseText;
alert("onSuccess() was called."); }
});
}[/size]
POST http://172.30.1.67:8080/activiti-rest/service/task/953/claim HTTP/1.1
Host: 172.30.1.67:8080
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23
Accept: text/javascript, text/html, application/xml, text/xml, */*
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 115
Connection: keep-alive
X-Requested-With: XMLHttpRequest
X-Prototype-Version: 1.7
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Authorization: Basic a2VybWl0Omtlcm1pdA==
Referer: http://172.30.1.67:8080/Act-Control-Proj2/ActControlServlet
Content-Length: 11
Pragma: no-cache
Cache-Control: no-cache
_method=put
11-12-2011 07:29 AM
11-14-2011 09:13 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.