Query Activity Instances in Xml Format

API Type

REST

HTTP Method

POST

Description

Retrieves activity instances that match a query expression in xml format.

URL Format (On Premises)

https://[domain]:[port]/AgilePointServer/Workflow/QueryActivityInsts/[expr]

URL Format (AgilePoint for Azure)

https://[domain]:[port]/AgilePointService/Workflow/QueryActivityInsts/[expr]

Request Parameters

Name Description

expr

Definition:
Specifies the where clause of a SQL query expression.
Type
WFQueryExpr
Allowed Values:
A valid WFQueryExpr object.

JavaScript Code Example

$("#btnQueryActivityInstsXml").click(function () {
  var JSONObject = "<
     WFQueryExprHelper xmlns=\"https:\/\/schemas.datacontract.org\/2004\/07\/Ascentn.AgilePoint.WCFService\">
     <ColumnName>ID<\/ColumnName><IsValue>true<\/IsValue>
     <Operator>EQ<\/Operator><WhereClause>00005B6533CB4362A55A624C54293CD3
     <\/WhereClause><\/WFQueryExprHelper>";

  $.ajax({
    url: "https://mydomain:9011/AgilePointServer/Workflow/QueryActivityInsts",
    data: JSONObject, contentType: "application/xml", dataType: "xml"                     
  });
  
});

C# Code Example

public string QueryActivityInstsXML()
  {
    string xmlRequestData = "
      <WFQueryExprHelper xmlns=\"https:\\/\\/schemas.datacontract.org\\/2004\\/07\\/Ascentn.AgilePoint.WCFService\">
      <ColumnName>ID<\\/ColumnName>
      <IsValue>true<\\/IsValue>
      <Operator>EQ<\\/Operator>
      <WhereClause>00005B6533CB4362A55A624C54293CD3<\\/WhereClause>
      <\\/WFQueryExprHelper>";

    string URI="http://mydomain:9011/AgilePointServer/Workflow/QueryActivityInsts";

    HTTPOperations ops = new HTTPOperations(domain, this.userName, 
                         password, appID, locale);

    return ops.PostXml(URI, xmlRequestData);
  }

Output

An array of WFBaseActivityInstance objects.

JSON Response Body Example

  On hold due to didn't get JSON response code.

Supported Versions

AgilePoint BPMS v5.0 R2 and higher