openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_STORE_WF_TASKS:
    post:
      tags:
      - SWDB
      operationId: /rfc/SWD_STORE_WF_TASKS
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                ACT_TASK:
                  type: string
                  maxLength: 14
                ACT_WFDKEY:
                  type: object
                  properties:
                    WFD_ID:
                      type: string
                      maxLength: 10
                      description: Number of workflow definition
                    VERSION:
                      type: string
                      maxLength: 4
                      description: Version
                    EXETYP:
                      type: string
                      maxLength: 1
                      description: 'Workflow Type  enumValues: E=Runtime,R=Ad Hoc Runtime,S=Definition,D=Ad Hoc Definition,C=Configuration Definition,A=Configuration Runtime'
                      enum:
                      - E
                      - R
                      - S
                      - D
                      - C
                      - A
                DO_COMMIT:
                  type: string
                  default: ' '
                  maxLength: 1
                ACT_TASKS:
                  type: array
                  items:
                    type: object
                    properties:
                      NODEID:
                        type: integer
                        format: int64
                        description: Node Number
                      SEL_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Workflow definition: Selection flag  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TASKTYPE:
                        type: string
                        maxLength: 2
                        description: 'Type of task  enumValues: RE=Review Workflow,AN=Possible Workflow at Anchor for Ad Hoc Workflow'
                        enum:
                        - RE
                        - AN
                      TASK:
                        type: string
                        maxLength: 14
                        description: Task abbreviation
                      STEXT:
                        type: string
                        maxLength: 40
                        description: Task description
                      SHORT:
                        type: string
                        maxLength: 12
                        description: Task Abbreviation
              required:
              - ACT_TASK
              - ACT_WFDKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACT_TASKS:
                    type: array
                    items:
                      type: object
                      properties:
                        NODEID:
                          type: integer
                          format: int64
                          description: Node Number
                        SEL_FLAG:
                          type: string
                          maxLength: 1
                          description: 'Workflow definition: Selection flag  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        TASKTYPE:
                          type: string
                          maxLength: 2
                          description: 'Type of task  enumValues: RE=Review Workflow,AN=Possible Workflow at Anchor for Ad Hoc Workflow'
                          enum:
                          - RE
                          - AN
                        TASK:
                          type: string
                          maxLength: 14
                          description: Task abbreviation
                        STEXT:
                          type: string
                          maxLength: 40
                          description: Task description
                        SHORT:
                          type: string
                          maxLength: 12
                          description: Task Abbreviation
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
