Previous Next JavaScript must be enabled to correctly display this content

## Get a specific workflowTask by workflowTask Id

get

/PASService/rest/services/v1/workflowTasks/{workflowTaskId}

Gets a workflowTask based on the specified workflowTask Id

### Request

Path Parameters

- workflowTaskId(required): string(guid)
  WorkflowTask Id

There's no request body for this operation.

Back to Top

### Response

Supported Media Types

- application/json

#### 200 Response

successful operation
Back to Top

### Examples

This example describes how to get a workflowTask based on the specified workflowTask Id.

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/workflowTask/ED2D806B-EDCB-4925-AF01-650D7856FEDB"

Example Response Body

The following shows an example of the response body in JSON format:

    {
      "workflowTask": {
        "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/9BC3824F-9C8A-4F43-B459-E42763357D4F",
            "rel": "workflowTaskDefinitions",
            "mediaType": "application/json",
            "method": "GET"
          },
          {
            "href": "http://localhost:8081/PASService/rest/services/codes?codeName=workflowQueueCode&codeValue=PolicyQueue",
            "rel": "codes/workflowQueue",
            "mediaType": "application/json",
            "method": "GET"
          },
          {
            "href": "http://localhost:8081/PASService/rest/services/codes?codeName=entityCode&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=StatusCode&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",
        "workflowTaskDefinition": {
          "links": [
            {
              "href": "http://fsgbu-mum-743.snbomprshared1.gbucdsint02bom.oraclevcn.com:7009/PASService/rest/services/v1/workflowTaskDefinitions/9BC3824F-9C8A-4F43-B459-E42763357D4F",
              "rel": "self",
              "mediaType": "application/json",
              "method": "GET"
            },
            {
              "href": "http://localhost:8081/PASService/rest/services/codes?codeName=workflowQueueCode&codeValue=PCS",
              "rel": "codes/workflowQueue",
              "mediaType": "application/json",
              "method": "GET"
            },
            {
              "href": "http://localhost:8081/PASService/rest/services/codes?codeName=entityCode&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=creationalMethod&codeValue=MANUAL",
              "rel": "codes/creationalMethod",
              "mediaType": "application/json",
              "method": "GET"
            }
          ],
          "codes": [
                       {
                    "codeName": "AsCodeWorkFlowQueue",
                    "codeValue": "PCS",
                    "longDescription": "Policy Change Services Queue",
                    "shortDescription": "Policy Change Services Queue"
                },
                {
                    "codeName": "AsCodeEntity",
                    "codeValue": "POLICY",
                    "longDescription": "Policy",
                    "shortDescription": "Policy Entity"
                },
                        {
                            "codeName": "AsCodeWorkflowCreationMethod",
                            "codeValue": "MANUAL",
                            "longDescription": "Manual",
                            "shortDescription": "Workflow tasks are created by a user"
                        }
                    ],
          "workflowTaskDefinitionId": "9BC3824F-9C8A-4F43-B459-E42763357D4F",
          "workflowTaskName": "MIB Inquiry",
          "workflowQueueCode": "PCS",
          "entityCode": "POLICY",
          "description": "Reports Inspection",
          "creationalMethod": "MANUAL",
          "creationGmt": "2023-03-02T00:00:00Z",
          "createdBy": "Prashanthib",
          "updatedGmt": "2024-11-14T05:10:00Z",
          "updatedBy": "prashanthib"
        },
        "codes": [
                {
                    "codeName": "AsCodeWorkFlowQueue",
                    "codeValue": "PCS",
                    "longDescription": "Policy Change Services Queue",
                    "shortDescription": "Policy Change Services Queue"
                },
                {
                    "codeName": "AsCodeEntity",
                    "codeValue": "POLICY",
                    "longDescription": "Policy",
                    "shortDescription": "Policy Entity"
                },
                {
                    "codeName": "AsCodeWorkflowTaskStatus",
                    "codeValue": "Assigned",
                    "longDescription": "A workflow task that has been assigned to a user",
                    "shortDescription": "Assigned"
                }
            ],
        "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": "This is API test12"
        }
      }
    }

Back to Top