openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWF_CREATE_CONTROL:
    post:
      tags:
      - SWF1
      operationId: /rfc/SWF_CREATE_CONTROL
      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
                    CONT_CMD:
                      type: integer
                      format: int64
                      description: 'Workflow definition: Workflow control  enumValues: 12=Function: Allocate,01=Process control: Cancel work item,13=Function: Substract,11=Function: Add,09=Process Control: Calculate Correlation,15=Function: Divide,14=Function: Multiply,18=Function: Append,02=Flow control: Cancel workflow'
                      enum:
                      - '12'
                      - '01'
                      - '13'
                      - '11'
                      - '09'
                      - '15'
                      - '14'
                      - '18'
                      - '02'
                    CONCMD_TXT:
                      type: string
                      maxLength: 40
                      description: Name of control command
                    PARAMETER1:
                      type: string
                      maxLength: 255
                      description: First parameter with expression for user decision
                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_STEP_NODE_ID:
                    type: integer
                    format: int64
                    description: Table of Name Value Pairs
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
