openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWF_CREATE_BLOCK:
    post:
      tags:
      - SWF1
      operationId: /rfc/SWF_CREATE_BLOCK
      requestBody:
        content:
          application/json:
            schema:
              properties:
                BLOCK_DEADLINES:
                  type: object
                  properties:
                    DES_ST_B:
                      type: string
                      maxLength: 3
                      description: 'Reference date/time for requested start  enumValues: ""=No Deadline Monitoring Active,EXP=Expression,WIS=Work Item Creation,WFS=Workflow Creation'
                      enum:
                      - ''
                      - EXP
                      - WIS
                      - WFS
                    DES_ST_U:
                      type: string
                      maxLength: 3
                      description: Time Unit
                    DES_ST_O:
                      type: integer
                      format: int32
                      description: Offset between reference time and missed deadline
                    DES_ET_EXP:
                      type: string
                      maxLength: 255
                      description: Expression for requested end (time)
                    DES_ED_EXP:
                      type: string
                      maxLength: 255
                      description: Expression for requested end (date)
                    LASTR_EXPR:
                      type: string
                      maxLength: 255
                      description: Notification Agent for Latest Start
                    LATST_STRT:
                      type: string
                      maxLength: 80
                      description: 'Outcome Name: Latest Start'
                    LATE_ST_B:
                      type: string
                      maxLength: 3
                      description: 'Reference date/time for latest start  enumValues: ""=No Deadline Monitoring Active,EXP=Expression,WIS=Work Item Creation,WFS=Workflow Creation'
                      enum:
                      - ''
                      - EXP
                      - WIS
                      - WFS
                    LATE_ST_U:
                      type: string
                      maxLength: 3
                      description: Time Unit
                    LATE_ST_O:
                      type: integer
                      format: int32
                      description: Offset between reference time and missed deadline
                    LAT_ST_EXP:
                      type: string
                      maxLength: 255
                      description: Expression for latest start (time)
                    LAT_SD_EXP:
                      type: string
                      maxLength: 255
                      description: Expression for latest start (date)
                    DEAD_EXPR:
                      type: string
                      maxLength: 255
                      description: Notification Agent for Latest End
                    DESIR_END:
                      type: string
                      maxLength: 80
                      description: Outcome after requested end
                    DES_END_B:
                      type: string
                      maxLength: 3
                      description: 'Reference date/time for requested end  enumValues: ""=No Deadline Monitoring Active,EXP=Expression,WIS=Work Item Creation,WFS=Workflow Creation'
                      enum:
                      - ''
                      - EXP
                      - WIS
                      - WFS
                    DES_END_U:
                      type: string
                      maxLength: 3
                      description: Time Unit
                    DES_END_O:
                      type: integer
                      format: int32
                      description: Offset between reference time and missed deadline
                    DES_ST_EXP:
                      type: string
                      maxLength: 255
                      description: Expression for requested start (time)
                    DES_SD_EXP:
                      type: string
                      maxLength: 255
                      description: Expression for requested start (date)
                    DEEND_EXPR:
                      type: string
                      maxLength: 255
                      description: Notification Agent for Deadline Monitoring
                    LATST_END:
                      type: string
                      maxLength: 80
                      description: 'Outcome Name: Latest End'
                    LATE_END_B:
                      type: string
                      maxLength: 3
                      description: 'Reference Date/Time for Latest End  enumValues: ""=No Deadline Monitoring Active,EXP=Expression,WIS=Work Item Creation,WFS=Workflow Creation'
                      enum:
                      - ''
                      - EXP
                      - WIS
                      - WFS
                    LATE_END_U:
                      type: string
                      maxLength: 3
                      description: Time Unit
                    LATE_END_O:
                      type: integer
                      format: int32
                      description: Offset between reference time and missed deadline
                    LAT_ET_EXP:
                      type: string
                      maxLength: 255
                      description: Expression for Latest End
                    LAT_ED_EXP:
                      type: string
                      maxLength: 255
                      description: Expression for latest end (date)
                BLOCK_EXCEPTIONS:
                  type: array
                  items:
                    type: object
                    properties:
                      NAME:
                        type: string
                        maxLength: 30
                        description: Name of Local Event
                      STATE:
                        type: integer
                        format: int64
                        description: Status of Local Event/Exception
                      CONTAINER:
                        type: array
                        items:
                          type: object
                          properties:
                            EDITELEM:
                              type: string
                              maxLength: 32
                              description: Element name in upper/lower case
                            DESCRIPT:
                              type: string
                              maxLength: 20
                              description: Name
                            SHORTTEXT:
                              type: string
                              maxLength: 80
                              description: Description
                            TABELEM:
                              type: string
                              maxLength: 1
                              description: Multiline element
                            REFTYPE:
                              type: string
                              maxLength: 1
                              description: Dictionary
                            REFSTRUCT:
                              type: string
                              maxLength: 30
                              description: Reference table
                            REFFIELD:
                              type: string
                              maxLength: 30
                              description: Reference field
                            MCODE:
                              type: string
                              maxLength: 30
                              description: Search Help (Formerly Matchcode)
                            REFOBJTYPE:
                              type: string
                              maxLength: 32
                              description: Type of Objects in Persistent Object References
                            REFOBJCAT:
                              type: string
                              maxLength: 2
                              description: Category of Objects in Persistent Object References
                            ELEMTYPE:
                              type: string
                              maxLength: 1
                              description: Element type
                            OBLIGIMP:
                              type: string
                              maxLength: 1
                              description: Required
                            DDIC:
                              type: string
                              maxLength: 80
                              description: Text (80 Characters)
                CONTAINER_ELEMENTS:
                  type: array
                  items:
                    type: object
                    properties:
                      EDITELEM:
                        type: string
                        maxLength: 32
                        description: Element name in upper/lower case
                      DESCRIPT:
                        type: string
                        maxLength: 20
                        description: Name
                      SHORTTEXT:
                        type: string
                        maxLength: 80
                        description: Description
                      TABELEM:
                        type: string
                        maxLength: 1
                        description: Multiline element
                      REFTYPE:
                        type: string
                        maxLength: 1
                        description: Dictionary
                      REFSTRUCT:
                        type: string
                        maxLength: 30
                        description: Reference table
                      REFFIELD:
                        type: string
                        maxLength: 30
                        description: Reference field
                      MCODE:
                        type: string
                        maxLength: 30
                        description: Search Help (Formerly Matchcode)
                      REFOBJTYPE:
                        type: string
                        maxLength: 32
                        description: Type of Objects in Persistent Object References
                      REFOBJCAT:
                        type: string
                        maxLength: 2
                        description: Category of Objects in Persistent Object References
                      ELEMTYPE:
                        type: string
                        maxLength: 1
                        description: Element type
                      OBLIGIMP:
                        type: string
                        maxLength: 1
                        description: Required
                      DDIC:
                        type: string
                        maxLength: 80
                        description: Text (80 Characters)
                STEP_DESCRIPTION:
                  type: object
                  properties:
                    DESCRIPT:
                      type: string
                      maxLength: 80
                      description: Name of Step or Outcome
                    DESCR_SUCC:
                      type: string
                      maxLength: 80
                      description: Outcome Name
                    PARFORFLAG:
                      type: string
                      maxLength: 1
                      description: 'Flag for table-controled parallel processing  enumValues: ""=No,X=Yes'
                      enum:
                      - ''
                      - X
                    PARFOROBJ:
                      type: string
                      maxLength: 255
                      description: Multiline container element
                    PARFORTEXT:
                      type: string
                      maxLength: 80
                      description: 'Workflow definition: Short text for ParForEach element'
                    BLCKTYPE:
                      type: string
                      maxLength: 1
                      description: 'Block Type  enumValues: P=ParForEach,""=Standard,S=ForEach'
                      enum:
                      - P
                      - ''
                      - S
                    BLCK_DLG:
                      type: string
                      maxLength: 1
                      description: 'Block Appears as Dialog Step in Inbox (GP)  enumValues: ""=Default Background Processing,X=Guided Procedures Action Set'
                      enum:
                      - ''
                      - X
                    TASK:
                      type: string
                      maxLength: 14
                      description: Task abbreviation
                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
              required:
              - STEP_DESCRIPTION
              - STEP_NODE_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_BLOCK_ID:
                    type: integer
                    format: int64
                    description: 'WF: Process step       - TERMINATION'
                  NEW_STEP_NODE_ID:
                    type: integer
                    format: int64
                    description: 'WF: Process step       - TERMINATION'
                  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
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
