Uploaded image for project: 'eZ Platform Enterprise Edition'
  1. eZ Platform Enterprise Edition
  2. EZEE-509

Get information about content workflow status and messages history from backend

    Details

    • Type: Story Story
    • Status: Closed
    • Priority: Medium Medium
    • Resolution: Unresolved
    • Affects Version/s: 2015.12
    • Fix Version/s: None
    • Component/s: Flex Workflow
    • Labels:
      None

      Description

      Get information about content workflow status and messages history from backend so we know on frontend side that content is/was in review.

        Activity

        Show
        Sławomir Uchto added a comment - Blocks: https://jira.ez.no/browse/EZS-477 https://jira.ez.no/browse/EZS-506
        Hide
        Sławomir Uchto added a comment -

        It's possible to get workflow content information via "/flex-workflow/content/{contentId}" route.

        Expected response:

        Error (ie. no workflow found)

        Status Code: 400 Bad Request

        {
          "result": "failed",
          "error": "..."
        }
        

        Success:

        Status Code: 200 OK

        {
           "result": "success",
           "isInReview": true,
           "sender": {
              "id": 14,
              "name": "Administrator User",
              "restId": "\/api\/ezp\/v2\/content\/objects\/14"
           },
           "reviewer": {
              "id":102,
              "name": "Yura Rajzer",
              "restId": "\/api\/ezp\/v2\/content\/objects\/102"
           },
           "messages": [
              {
                 "sender":{
                    "id": 14,
                    "name": "Administrator User",
                    "restId": "\/api\/ezp\/v2\/content\/objects\/14"
                 },
                 "receiver": {
                    "id": 102,
                    "name": "Yura Rajzer",
                    "restId": "\/api\/ezp\/v2\/content\/objects\/102"
                 },
                 "message": "...",
                 "created": 1453368841
              } // , { ... }
           ]
        }

        Show
        Sławomir Uchto added a comment - It's possible to get workflow content information via "/flex-workflow/content/{contentId}" route. Expected response: Error (ie. no workflow found) Status Code: 400 Bad Request { "result": "failed", "error": "..." } Success: Status Code: 200 OK { "result": "success", "isInReview": true, "sender": { "id": 14, "name": "Administrator User", "restId": "\/api\/ezp\/v2\/content\/objects\/14" }, "reviewer": { "id":102, "name": "Yura Rajzer", "restId": "\/api\/ezp\/v2\/content\/objects\/102" }, "messages": [ { "sender":{ "id": 14, "name": "Administrator User", "restId": "\/api\/ezp\/v2\/content\/objects\/14" }, "receiver": { "id": 102, "name": "Yura Rajzer", "restId": "\/api\/ezp\/v2\/content\/objects\/102" }, "message": "...", "created": 1453368841 } // , { ... } ] }
        Hide
        Sławomir Uchto added a comment -
        Show
        Sławomir Uchto added a comment - Pull request: https://github.com/ezsystems/flex-workflow/pull/8

          People

          • Assignee:
            Sławomir Uchto
            Reporter:
            Sławomir Uchto
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated: