openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_API_WORKFLOW_PROTOCOL_GET:
    post:
      tags:
      - SWDN
      operationId: /rfc/SWD_API_WORKFLOW_PROTOCOL_GET
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                STEPS_HIDE:
                  type: string
                  default: X
                  maxLength: 1
                  description: Internal
                TASK:
                  type: string
                  maxLength: 14
                  description: Internal
                USE_BUFFER:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Checkbox Field
                VIEW:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Workflow Builder view
                WI_ID:
                  type: integer
                  format: int64
                  description: Work Item ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  PROTOCOL:
                    type: object
                    properties:
                      NODES:
                        type: array
                        items:
                          type: object
                          properties:
                            NODE_ID:
                              type: integer
                              format: int64
                              description: Node Number
                            NODE_TYPE:
                              type: string
                              maxLength: 10
                              description: 'WF: API: Node type'
                            NODE_TTEXT:
                              type: string
                              maxLength: 60
                              description: 'WF: API: Node type description'
                            NODE_DESC:
                              type: string
                              maxLength: 80
                              description: Name of Step or Outcome
                            NODE_BLKID:
                              type: integer
                              format: int64
                              description: Node Number
                            NODE_PABLK:
                              type: integer
                              format: int64
                              description: Node Number
                            NODE_POSX:
                              type: string
                              maxLength: 5
                              description: 'Workflow definition: Horizontal position of nodes'
                            NODE_POSY:
                              type: string
                              maxLength: 5
                              description: 'Workflow definition: Vertical position of nodes'
                            NODE_WEBTA:
                              type: string
                              maxLength: 20
                              description: Transaction for starting/executing task on WWW
                            NODE_SWIM:
                              type: string
                              maxLength: 32
                              description: Overview of Existing Groupings
                            NODE_TASK:
                              type: string
                              maxLength: 14
                              description: Task abbreviation
                            WIS:
                              type: array
                              items:
                                type: object
                                properties:
                                  NODE_WI_ID:
                                    type: integer
                                    format: int64
                                    description: Work item ID
                                  NODE_WITXT:
                                    type: string
                                    maxLength: 120
                                    description: Work Item Text
                                  NODE_STATE:
                                    type: string
                                    maxLength: 12
                                    description: Processing Status of a Work Item
                                  NODE_STTXT:
                                    type: string
                                    maxLength: 20
                                    description: 'Workflow: Work Item Status'
                                  NODE_CRE_D:
                                    type: string
                                    format: date
                                    description: Creation Date of Work Item
                                  NODE_CRE_T:
                                    type: string
                                    maxLength: 6
                                    description: Creation Time of Work Item
                                  NODE_END_D:
                                    type: string
                                    format: date
                                    description: End Date of Work Item
                                  NODE_END_T:
                                    type: string
                                    maxLength: 6
                                    description: Current end time of work item
                                  NODE_DEADL:
                                    type: string
                                    maxLength: 1
                                    description: Deadline missed
                                  NODE_LS_F:
                                    type: string
                                    maxLength: 1
                                    description: Checkbox
                                  NODE_LS_D:
                                    type: string
                                    format: date
                                    description: Latest Start Date for Work Item
                                  NODE_LS_T:
                                    type: string
                                    maxLength: 6
                                    description: Latest start time for work item
                                  NODE_DE_F:
                                    type: string
                                    maxLength: 1
                                    description: Checkbox
                                  NODE_DE_D:
                                    type: string
                                    format: date
                                    description: Requested End Date for Work Item
                                  NODE_DE_T:
                                    type: string
                                    maxLength: 6
                                    description: Requested end time for work item
                                  NODE_LE_F:
                                    type: string
                                    maxLength: 1
                                    description: Checkbox
                                  NODE_LE_D:
                                    type: string
                                    format: date
                                    description: Latest End Date for Work Item
                                  NODE_LE_T:
                                    type: string
                                    maxLength: 6
                                    description: Latest end time for work item
                            TASKS:
                              type: array
                              items:
                                type: object
                                properties:
                                  NODE_TASK:
                                    type: string
                                    maxLength: 14
                                    description: Task abbreviation
                            PROPERTIES:
                              type: array
                              items:
                                type: object
                                properties:
                                  NODE_NAME:
                                    type: string
                                    description: ''
                                  NODE_VALUE:
                                    type: string
                                    description: ''
                            AGENTS:
                              type: array
                              items:
                                type: object
                                properties:
                                  NODE_AGENT:
                                    type: string
                                    maxLength: 40
                                    description: Name of Actual Agent of Work Item
                                  NODE_USER:
                                    type: string
                                    maxLength: 12
                                    description: User Name in User Master Record
                      LINES:
                        type: array
                        items:
                          type: object
                          properties:
                            LINE_ID:
                              type: integer
                              format: int64
                              description: 'Workflow definition: Unique ID of a line'
                            LINE_TYPE:
                              type: string
                              maxLength: 10
                              description: 'WF: API: Line type'
                            LINE_TTXT:
                              type: string
                              maxLength: 60
                              description: 'WF: API: Line description'
                            LINE_DESC:
                              type: string
                              maxLength: 80
                              description: Name of Step or Outcome
                            LINE_PRED:
                              type: integer
                              format: int64
                              description: Node Number
                            LINE_SUCC:
                              type: integer
                              format: int64
                              description: Node Number
                            LINE_POSX:
                              type: string
                              maxLength: 5
                              description: 'Workflow definition: Horizontal position of lines'
                            LINE_POSY:
                              type: string
                              maxLength: 5
                              description: 'Workflow definition: Vertical position of nodes'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
