openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_STORE_WF_LINES:
    post:
      tags:
      - SWDB
      operationId: /rfc/SWD_STORE_WF_LINES
      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_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: 'Workflow definition: Client'
                      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
                      PRED_NODE:
                        type: integer
                        format: int64
                        description: ID of node in workflow definition
                      SUCC_NODE:
                        type: integer
                        format: int64
                        description: ID of subsequent node in workflow definition
                      LINE_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Workflow definition: Semantics of line  enumValues: A=Exception of BOR Object Type,E=Event (Only BOR Object Types),F=Workflow Exception (for Block Exception Handler),D=Deadline,X=Exception of Business Class,Y=Event (BOR, Business Classes, ...),R=Result'
                        enum:
                        - A
                        - E
                        - F
                        - D
                        - X
                        - Y
                        - R
                      RETURNCODE:
                        type: string
                        maxLength: 255
                        description: 'Workflow Definition: Container Expression for Step Result'
                      MIN_WAIT_T:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Minimum wait time between 2 nodes'
                      MAX_WAIT_T:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Maximum wait time between 2 nodes'
                      EDITORDER:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Editing sequence'
              required:
              - ACT_TASK
              - ACT_WFDKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACT_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: 'Workflow definition: Client'
                        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
                        PRED_NODE:
                          type: integer
                          format: int64
                          description: ID of node in workflow definition
                        SUCC_NODE:
                          type: integer
                          format: int64
                          description: ID of subsequent node in workflow definition
                        LINE_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Workflow definition: Semantics of line  enumValues: A=Exception of BOR Object Type,E=Event (Only BOR Object Types),F=Workflow Exception (for Block Exception Handler),D=Deadline,X=Exception of Business Class,Y=Event (BOR, Business Classes, ...),R=Result'
                          enum:
                          - A
                          - E
                          - F
                          - D
                          - X
                          - Y
                          - R
                        RETURNCODE:
                          type: string
                          maxLength: 255
                          description: 'Workflow Definition: Container Expression for Step Result'
                        MIN_WAIT_T:
                          type: integer
                          format: int64
                          description: 'Workflow definition: Minimum wait time between 2 nodes'
                        MAX_WAIT_T:
                          type: integer
                          format: int64
                          description: 'Workflow definition: Maximum wait time between 2 nodes'
                        EDITORDER:
                          type: integer
                          format: int64
                          description: 'Workflow definition: Editing sequence'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
