02. Activities - history
Interface
It allows you:
to get all workflow activities (master - detail) for one document
Prerequisites:
In order to use this API Method you must have workflow setup completed!
Columns that can be used as filters:
Organization
DocType - mandatory
DocumentNo - mandatory
Processed
Actions can be done:
list - will list all workflow activities
API Methods:
List:
URL: https://api.socratecloud.com/webapi/rest/workflow/activity_history/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}&DocType={}&DocumentNo={}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"Created": "2014-07-04 12:35:18+0300",
"CreatedBy": "BIT-Ionut",
"Updated": "2014-07-04 12:35:55+0300",
"UpdatedBy": "SuperVisor",
"Workflow": "Process_TimeExpense",
"WFState": "Completed",
"User": "BIT-Ionut",
"DocumentAction": "Complete",
"DocType": null,
"DocumentNo": "1000401",
"Processed": true,
"activities": [
{
"Organization": "Demo SRL",
"Created": "2014-07-04 12:35:18+0300",
"CreatedBy": "BIT-Ionut",
"Updated": "2014-07-04 12:35:18+0300",
"UpdatedBy": "BIT-Ionut",
"Node": "(Start)",
"WFState": "Completed",
"Description": "(Standard Node)",
"Summary": "Expense Report 1000401: BIT-Ionut ",
"Comment": null,
"Responsible": "BIT-Ionut",
"Processed": true,
"Event": "(Start)",
"ForwardedTo": null,
"Text": null
},
{
"Organization": "Demo SRL",
"Created": "2014-07-04 12:35:18+0300",
"CreatedBy": "BIT-Ionut",
"Updated": "2014-07-04 12:35:19+0300",
"UpdatedBy": "BIT-Ionut",
"Node": "(DocPrepare)",
"WFState": "Completed",
"Description": "(Standard Node)",
"Summary": "Expense Report 1000401: BIT-Ionut ",
"Comment": null,
"Responsible": "BIT-Ionut",
"Processed": true,
"Event": "(DocPrepare)",
"ForwardedTo": null,
"Text": null
},
{
"Organization": "Demo SRL",
"Created": "2014-07-04 12:35:19+0300",
"CreatedBy": "BIT-Ionut",
"Updated": "2014-07-04 12:35:55+0300",
"UpdatedBy": "SuperVisor",
"Node": "DocApprove",
"WFState": "Completed",
"Description": "UserM-Demo",
"Summary": "Expense Report 1000401: BIT-Ionut ",
"Comment": null,
"Responsible": "ionut@bit",
"Processed": true,
"Event": "Approved",
"ForwardedTo": null,
"Text": "null"
}
]
}
],
"totalRows": 5
}