I am making a CSV file report that show finished task's information, by getting it from REST API
I need to get the date when task was created, by submitting the instantiation/previous form.
From REST API "/API/bpm/archivedHumanTask?p=0", I can get value for "reached_state_date" and "last_update_date" which is the same as "archivedDate".
How can I get the start date of an archived task? Why does Bonita not include this information in teh REST API data?
Hi
get start from this response of this url:
/API/bpm/case/:id
Payload :
<div>
<div>
<pre>
{
“id”: “1”,
“end_date”: “”,
“failedFlowNodes”: “9”,
“startedBySubstitute”: {
“last_connection”: “2014-12-01 10:46:03.750”,
“created_by_user_id”: “-1”,
“creation_date”: “2014-11-27 17:53:46.516”,
“id”: “4”,
“icon”: “/default/icon_user.png”,
“enabled”: “true”,
“title”: “Mr”,
“manager_id”: “3”,
“job_title”: “Human resources benefits”,
“userName”: “walter.bates”,
“lastname”: “Bates”,
“firstname”: “Walter”,
“password”: “”,
“last_update_date”: “2014-11-27 17:53:46.516”
},
“start”: “2014-11-27 17:55:00.906”,
“activeFlowNodes”: “9”,
“state”: “started”,
“rootCaseId”: “1”,
“started_by”:{
“last_connection”: “”,
“created_by_user_id”: “-1”,
“creation_date”: “2014-11-27 17:53:46.509”,
“id”: “3”,
“icon”: “/default/icon_user.png”,
“enabled”: “true”,
“title”: “Mrs”,
“manager_id”: “1”,
“job_title”: “Human resource manager”,
“userName”: “helen.kelly”,
“lastname”: “Kelly”,
“firstname”: “Helen”,
“password”: “”,
“last_update_date”: “2014-11-27 17:53:46.509”
},
“processDefinitionId”: {
“id”: “5777042023671752656”,
“icon”: “”,
“displayDescription”: “”,
“deploymentDate”: “2014-11-27 17:54:37.774”,
“description”: “”,
“activationState”: “ENABLED”,
“name”: “Pool2”,
“deployedBy”: “4”,
“displayName”: “Pool 2”,
“actorinitiatorid”: “1”,
“last_update_date”: “2014-11-27 17:54:43.621”,
“configurationState”: “RESOLVED”,
“version”: “2.0”
},
“last_update_date”: “2014-11-27 17:55:00.906”,
“searchIndex1Label”:“mySearchIndex1Label”
}
<p> </p>
</div>
</div>
</li>
for more information:
https://documentation.bonitasoft.com/bonita/2021.2/api/bpm-api
system
28 December 2021 11:19
3
Hello,
From what I know, you can get the "assigned_date" from an archived activity. You can read about the REST API BPM APIs here .
Let me know if this helps.
Kind regards,
Soham