openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWF_CREATE_CORRELATION:
    post:
      tags:
      - SWF1
      operationId: /rfc/SWF_CREATE_CORRELATION
      requestBody:
        content:
          application/json:
            schema:
              properties:
                STEP_DESCRIPTION:
                  type: object
                  properties:
                    DESCRIPT:
                      type: string
                      maxLength: 80
                      description: Name of Step or Outcome
                    DESCR_SUCC:
                      type: string
                      maxLength: 80
                      description: Name of Step or Outcome
                    CRL_NAME:
                      type: string
                      maxLength: 22
                      description: Name of a Correlation
                    EVT_NAME:
                      type: string
                      maxLength: 32
                      description: Symbolic Event Name
                    CRL_EXPR:
                      type: string
                      maxLength: 255
                      description: Correlation Instance
                    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'
              required:
              - STEP_DESCRIPTION
              - STEP_NODE_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_BLOCK_ID:
                    type: integer
                    format: int64
                    description: Node Number
                  NEW_STEP_NODE_ID:
                    type: integer
                    format: int64
                    description: Table of Name Value Pairs
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
