rest-api-context_1 2.5

Pierre-yves Monnet's picture

Release notes

If the case contains Documents, there are returned in the answer:
"listDocsStudent": [
{
"src": {
"id": 2001,
"creationDate": 1483143534951,
"author": 658,
"index": 0,
"contentFileName": "14060147_1311913258820543_1485550249_o.jpg",
"processInstanceId": 34001,
"description": null,
"name": "listDocsStudent",
"fileName": "14060147_1311913258820543_1485550249_o.jpg",
"contentMimeType": "image/jpeg",
"hasContent": true,
"url": "documentDownload?fileName=14060147_1311913258820543_1485550249_o.jpg&contentStorageId=2001",
"version": "1",
"contentStorageId": "2001"
}
},
{
"src": {
"id": 2002,
"creationDate": 1483143534971,
"author": 658,
"index": 1,
"contentFileName": "14060530_1311913738820495_632006191_o.jpg",
"processInstanceId": 34001,
"description": null,
"name": "listDocsStudent",
"fileName": "14060530_1311913738820495_632006191_o.jpg",
"contentMimeType": "image/jpeg",
"hasContent": true,
"url": "documentDownload?fileName=14060530_1311913738820495_632006191_o.jpg&contentStorageId=2002",
"version": "1",
"contentStorageId": "2002"
}
}
],

If a variable is a JAVA class, then it's possible in the context to control which attributes are returned.
Example : give in the context :
{ "application":
{ "idNumber":"data",
"preferredFirstName":"data",
"preferredLastName":"data",
"assessments":
{ "courseTitle" : "data",
"assessmentDate" : "date",
"assessmentType" : "data"
}
}
}

the for the variable "application", the attributes "idNumber", "preferredFirstName" and lastname are returned, not all attributes. If "assessments" is a Map or a List, then only "courseTitle", "AssessmentDate and assessmentType are returned in the child, not all another attributes

Downloads: 
289
BonitaBPM Version Compatibility: 
Testing
Notifications