Get list of workflowTasks
get
/PASService/rest/services/v1/workflowTasks
Gets a list of the latest 100 workflowTasks. Also, define expand attributes to expand a workflowTask by its sub-resources such as workflowTaskDefinition
Request
Query Parameters
-
expand: string
workflowTaskDefinition, codes, all
-
limit: integer(int32)
limit value
-
offset: integer(int32)
offset value
-
q: string
Search parameter
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
successful operation
Examples
This example describes how to get a list of latest 100 workflowTasks. Also, define expand attributes to expand a workflowTasks by its sub-resources such as workflowTaskDefinition.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl \
-X GET \
-H "Content-Type: application/json" \
-u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
-L "http://server:port/PASService/rest/services/v1/workflowTasks" Example Response Body
The following shows an example of the response body in JSON format:
{
"count": 1,
"offset": 0,
"limit": 100,
"workflowTasks": [
{
"links": [
{
"href": "http://fsgbu-mum-743.snbomprshared1.gbucdsint02bom.oraclevcn.com:7009/PASService/rest/services/v1/workflowTasks/ED2D806B-EDCB-4925-AF01-650D7856FEDB",
"rel": "self",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://fsgbu-mum-743.snbomprshared1.gbucdsint02bom.oraclevcn.com:7009/PASService/rest/services/v1/workflowTaskDefinitions/7BDCA43A-CAE6-4407-8EEA-0FDA9C8DE17A
"rel": "workflowTaskDefinitions",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://localhost:8081/PASService/rest/services/codes?codeName=WorkflowQueue&codeValue=PolicyQueue",
"rel": "codes/workflowQueue",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://localhost:8081/PASService/rest/services/codes?codeName=Entity&codeValue=POLICY",
"rel": "codes/entity",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://fsgbu-mum-743.snbomprshared1.gbucdsint02bom.oraclevcn.com:7009/PASService/rest/services/v1/codes?codeName=WorkflowTaskStatus&codeValue=ASSIGNED",
"rel": "codes/workflowTaskStatus",
"mediaType": "application/json",
"method": "GET"
},
{
"href": "http://fsgbu-mum-743.snbomprshared1.gbucdsint02bom.oraclevcn.com:7009/PASService/rest/services/v1/policies/4ABB9232-BFD9-4F79-891A-74B3BD06491A",
"rel": "policies",
"mediaType": "application/json",
"method": "GET"
}
],
"workflowTaskId": "ED2D806B-EDCB-4925-AF01-650D7856FEDB",
"workflowTaskDefinitionId": "7BDCA43A-CAE6-4407-8EEA-0FDA9C8DE17A",
"statusCode": "ASSIGNED",
"workflowQueueCode": "PolicyQueue",
"entityCode": "POLICY",
"entityId": "4ABB9232-BFD9-4F79-891A-74B3BD06491A",
"assignedTo": "prashanthib",
"createdGmt": "2024-11-14T05:10:00Z",
"createdBy": "Prashanthib",
"updatedGmt": "2024-11-14T05:10:00Z",
"updatedBy": "prashanthib",
"workflowComments": {
"comments": "workflow comment"
}
}
]
}