openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWL_GET_PROTOCOL_EXTERN:
    post:
      tags:
      - SWL7
      summary: 'WLC: Einsammeln von Log-Daten einer Workflow-Instanz'
      operationId: /rfc/SWL_GET_PROTOCOL_EXTERN
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                WITH_ERRORS:
                  type: string
                  default: ' '
                  maxLength: 1
                WITH_FORMAT_MESSAGES:
                  type: string
                  default: ' '
                  maxLength: 1
                WITH_TASK_DATA:
                  type: string
                  default: ' '
                  maxLength: 1
                WITH_TECHDETAILS:
                  type: string
                  default: ' '
                  maxLength: 1
                WI_ID:
                  type: integer
                  format: int64
                ACTIONS_ON_WORKITEMS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      WI_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      WI_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Work item type  enumValues: E=Work Item that Waits for an Event (Wait Step),C=Work Item that Represents a Container Linkage,R=Work Item that Represents a Remote Work Item (http),F=Workflow (Also Subworkflow),X=Work Item that Represents a Block,B=Work Item for Background Step,A=Work Item that Represents a Work Queue,Q=Work Item that Represents a Dialog Block,W=Dialog Work Item; Represents a Single-Step Task,N=Notification Item (No Longer Used),P=Work Item that
                          Represents a Remote Work Item (Proxy WI),D=Deadline Work Item; Notification upon Missed Deadline'
                        enum:
                        - E
                        - C
                        - R
                        - F
                        - X
                        - B
                        - A
                        - Q
                        - W
                        - N
                        - P
                        - D
                      METH_USER:
                        type: string
                        maxLength: 12
                        description: User executing an action on a work item, sy-uname
                      AGT_ADRNAM:
                        type: string
                        maxLength: 40
                        description: Full name of agent
                      METHOD_NAM:
                        type: string
                        maxLength: 40
                        description: Description of Logged Function
                      METH_EDATE:
                        type: string
                        format: date
                        description: Date on which logged action terminated
                      METH_ETIME:
                        type: string
                        maxLength: 6
                        description: Time when logged action was terminated
                      PARA_NAM_1:
                        type: string
                        maxLength: 30
                        description: Name of import parameter
                      PARA_VAL_1:
                        type: string
                        maxLength: 90
                        description: Object ID
                      PARA_TYP_1:
                        type: string
                        maxLength: 20
                        description: Object processed in task
                      PARA_OUT_1:
                        type: string
                        maxLength: 90
                        description: Default attribute of object
                      PARA_OBJ_1:
                        type: string
                        maxLength: 1
                        description: 'Flag: Entry selected in list  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      PARA_NAM_2:
                        type: string
                        maxLength: 30
                        description: Name of import parameter
                      PARA_VAL_2:
                        type: string
                        maxLength: 90
                        description: Object ID
                      PARA_TYP_2:
                        type: string
                        maxLength: 20
                        description: Object processed in task
                      PARA_OUT_2:
                        type: string
                        maxLength: 90
                        description: Default attribute of object
                      PARA_OBJ_2:
                        type: string
                        maxLength: 1
                        description: 'Flag: Entry selected in list  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      CODE:
                        type: integer
                        format: int64
                        description: Exception for method
                      WORKAREA:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MSGTYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MESSAGE:
                        type: integer
                        format: int64
                        description: Message number
                      VARIABLE1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      METHOD:
                        type: string
                        maxLength: 30
                        description: 'WLC: FM name for display in WF log'
                      PM_ORDER:
                        type: integer
                        format: int64
                        description: Status Numbers for WIM Log Entries in WF Log
                      MESSAGEFTD:
                        type: string
                        maxLength: 255
                        description: 'SWL: Formatted message text'
                STEPS:
                  type: array
                  items:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: Client
                      WI_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      NODE_ID:
                        type: integer
                        format: int64
                        description: Node Number
                      WI_TEXT:
                        type: string
                        maxLength: 120
                        description: Work item text of task
                      WI_RH_TASK:
                        type: string
                        maxLength: 14
                        description: Task ID
                      WI_RHTEXT:
                        type: string
                        maxLength: 40
                        description: Short Text from Task
                      WI_TYPE:
                        type: string
                        maxLength: 1
                        description: 'Work item type  enumValues: E=Work Item that Waits for an Event (Wait Step),C=Work Item that Represents a Container Linkage,R=Work Item that Represents a Remote Work Item (http),F=Workflow (Also Subworkflow),X=Work Item that Represents a Block,B=Work Item for Background Step,A=Work Item that Represents a Work Queue,Q=Work Item that Represents a Dialog Block,W=Dialog Work Item; Represents a Single-Step Task,N=Notification Item (No Longer Used),P=Work Item that
                          Represents a Remote Work Item (Proxy WI),D=Deadline Work Item; Notification upon Missed Deadline'
                        enum:
                        - E
                        - C
                        - R
                        - F
                        - X
                        - B
                        - A
                        - Q
                        - W
                        - N
                        - P
                        - D
                      RESULT_TXT:
                        type: string
                        maxLength: 40
                        description: Result of workflow step
                      LOG_DATE:
                        type: string
                        format: date
                        description: Date on which logged action terminated
                      LOG_TIME:
                        type: string
                        maxLength: 6
                        description: Time when logged action was terminated
                      DURATION:
                        type: string
                        maxLength: 17
                        description: Processing duration of work item
                      STATUSTEXT:
                        type: string
                        maxLength: 20
                        description: Work item status text
                      WI_STAT:
                        type: string
                        maxLength: 12
                        description: 'Processing Status of a Work Item  enumValues: STARTED=In Process,CANCELLED=Logically Deleted,READY=Ready,EXCPHANDLR=Exception Being Handled,COMMITTED=Executed (Only If Expl. End Confirmation Is Expected),WAITING=Waiting (Also: Work Items in Resubmission),COMPLETED=Completed,ERROR=Error,EXCPCAUGHT=Exception Caught,CHECKED=In Preparation,SELECTED=Reserved'
                        enum:
                        - STARTED
                        - CANCELLED
                        - READY
                        - EXCPHANDLR
                        - COMMITTED
                        - WAITING
                        - COMPLETED
                        - ERROR
                        - EXCPCAUGHT
                        - CHECKED
                        - SELECTED
                      WF_ID:
                        type: integer
                        format: int64
                        description: Workflow ID
                      TOP_LVL_WF:
                        type: integer
                        format: int64
                        description: Workflow ID
                      NODE_CLASS:
                        type: string
                        maxLength: 1
                        description: 'Node Type  enumValues: D=DECISION,F=FORK,T=TRIGGER,X=BLOCKSTART,Y=BLOCKEND,E=ENDIF,J=JOIN,Z=DEAD END,S=STEP,C=CASE,P=Container operation (ADD, MULTIPLY, ...),V=VOID,I=IF,R=RECEIVER,O=CONTROL'
                        enum:
                        - D
                        - F
                        - T
                        - X
                        - Y
                        - E
                        - J
                        - Z
                        - S
                        - C
                        - P
                        - V
                        - I
                        - R
                        - O
                      WORKAREA:
                        type: string
                        maxLength: 20
                        description: Application Area
                      MESSAGE:
                        type: integer
                        format: int64
                        description: Message Number
                      ERRORTYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      VARIABLE1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      VARIABLE4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      REMOTE_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      REMOTE_SYS:
                        type: string
                        maxLength: 10
                        description: Logical system
                      MESSAGEFTD:
                        type: string
                        maxLength: 255
                        description: 'SWL: Formatted message text'
              required:
              - WI_ID
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACTIONS_ON_WORKITEMS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        WI_ID:
                          type: integer
                          format: int64
                          description: Work item ID
                        WI_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Work item type  enumValues: E=Work Item that Waits for an Event (Wait Step),C=Work Item that Represents a Container Linkage,R=Work Item that Represents a Remote Work Item (http),F=Workflow (Also Subworkflow),X=Work Item that Represents a Block,B=Work Item for Background Step,A=Work Item that Represents a Work Queue,Q=Work Item that Represents a Dialog Block,W=Dialog Work Item; Represents a Single-Step Task,N=Notification Item (No Longer Used),P=Work Item that
                            Represents a Remote Work Item (Proxy WI),D=Deadline Work Item; Notification upon Missed Deadline'
                          enum:
                          - E
                          - C
                          - R
                          - F
                          - X
                          - B
                          - A
                          - Q
                          - W
                          - N
                          - P
                          - D
                        METH_USER:
                          type: string
                          maxLength: 12
                          description: User executing an action on a work item, sy-uname
                        AGT_ADRNAM:
                          type: string
                          maxLength: 40
                          description: Full name of agent
                        METHOD_NAM:
                          type: string
                          maxLength: 40
                          description: Description of Logged Function
                        METH_EDATE:
                          type: string
                          format: date
                          description: Date on which logged action terminated
                        METH_ETIME:
                          type: string
                          maxLength: 6
                          description: Time when logged action was terminated
                        PARA_NAM_1:
                          type: string
                          maxLength: 30
                          description: Name of import parameter
                        PARA_VAL_1:
                          type: string
                          maxLength: 90
                          description: Object ID
                        PARA_TYP_1:
                          type: string
                          maxLength: 20
                          description: Object processed in task
                        PARA_OUT_1:
                          type: string
                          maxLength: 90
                          description: Default attribute of object
                        PARA_OBJ_1:
                          type: string
                          maxLength: 1
                          description: 'Flag: Entry selected in list  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        PARA_NAM_2:
                          type: string
                          maxLength: 30
                          description: Name of import parameter
                        PARA_VAL_2:
                          type: string
                          maxLength: 90
                          description: Object ID
                        PARA_TYP_2:
                          type: string
                          maxLength: 20
                          description: Object processed in task
                        PARA_OUT_2:
                          type: string
                          maxLength: 90
                          description: Default attribute of object
                        PARA_OBJ_2:
                          type: string
                          maxLength: 1
                          description: 'Flag: Entry selected in list  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        CODE:
                          type: integer
                          format: int64
                          description: Exception for method
                        WORKAREA:
                          type: string
                          maxLength: 20
                          description: Application Area
                        MSGTYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MESSAGE:
                          type: integer
                          format: int64
                          description: Message number
                        VARIABLE1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VARIABLE2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VARIABLE3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VARIABLE4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        METHOD:
                          type: string
                          maxLength: 30
                          description: 'WLC: FM name for display in WF log'
                        PM_ORDER:
                          type: integer
                          format: int64
                          description: Status Numbers for WIM Log Entries in WF Log
                        MESSAGEFTD:
                          type: string
                          maxLength: 255
                          description: 'SWL: Formatted message text'
                  STEPS:
                    type: array
                    items:
                      type: object
                      properties:
                        CLIENT:
                          type: string
                          maxLength: 3
                          description: Client
                        WI_ID:
                          type: integer
                          format: int64
                          description: Work item ID
                        NODE_ID:
                          type: integer
                          format: int64
                          description: Node Number
                        WI_TEXT:
                          type: string
                          maxLength: 120
                          description: Work item text of task
                        WI_RH_TASK:
                          type: string
                          maxLength: 14
                          description: Task ID
                        WI_RHTEXT:
                          type: string
                          maxLength: 40
                          description: Short Text from Task
                        WI_TYPE:
                          type: string
                          maxLength: 1
                          description: 'Work item type  enumValues: E=Work Item that Waits for an Event (Wait Step),C=Work Item that Represents a Container Linkage,R=Work Item that Represents a Remote Work Item (http),F=Workflow (Also Subworkflow),X=Work Item that Represents a Block,B=Work Item for Background Step,A=Work Item that Represents a Work Queue,Q=Work Item that Represents a Dialog Block,W=Dialog Work Item; Represents a Single-Step Task,N=Notification Item (No Longer Used),P=Work Item that
                            Represents a Remote Work Item (Proxy WI),D=Deadline Work Item; Notification upon Missed Deadline'
                          enum:
                          - E
                          - C
                          - R
                          - F
                          - X
                          - B
                          - A
                          - Q
                          - W
                          - N
                          - P
                          - D
                        RESULT_TXT:
                          type: string
                          maxLength: 40
                          description: Result of workflow step
                        LOG_DATE:
                          type: string
                          format: date
                          description: Date on which logged action terminated
                        LOG_TIME:
                          type: string
                          maxLength: 6
                          description: Time when logged action was terminated
                        DURATION:
                          type: string
                          maxLength: 17
                          description: Processing duration of work item
                        STATUSTEXT:
                          type: string
                          maxLength: 20
                          description: Work item status text
                        WI_STAT:
                          type: string
                          maxLength: 12
                          description: 'Processing Status of a Work Item  enumValues: STARTED=In Process,CANCELLED=Logically Deleted,READY=Ready,EXCPHANDLR=Exception Being Handled,COMMITTED=Executed (Only If Expl. End Confirmation Is Expected),WAITING=Waiting (Also: Work Items in Resubmission),COMPLETED=Completed,ERROR=Error,EXCPCAUGHT=Exception Caught,CHECKED=In Preparation,SELECTED=Reserved'
                          enum:
                          - STARTED
                          - CANCELLED
                          - READY
                          - EXCPHANDLR
                          - COMMITTED
                          - WAITING
                          - COMPLETED
                          - ERROR
                          - EXCPCAUGHT
                          - CHECKED
                          - SELECTED
                        WF_ID:
                          type: integer
                          format: int64
                          description: Workflow ID
                        TOP_LVL_WF:
                          type: integer
                          format: int64
                          description: Workflow ID
                        NODE_CLASS:
                          type: string
                          maxLength: 1
                          description: 'Node Type  enumValues: D=DECISION,F=FORK,T=TRIGGER,X=BLOCKSTART,Y=BLOCKEND,E=ENDIF,J=JOIN,Z=DEAD END,S=STEP,C=CASE,P=Container operation (ADD, MULTIPLY, ...),V=VOID,I=IF,R=RECEIVER,O=CONTROL'
                          enum:
                          - D
                          - F
                          - T
                          - X
                          - Y
                          - E
                          - J
                          - Z
                          - S
                          - C
                          - P
                          - V
                          - I
                          - R
                          - O
                        WORKAREA:
                          type: string
                          maxLength: 20
                          description: Application Area
                        MESSAGE:
                          type: integer
                          format: int64
                          description: Message Number
                        ERRORTYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        VARIABLE1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VARIABLE2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VARIABLE3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        VARIABLE4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        REMOTE_ID:
                          type: integer
                          format: int64
                          description: Work item ID
                        REMOTE_SYS:
                          type: string
                          maxLength: 10
                          description: Logical system
                        MESSAGEFTD:
                          type: string
                          maxLength: 255
                          description: 'SWL: Formatted message text'
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
