openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWF_CREATE_WHILE_LOOP:
    post:
      tags:
      - SWF1
      operationId: /rfc/SWF_CREATE_WHILE_LOOP
      requestBody:
        content:
          application/json:
            schema:
              properties:
                STEP_DESCRIPTION:
                  type: object
                  properties:
                    DESCRIPT:
                      type: string
                      maxLength: 80
                      description: Name of Step or Outcome
                    CASE_CONTE:
                      type: string
                      maxLength: 255
                      description: 'Workflow definition: Expression via container'
                    OTHER_DESC:
                      type: string
                      maxLength: 80
                      description: Name of Step or Outcome
                    STEP_HIDE:
                      type: string
                      maxLength: 1
                      description: 'Display Node in Workflow Log  enumValues: X=Only in Technical Workflow Log,B=Condition ''Complete Work Item'' True: Not in Graf. Protocol,""=In All Workflow Logs'
                      enum:
                      - X
                      - B
                      - ''
                STEP_NODE_ID:
                  type: integer
                  format: int64
                STEP_PROPERTIES:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        description: 'Attribute: Name'
                      VALUE:
                        type: string
                        description: 'Attributes: Value'
                      XVALUE:
                        type: string
                        format: byte
                        description: 'Attributes: Value'
                RESULT:
                  type: array
                  items:
                    type: object
                    properties:
                      NODEID:
                        type: integer
                        format: int64
                        description: Node Number
                      RETURNCODE:
                        type: string
                        maxLength: 255
                        description: 'Workflow Definition: Container Expression for Step Result'
                      RETURN_DSC:
                        type: string
                        maxLength: 60
                        description: Outcome
                      EVT_OTYPE:
                        type: string
                        maxLength: 32
                        description: Object Type
                      EVT_TYPE:
                        type: string
                        maxLength: 32
                        description: Event for object type
                      EVT_CONTEL:
                        type: string
                        maxLength: 255
                        description: Container element with object reference
                      SELECTED:
                        type: string
                        maxLength: 1
                        description: Internal ABAP System Field
                STEP_DESCRIPTION_TABLE:
                  type: array
                  items:
                    type: object
                    properties:
                      DESCRIPT:
                        type: string
                        maxLength: 80
                        description: Name of Step or Outcome
                      RETURNCODE:
                        type: string
                        maxLength: 255
                        description: Expression as comp. basis for multiple cond. and user dec.
              required:
              - STEP_DESCRIPTION
              - STEP_NODE_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_STEP_NODE_ID:
                    type: integer
                    format: int64
                    description: Table of Name Value Pairs
                  RESULT:
                    type: array
                    items:
                      type: object
                      properties:
                        NODEID:
                          type: integer
                          format: int64
                          description: Node Number
                        RETURNCODE:
                          type: string
                          maxLength: 255
                          description: 'Workflow Definition: Container Expression for Step Result'
                        RETURN_DSC:
                          type: string
                          maxLength: 60
                          description: Outcome
                        EVT_OTYPE:
                          type: string
                          maxLength: 32
                          description: Object Type
                        EVT_TYPE:
                          type: string
                          maxLength: 32
                          description: Event for object type
                        EVT_CONTEL:
                          type: string
                          maxLength: 255
                          description: Container element with object reference
                        SELECTED:
                          type: string
                          maxLength: 1
                          description: Internal ABAP System Field
                  STEP_DESCRIPTION_TABLE:
                    type: array
                    items:
                      type: object
                      properties:
                        DESCRIPT:
                          type: string
                          maxLength: 80
                          description: Name of Step or Outcome
                        RETURNCODE:
                          type: string
                          maxLength: 255
                          description: Expression as comp. basis for multiple cond. and user dec.
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
