openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SAP_WAPI_GET_WI_DELTA:
    post:
      tags:
      - SWRW
      operationId: /rfc/SAP_WAPI_GET_WI_DELTA
      requestBody:
        content:
          application/json:
            schema:
              properties:
                LANGUAGE:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                  description: SAP R/3 System, Current Language
                TIMESTAMP:
                  type: integer
                  format: int64
                  description: UTC time stamp in long form (YYYYMMDDhhmmssmmmuuun)
                MESSAGE_LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      MSG_TYPE:
                        type: string
                        maxLength: 1
                        description: Message Type
                      LINE:
                        type: string
                        maxLength: 273
                        description: Text line for message
                MESSAGE_STRUCT:
                  type: array
                  items:
                    type: object
                    properties:
                      MSGID:
                        type: string
                        maxLength: 20
                        description: Message Class
                      MSGTY:
                        type: string
                        maxLength: 1
                        description: Message Type
                      MSGNO:
                        type: integer
                        format: int64
                        description: Message Number
                      MSGV1:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV2:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV3:
                        type: string
                        maxLength: 50
                        description: Message Variable
                      MSGV4:
                        type: string
                        maxLength: 50
                        description: Message Variable
                TASK_FILTER:
                  type: array
                  items:
                    type: object
                    properties:
                      WI_RH_TASK:
                        type: string
                        maxLength: 14
                        description: Task ID
                WORKITEMS_LAST_ACTION:
                  type: array
                  items:
                    type: object
                    properties:
                      WIID:
                        type: integer
                        format: int64
                        description: Work item ID
                      TIMESTAMP:
                        type: integer
                        format: int64
                        description: UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
                      ACTION:
                        type: integer
                        format: int64
                        description: 'WAPI: Action on Work Item  enumValues: 004=Replace,001=Forwarded,002=Completed,005=Resubmit,003=Accepted,006=Created'
                        enum:
                        - '004'
                        - '001'
                        - '002'
                        - '005'
                        - '003'
                        - '006'
                WORKLIST:
                  type: array
                  items:
                    type: object
                    properties:
                      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
                      WI_CREATOR:
                        type: string
                        maxLength: 90
                        description: Creator of a work item
                      WI_LANG:
                        type: string
                        maxLength: 1
                        description: Language for Texts of a Work Item
                      WI_TEXT:
                        type: string
                        maxLength: 120
                        description: Work Item Text
                      WI_RHTEXT:
                        type: string
                        maxLength: 40
                        description: Short Text from Task
                      WI_CD:
                        type: string
                        format: date
                        description: Creation Date of Work Item
                      WI_CT:
                        type: string
                        maxLength: 6
                        description: Creation Time of Work Item
                      WI_AAGENT:
                        type: string
                        maxLength: 12
                        description: Actual Agent of Work Item
                      WI_CHCKWI:
                        type: integer
                        format: int64
                        description: Superordinate Work Item
                      WI_RH_TASK:
                        type: string
                        maxLength: 14
                        description: Task ID
                      WI_PRIO:
                        type: integer
                        format: int64
                        description: 'Priority of a Work Item  enumValues: 1=1 Highest - Express,6=6 Low,3=3 Higher,9=9 Lowest,8=8 Very low,5=5 Medium,7=7 Lower,2=2 Very high,4=4 High'
                        enum:
                        - '1'
                        - '6'
                        - '3'
                        - '9'
                        - '8'
                        - '5'
                        - '7'
                        - '2'
                        - '4'
                      WI_CONFIRM:
                        type: string
                        maxLength: 1
                        description: 'Indicator showing that end of processing must be confirmed  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      WI_REJECT:
                        type: string
                        maxLength: 1
                        description: 'Indicator Denoting that Work Item Can Be Rejected by Agent  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      WI_FORW_BY:
                        type: string
                        maxLength: 12
                        description: (Last) forwarder of work item
                      WI_DISABLE:
                        type: string
                        maxLength: 1
                        description: 'Flag: Work item is currently locked  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      STATUSTEXT:
                        type: string
                        maxLength: 20
                        description: 'Workflow: Work Item Status'
                      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
                      WI_LED:
                        type: string
                        format: date
                        description: Latest End Date for Work Item
                      WI_LET:
                        type: string
                        maxLength: 6
                        description: Latest end time for work item
                      TYPETEXT:
                        type: string
                        maxLength: 20
                        description: Work Item Type
                      TCLASS:
                        type: string
                        maxLength: 12
                        description: Classification of Tasks
                      NOTE_EXIST:
                        type: string
                        maxLength: 1
                        description: 'Indicator Denoting that At Least One Note Exists for the WI  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      WI_DH_STAT:
                        type: integer
                        format: int64
                        description: 'Deadline Status of a Work Item  enumValues: 8996=Latest Start,8990=Requested Start,8998=Latest End,0000=Deadline Not Yet Reached,8997=Requested End'
                        enum:
                        - '8996'
                        - '8990'
                        - '8998'
                        - '0000'
                        - '8997'
                      DHSTATEXT:
                        type: string
                        maxLength: 20
                        description: 'Workflow: Work Item Status'
                      NO_EXECUTE:
                        type: string
                        maxLength: 1
                        description: 'Work item may not be executed by user specified  enumValues: ""=Not Selected,X=Selected'
                        enum:
                        - ''
                        - X
                      WI_RELEASE:
                        type: string
                        maxLength: 4
                        description: Release Status of SAP System
                      WI_CD_FTD:
                        type: string
                        maxLength: 20
                        description: Creation date of work item (formatted)
                      WI_CT_FTD:
                        type: string
                        maxLength: 20
                        description: Creation time of work item (formatted)
                      WI_LED_FTD:
                        type: string
                        maxLength: 20
                        description: Latest end date of a work item (formatted)
                      WI_LET_FTD:
                        type: string
                        maxLength: 20
                        description: Latest End Time of a Work Item (Formatted)
                      WI_AA_NAME:
                        type: string
                        maxLength: 40
                        description: Name of Actual Agent
                      DEF_GUID:
                        type: string
                        maxLength: 40
                        description: 'Workflow: Unique ID of Step Definition (6.1/get)'
                      WI_CRTTS:
                        type: integer
                        format: int64
                        description: 'WAPI: TimeStamp for Creation'
                      NOTE_COUNT:
                        type: integer
                        format: int32
                        description: Number of Attachments
                      WI_COMP_EV:
                        type: string
                        maxLength: 1
                        description: 'Indicator Denoting That Completion By Event Is Possible  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      PROCCAT:
                        type: string
                        maxLength: 10
                        description: 'Process Category  enumValues: ""=Business Workflow,CCBPM=Cross-Component BPM,GP=Guided Procedure'
                        enum:
                        - ''
                        - CCBPM
                        - GP
              required:
              - LANGUAGE
              - TIMESTAMP
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  NEW_TIMESTAMP:
                    type: integer
                    format: int64
                    description: UTC time stamp in long form (YYYYMMDDhhmmssmmmuuun)
                  RETURN_CODE:
                    type: integer
                    format: int32
                    description: Return code (0,999)
                  WORKITEMS_COUNT:
                    type: integer
                    format: int32
                  MESSAGE_LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        MSG_TYPE:
                          type: string
                          maxLength: 1
                          description: Message Type
                        LINE:
                          type: string
                          maxLength: 273
                          description: Text line for message
                  MESSAGE_STRUCT:
                    type: array
                    items:
                      type: object
                      properties:
                        MSGID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        MSGTY:
                          type: string
                          maxLength: 1
                          description: Message Type
                        MSGNO:
                          type: integer
                          format: int64
                          description: Message Number
                        MSGV1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MSGV4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                  TASK_FILTER:
                    type: array
                    items:
                      type: object
                      properties:
                        WI_RH_TASK:
                          type: string
                          maxLength: 14
                          description: Task ID
                  WORKITEMS_LAST_ACTION:
                    type: array
                    items:
                      type: object
                      properties:
                        WIID:
                          type: integer
                          format: int64
                          description: Work item ID
                        TIMESTAMP:
                          type: integer
                          format: int64
                          description: UTC Time Stamp in Long Form (YYYYMMDDhhmmssmmmuuun)
                        ACTION:
                          type: integer
                          format: int64
                          description: 'WAPI: Action on Work Item  enumValues: 004=Replace,001=Forwarded,002=Completed,005=Resubmit,003=Accepted,006=Created'
                          enum:
                          - '004'
                          - '001'
                          - '002'
                          - '005'
                          - '003'
                          - '006'
                  WORKLIST:
                    type: array
                    items:
                      type: object
                      properties:
                        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
                        WI_CREATOR:
                          type: string
                          maxLength: 90
                          description: Creator of a work item
                        WI_LANG:
                          type: string
                          maxLength: 1
                          description: Language for Texts of a Work Item
                        WI_TEXT:
                          type: string
                          maxLength: 120
                          description: Work Item Text
                        WI_RHTEXT:
                          type: string
                          maxLength: 40
                          description: Short Text from Task
                        WI_CD:
                          type: string
                          format: date
                          description: Creation Date of Work Item
                        WI_CT:
                          type: string
                          maxLength: 6
                          description: Creation Time of Work Item
                        WI_AAGENT:
                          type: string
                          maxLength: 12
                          description: Actual Agent of Work Item
                        WI_CHCKWI:
                          type: integer
                          format: int64
                          description: Superordinate Work Item
                        WI_RH_TASK:
                          type: string
                          maxLength: 14
                          description: Task ID
                        WI_PRIO:
                          type: integer
                          format: int64
                          description: 'Priority of a Work Item  enumValues: 1=1 Highest - Express,6=6 Low,3=3 Higher,9=9 Lowest,8=8 Very low,5=5 Medium,7=7 Lower,2=2 Very high,4=4 High'
                          enum:
                          - '1'
                          - '6'
                          - '3'
                          - '9'
                          - '8'
                          - '5'
                          - '7'
                          - '2'
                          - '4'
                        WI_CONFIRM:
                          type: string
                          maxLength: 1
                          description: 'Indicator showing that end of processing must be confirmed  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        WI_REJECT:
                          type: string
                          maxLength: 1
                          description: 'Indicator Denoting that Work Item Can Be Rejected by Agent  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        WI_FORW_BY:
                          type: string
                          maxLength: 12
                          description: (Last) forwarder of work item
                        WI_DISABLE:
                          type: string
                          maxLength: 1
                          description: 'Flag: Work item is currently locked  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        STATUSTEXT:
                          type: string
                          maxLength: 20
                          description: 'Workflow: Work Item Status'
                        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
                        WI_LED:
                          type: string
                          format: date
                          description: Latest End Date for Work Item
                        WI_LET:
                          type: string
                          maxLength: 6
                          description: Latest end time for work item
                        TYPETEXT:
                          type: string
                          maxLength: 20
                          description: Work Item Type
                        TCLASS:
                          type: string
                          maxLength: 12
                          description: Classification of Tasks
                        NOTE_EXIST:
                          type: string
                          maxLength: 1
                          description: 'Indicator Denoting that At Least One Note Exists for the WI  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        WI_DH_STAT:
                          type: integer
                          format: int64
                          description: 'Deadline Status of a Work Item  enumValues: 8996=Latest Start,8990=Requested Start,8998=Latest End,0000=Deadline Not Yet Reached,8997=Requested End'
                          enum:
                          - '8996'
                          - '8990'
                          - '8998'
                          - '0000'
                          - '8997'
                        DHSTATEXT:
                          type: string
                          maxLength: 20
                          description: 'Workflow: Work Item Status'
                        NO_EXECUTE:
                          type: string
                          maxLength: 1
                          description: 'Work item may not be executed by user specified  enumValues: ""=Not Selected,X=Selected'
                          enum:
                          - ''
                          - X
                        WI_RELEASE:
                          type: string
                          maxLength: 4
                          description: Release Status of SAP System
                        WI_CD_FTD:
                          type: string
                          maxLength: 20
                          description: Creation date of work item (formatted)
                        WI_CT_FTD:
                          type: string
                          maxLength: 20
                          description: Creation time of work item (formatted)
                        WI_LED_FTD:
                          type: string
                          maxLength: 20
                          description: Latest end date of a work item (formatted)
                        WI_LET_FTD:
                          type: string
                          maxLength: 20
                          description: Latest End Time of a Work Item (Formatted)
                        WI_AA_NAME:
                          type: string
                          maxLength: 40
                          description: Name of Actual Agent
                        DEF_GUID:
                          type: string
                          maxLength: 40
                          description: 'Workflow: Unique ID of Step Definition (6.1/get)'
                        WI_CRTTS:
                          type: integer
                          format: int64
                          description: 'WAPI: TimeStamp for Creation'
                        NOTE_COUNT:
                          type: integer
                          format: int32
                          description: Number of Attachments
                        WI_COMP_EV:
                          type: string
                          maxLength: 1
                          description: 'Indicator Denoting That Completion By Event Is Possible  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        PROCCAT:
                          type: string
                          maxLength: 10
                          description: 'Process Category  enumValues: ""=Business Workflow,CCBPM=Cross-Component BPM,GP=Guided Procedure'
                          enum:
                          - ''
                          - CCBPM
                          - GP
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
