openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/RSPC_API_CHAIN_GET_PROCESSES:
    post:
      tags:
      - RSPC_API
      operationId: /rfc/RSPC_API_CHAIN_GET_PROCESSES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                I_CHAIN:
                  type: string
                  maxLength: 25
                I_LOGID:
                  type: string
                  maxLength: 25
                E_T_PROCESSLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      CHAIN_ID:
                        type: string
                        maxLength: 25
                        description: Process Chain
                      EVENT_START:
                        type: string
                        maxLength: 32
                        description: Background Processing Event
                      EVENTP_START:
                        type: string
                        maxLength: 64
                        description: Background Event Parameters (Such as, Jobname/Jobcount)
                      EVENTNO_START:
                        type: integer
                        format: int64
                        description: Status; Case; Decision; Event Number
                      BACKLINK_START:
                        type: string
                        maxLength: 1
                        description: 'Back-Link Event  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      TYPE:
                        type: string
                        maxLength: 10
                        description: Process Type
                      VARIANTE:
                        type: string
                        maxLength: 30
                        description: Process Variant (Name)
                      PREDECESSOR:
                        type: string
                        maxLength: 1
                        description: 'Process has run already -> INSTANCE / PLANNED filled  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      INSTANCE:
                        type: string
                        maxLength: 30
                        description: Process Instance (Value)
                      STATE:
                        type: string
                        maxLength: 1
                        description: 'Status of Process  enumValues: Y=Ready,""=Undefined,A=Active,Q=Released,R=Ended with errors,G=Successfully completed,F=Completed,X=Canceled,S=Skipped at restart,P=Planned,J=Framework Error Upon Completion (e.g. follow-on job missing)'
                        enum:
                        - Y
                        - ''
                        - A
                        - Q
                        - R
                        - G
                        - F
                        - X
                        - S
                        - P
                        - J
                      EVENT_END:
                        type: string
                        maxLength: 32
                        description: Background Processing Event
                      EVENTP_END:
                        type: string
                        maxLength: 64
                        description: Background Event Parameters (Such as, Jobname/Jobcount)
                      BACKLINK_END:
                        type: string
                        maxLength: 1
                        description: 'Back-Link Event  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      ACTUAL_STATE:
                        type: string
                        maxLength: 1
                        description: 'Status of Process  enumValues: Y=Ready,""=Undefined,A=Active,Q=Released,R=Ended with errors,G=Successfully completed,F=Completed,X=Canceled,S=Skipped at restart,P=Planned,J=Framework Error Upon Completion (e.g. follow-on job missing)'
                        enum:
                        - Y
                        - ''
                        - A
                        - Q
                        - R
                        - G
                        - F
                        - X
                        - S
                        - P
                        - J
                      EVENT_GREEN:
                        type: string
                        maxLength: 32
                        description: Background Processing Event
                      EVENTP_GREEN:
                        type: string
                        maxLength: 64
                        description: Background Event Parameters (Such as, Jobname/Jobcount)
                      BACKLINK_GREEN:
                        type: string
                        maxLength: 1
                        description: 'Back-Link Event  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      EVENT_RED:
                        type: string
                        maxLength: 32
                        description: Background Processing Event
                      EVENTP_RED:
                        type: string
                        maxLength: 64
                        description: Background Event Parameters (Such as, Jobname/Jobcount)
                      BACKLINK_RED:
                        type: string
                        maxLength: 1
                        description: 'Back-Link Event  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      GREEN_EQ_RED:
                        type: string
                        maxLength: 1
                        description: 'Send Green Event Even with Errors  enumValues: X=True,""=False'
                        enum:
                        - X
                        - ''
                      WAIT:
                        type: integer
                        format: int32
                        description: Seconds
                      STARTTIMESTAMP:
                        type: integer
                        format: int64
                        description: UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
                      ENDTIMESTAMP:
                        type: integer
                        format: int64
                        description: UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
                      JOB_COUNT:
                        type: string
                        maxLength: 8
                        description: Job ID
              required:
              - I_CHAIN
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  E_T_PROCESSLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        CHAIN_ID:
                          type: string
                          maxLength: 25
                          description: Process Chain
                        EVENT_START:
                          type: string
                          maxLength: 32
                          description: Background Processing Event
                        EVENTP_START:
                          type: string
                          maxLength: 64
                          description: Background Event Parameters (Such as, Jobname/Jobcount)
                        EVENTNO_START:
                          type: integer
                          format: int64
                          description: Status; Case; Decision; Event Number
                        BACKLINK_START:
                          type: string
                          maxLength: 1
                          description: 'Back-Link Event  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                        TYPE:
                          type: string
                          maxLength: 10
                          description: Process Type
                        VARIANTE:
                          type: string
                          maxLength: 30
                          description: Process Variant (Name)
                        PREDECESSOR:
                          type: string
                          maxLength: 1
                          description: 'Process has run already -> INSTANCE / PLANNED filled  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                        INSTANCE:
                          type: string
                          maxLength: 30
                          description: Process Instance (Value)
                        STATE:
                          type: string
                          maxLength: 1
                          description: 'Status of Process  enumValues: Y=Ready,""=Undefined,A=Active,Q=Released,R=Ended with errors,G=Successfully completed,F=Completed,X=Canceled,S=Skipped at restart,P=Planned,J=Framework Error Upon Completion (e.g. follow-on job missing)'
                          enum:
                          - Y
                          - ''
                          - A
                          - Q
                          - R
                          - G
                          - F
                          - X
                          - S
                          - P
                          - J
                        EVENT_END:
                          type: string
                          maxLength: 32
                          description: Background Processing Event
                        EVENTP_END:
                          type: string
                          maxLength: 64
                          description: Background Event Parameters (Such as, Jobname/Jobcount)
                        BACKLINK_END:
                          type: string
                          maxLength: 1
                          description: 'Back-Link Event  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                        ACTUAL_STATE:
                          type: string
                          maxLength: 1
                          description: 'Status of Process  enumValues: Y=Ready,""=Undefined,A=Active,Q=Released,R=Ended with errors,G=Successfully completed,F=Completed,X=Canceled,S=Skipped at restart,P=Planned,J=Framework Error Upon Completion (e.g. follow-on job missing)'
                          enum:
                          - Y
                          - ''
                          - A
                          - Q
                          - R
                          - G
                          - F
                          - X
                          - S
                          - P
                          - J
                        EVENT_GREEN:
                          type: string
                          maxLength: 32
                          description: Background Processing Event
                        EVENTP_GREEN:
                          type: string
                          maxLength: 64
                          description: Background Event Parameters (Such as, Jobname/Jobcount)
                        BACKLINK_GREEN:
                          type: string
                          maxLength: 1
                          description: 'Back-Link Event  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                        EVENT_RED:
                          type: string
                          maxLength: 32
                          description: Background Processing Event
                        EVENTP_RED:
                          type: string
                          maxLength: 64
                          description: Background Event Parameters (Such as, Jobname/Jobcount)
                        BACKLINK_RED:
                          type: string
                          maxLength: 1
                          description: 'Back-Link Event  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                        GREEN_EQ_RED:
                          type: string
                          maxLength: 1
                          description: 'Send Green Event Even with Errors  enumValues: X=True,""=False'
                          enum:
                          - X
                          - ''
                        WAIT:
                          type: integer
                          format: int32
                          description: Seconds
                        STARTTIMESTAMP:
                          type: integer
                          format: int64
                          description: UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
                        ENDTIMESTAMP:
                          type: integer
                          format: int64
                          description: UTC time stamp in long form (YYYYMMDDhhmmss,mmmuuun)
                        JOB_COUNT:
                          type: string
                          maxLength: 8
                          description: Job ID
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
