openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/S_OSP_WF_GET_STAT_ACTN_INFO:
    post:
      tags:
      - S_OSP_WF_PATTERN_RUNTIME
      summary: FM to get all the applications
      operationId: /rfc/S_OSP_WF_GET_STAT_ACTN_INFO
      requestBody:
        content:
          application/json:
            schema:
              properties:
                IT_WORKITEM_DETAILS:
                  type: array
                  items:
                    type: object
                    properties:
                      WORKITEM_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      WI_RECIPIENT_ID:
                        type: string
                        maxLength: 12
                        description: User Name
                      WI_RECIPIENT_TYPE:
                        type: string
                        maxLength: 15
                        description: Role type
                      WI_CRUD_FLAG:
                        type: string
                        maxLength: 12
                        description: Current Workitem status code
                      WI_CRUD_FLAG_PREV:
                        type: string
                        maxLength: 12
                        description: Previous Workitem status code
                      WI_TEXT:
                        type: string
                        maxLength: 120
                        description: Work item text
                      WI_DESCRIPTION:
                        type: string
                        description: ''
                      WI_STATUS:
                        type: string
                        maxLength: 12
                        description: Processing Status of a Work Item
                      WI_STATUS_TEXT:
                        type: string
                        maxLength: 20
                        description: 'Workflow: Work Item Status'
                      WI_TYPE:
                        type: string
                        maxLength: 1
                        description: Work item type
                      WI_LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Language for Texts of a Work Item
                      WI_TASK_ID:
                        type: string
                        maxLength: 14
                        description: Task ID
                      WI_STEP_ID:
                        type: integer
                        format: int64
                        description: Node Number
                      WI_TASK_ROLE_TYPE:
                        type: string
                        maxLength: 15
                        description: Role type
                      WI_PRIORITY:
                        type: integer
                        format: int64
                        description: Priority of a Work Item
                      WI_CREATION_DATE:
                        type: string
                        format: date
                        description: Creation Date of Work Item
                      WI_CREATION_TIME:
                        type: string
                        maxLength: 6
                        description: Creation Time of Work Item
                      WI_DEADLINE_DATE:
                        type: string
                        format: date
                        description: Latest End Date for Work Item
                      WI_DEADLINE_TIME:
                        type: string
                        maxLength: 6
                        description: Latest end time for work item
                      WI_DEADLINE_STATUS:
                        type: integer
                        format: int64
                        description: Deadline Status of a Work Item
                      WI_FORW_BY:
                        type: string
                        maxLength: 12
                        description: (Last) forwarder of work item
                      WI_FORW_NAME:
                        type: string
                        maxLength: 40
                        description: Name of Last Forwarder
                      PARENT_WI_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      WORKFLOW_ID:
                        type: string
                        maxLength: 14
                        description: Task ID
                      WF_STATUS:
                        type: string
                        maxLength: 12
                        description: Processing Status of a Work Item
                      WF_CREATOR_ID:
                        type: string
                        maxLength: 12
                        description: User Name
                      WF_CREATOR_NAME:
                        type: string
                        maxLength: 40
                        description: WF Initiator/Creator name
                      WF_CREATOR_LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Recipient's default language
                      WF_CREATION_DATE:
                        type: string
                        format: date
                        description: Creation Date of Work Item
                      WF_CREATION_TIME:
                        type: string
                        maxLength: 6
                        description: Creation Time of Work Item
                      WF_REVIEWER_WF:
                        type: string
                        maxLength: 14
                        description: Task ID
                      APPL_ID:
                        type: string
                        maxLength: 6
                        description: Application ID
                      APPL_INSTANCE_ID:
                        type: string
                        maxLength: 70
                        description: 'WAPI: Instance ID of Persistent Object Reference'
                      APPL_STATUS_CURR:
                        type: string
                        maxLength: 12
                        description: Current Workitem status code
                      APPL_STATUS_PREV:
                        type: string
                        maxLength: 12
                        description: Previous Workitem status code
                      APPL_REQUESTOR_ID:
                        type: string
                        maxLength: 12
                        description: User Name
                      APPL_REQUESTOR_NAME:
                        type: string
                        maxLength: 40
                        description: Application Initiator/Requestor name
                      APPL_REQUESTOR_LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Recipient's default language
                      CRT_TASK_FLAG:
                        type: string
                        maxLength: 1
                        description: Flag
                      SYSTEM_TIMEZONE:
                        type: string
                        maxLength: 6
                        description: Time Zone
                      SUB_WF_WI_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      SUB_WF_WI_TYPE:
                        type: string
                        maxLength: 1
                        description: Work item type
                      SUB_WORKFLOW_ID:
                        type: string
                        maxLength: 14
                        description: Task ID
                      SUB_WORKFLOW_TYPE:
                        type: integer
                        format: int64
                        description: 'Type of Workflow Definition: Standard, Checklist, Ad Hoc, ..'
                      CLNT_FORWARDING_FLAG:
                        type: string
                        maxLength: 1
                        description: Flag
                      CLNT_SUBSTITUTION_FLAG:
                        type: string
                        maxLength: 1
                        description: Flag
                      RECIPIENT_DETAILS:
                        type: object
                        properties:
                          RECIPIENT_ID:
                            type: string
                            maxLength: 12
                            description: User Name
                          RECIPIENT_NAME:
                            type: string
                            maxLength: 40
                            description: Recipient Name
                          SUBSTITUTION_FLAG:
                            type: string
                            maxLength: 1
                            description: Flag
                          LANGUAGE:
                            type: string
                            maxLength: 1
                            description: Language Key
                          USER_DEFAULTS:
                            type: object
                            properties:
                              STCOD:
                                type: string
                                maxLength: 20
                                description: Start menu (old, replaced by XUSTART)
                              SPLD:
                                type: string
                                maxLength: 4
                                description: 'Spool: Output device'
                              SPLG:
                                type: string
                                maxLength: 1
                                description: Print parameter 1
                              SPDB:
                                type: string
                                maxLength: 1
                                description: Print parameter 2
                              SPDA:
                                type: string
                                maxLength: 1
                                description: Print parameter 3
                              DATFM:
                                type: string
                                maxLength: 1
                                description: 'Date format  enumValues: 6=YYYY-MM-DD,9=GYY-MM-DD     (Japanese Date),A=YYYY/MM/DD   (Islamic Date 1),2=MM/DD/YYYY,4=YYYY.MM.DD,3=MM-DD-YYYY,C=YYYY/MM/DD (Iranian Date),B=YYYY/MM/DD   (Islamic Date 2),5=YYYY/MM/DD,8=GYY/MM/DD     (Japanese Date),1=DD.MM.YYYY,7=GYY.MM.DD     (Japanese Date)'
                                enum:
                                - '6'
                                - '9'
                                - A
                                - '2'
                                - '4'
                                - '3'
                                - C
                                - B
                                - '5'
                                - '8'
                                - '1'
                                - '7'
                              DCPFM:
                                type: string
                                maxLength: 1
                                description: 'Decimal notation  enumValues: X=1,234,567.89,Y=1 234 567,89,""=1.234.567,89'
                                enum:
                                - X
                                - Y
                                - ''
                              LANGU:
                                type: string
                                maxLength: 1
                                description: Language
                              CATTKENNZ:
                                type: string
                                maxLength: 1
                                description: 'CATT: Test status  enumValues: .='
                                enum:
                                - .
                              KOSTL:
                                type: string
                                maxLength: 8
                                description: Cost center
                              START_MENU:
                                type: string
                                maxLength: 30
                                description: Start menu
                          SUBSTITUTED_FOR_DETAILS:
                            type: array
                            items:
                              type: object
                              properties:
                                OTYPE:
                                  type: string
                                  maxLength: 2
                                  description: Object Type
                                OBJID:
                                  type: string
                                  maxLength: 12
                                  description: Agent ID in Organizational Management
                                PROFILE:
                                  type: string
                                  maxLength: 12
                                  description: Substitute Profile
                                ACTIVE:
                                  type: string
                                  maxLength: 1
                                  description: 'Indicator: Substitution Active'
                                IN_USE:
                                  type: string
                                  maxLength: 1
                                  description: 'ID: Substitution in Use'
                                ADOPTED:
                                  type: string
                                  maxLength: 1
                                  description: 'ID: Adopted Substitution'
                          SUBSTITUTED_BY_DETAILS:
                            type: array
                            items:
                              type: object
                              properties:
                                OTYPE:
                                  type: string
                                  maxLength: 2
                                  description: Object Type
                                OBJID:
                                  type: string
                                  maxLength: 12
                                  description: Agent ID in Organizational Management
                                DATE_BEGIN:
                                  type: string
                                  format: date
                                  description: Start of Substitution
                                DATE_END:
                                  type: string
                                  format: date
                                  description: End of Substitution
                                PROFILE:
                                  type: string
                                  maxLength: 12
                                  description: Substitute Profile
                                ACTIVE:
                                  type: string
                                  maxLength: 1
                                  description: 'Indicator: Substitution Active'
                      CLIENT_INFO:
                        type: object
                        properties:
                          EMAIL_BITEM_TYPE:
                            type: string
                            maxLength: 200
                            description: Email Bound Item type
                          TASK_BITEM_TYPE:
                            type: string
                            maxLength: 200
                            description: Task Bound Item type
                          EMAIL_FOLDERNAME:
                            type: string
                            maxLength: 40
                            description: Email Folder name
                          TASK_FOLDERNAME:
                            type: string
                            maxLength: 40
                            description: Task Folder name
                      WORKITEM_CONTAINER:
                        type: array
                        items:
                          type: object
                          properties:
                            ELEMENT:
                              type: string
                              maxLength: 32
                              description: Element
                            VALUE:
                              type: string
                              maxLength: 255
                              description: Character value
                      GENERIC_DECISION_TAB:
                        type: array
                        items:
                          type: object
                          properties:
                            ALTKEY:
                              type: integer
                              format: int64
                              description: Index of an Alternative of a User Decision
                            ALTTEXT:
                              type: string
                              maxLength: 255
                              description: Text of an Alternative of a User Decision
                      BUFFER_3:
                        type: array
                        items:
                          type: object
                          properties:
                            NAME:
                              type: string
                              maxLength: 32
                              description: Name
                            VALUE:
                              type: string
                              maxLength: 255
                              description: Value
                            NAME_VALUE_DEEP_TAB:
                              type: array
                              items:
                                type: object
                                properties:
                                  NAME:
                                    type: string
                                    maxLength: 32
                                    description: Name
                                  VALUE:
                                    type: string
                                    maxLength: 255
                                    description: Value
                                  NAME_VALUE_TAB:
                                    type: array
                                    items:
                                      type: object
                                      properties:
                                        NAME:
                                          type: string
                                          maxLength: 32
                                          description: Name
                                        VALUE:
                                          type: string
                                          maxLength: 255
                                          description: Value
                      STEP_PROCESS_TAB:
                        type: array
                        items:
                          type: object
                          properties:
                            STEP_ID:
                              type: integer
                              format: int64
                              description: Node Number
                            STEP_STATUS:
                              type: string
                              maxLength: 12
                              description: Processing Status of a Work Item
                            AGENT_ID:
                              type: string
                              maxLength: 12
                              description: Actual Agent of Work Item
                            AGENT_NAME:
                              type: string
                              maxLength: 40
                              description: Name of Actual Agent of Work Item
                            AGENT_ROLE:
                              type: string
                              maxLength: 15
                              description: Role type
                            AGENT_ROLE_DESCR:
                              type: string
                              maxLength: 40
                              description: Role type Text
                            AGENT_SUB_ROLE:
                              type: string
                              maxLength: 15
                              description: Role type
                            STEP_CREATION_DATE:
                              type: string
                              format: date
                              description: Creation Date of Work Item
                            STEP_CREATION_TIME:
                              type: string
                              maxLength: 6
                              description: Creation Time of Work Item
                            STEP_COMPLETION_DATE:
                              type: string
                              format: date
                              description: End Date of Work Item
                            STEP_COMPLETION_TIME:
                              type: string
                              maxLength: 6
                              description: Current end time of work item
                            STEP_WITHIN_FORK_FLAG:
                              type: string
                              maxLength: 1
                              description: Flag
                            STEP_WITHIN_LOOP_FLAG:
                              type: string
                              maxLength: 1
                              description: Flag
                            STEP_EXT_STATUS:
                              type: string
                              maxLength: 15
                              description: External status code
                            STEP_EXT_STATUS_DESCR:
                              type: string
                              maxLength: 40
                              description: External status description
                            STEP_EXT_AGENT_ROLE:
                              type: string
                              maxLength: 15
                              description: Role type
                            STEP_EXT_AGENT_ROLE_DESCR:
                              type: string
                              maxLength: 40
                              description: Role type Text
                      CLIENT_GPW_INFO:
                        type: array
                        items:
                          type: object
                          properties:
                            RECP_ROLE_ID:
                              type: string
                              maxLength: 15
                              description: Role type
                            GPW_OBJECT_TYPE:
                              type: string
                              maxLength: 8
                              description: Groupware Object Type
                            GPW_OBJECT_SUB_TYPE:
                              type: string
                              maxLength: 8
                              description: Groupware Object Sub-type
                            EMAIL_DETAILS:
                              type: object
                              properties:
                                GPW_OBJ_BITEMTYP:
                                  type: string
                                  maxLength: 200
                                  description: Groupware Object-Bound Item type
                                PATTERN_CLNT_FLAG:
                                  type: string
                                  maxLength: 1
                                  description: Flag
                                XPROP_LIST:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      APPL_ID:
                                        type: string
                                        description: ''
                                      NAME:
                                        type: string
                                        description: ''
                                      VALUE:
                                        type: string
                                        description: ''
                                SUBJ_BODY_TAB:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      EMAIL_TYPE:
                                        type: string
                                        maxLength: 8
                                        description: Groupware Object Sub-type
                                      SUBJECT:
                                        type: string
                                        description: ''
                                      BODY:
                                        type: object
                                        properties:
                                          MIME_ENTITY:
                                            type: object
                                            properties:
                                              STRING:
                                                type: array
                                                items:
                                                  type: string
                                                  description: ''
                                          TEXT_BODY:
                                            type: string
                                            description: ''
                            TASK_DETAILS:
                              type: object
                              properties:
                                GPW_OBJ_BITEMTYP:
                                  type: string
                                  maxLength: 200
                                  description: Groupware Object-Bound Item type
                                PATTERN_CLNT_FLAG:
                                  type: string
                                  maxLength: 1
                                  description: Flag
                                SUBJECT:
                                  type: object
                                  properties:
                                    ALTREP:
                                      type: string
                                      description: ''
                                    LANGUAGE:
                                      type: string
                                      description: ''
                                    VALUE:
                                      type: string
                                      description: ''
                                BODY:
                                  type: object
                                  properties:
                                    ALTREP:
                                      type: string
                                      description: ''
                                    LANGUAGE:
                                      type: string
                                      description: ''
                                    VALUE:
                                      type: string
                                      description: ''
                                STATUS:
                                  type: string
                                  description: ''
                                PERCENT_COMPLETED:
                                  type: integer
                                  format: int32
                                  description: ''
                                DATE_COMPLETED:
                                  type: string
                                  description: ''
                                XPROP_LIST:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      APPL_ID:
                                        type: string
                                        description: ''
                                      NAME:
                                        type: string
                                        description: ''
                                      VALUE:
                                        type: string
                                        description: ''
                      RECIPIENT_TAB:
                        type: array
                        items:
                          type: object
                          properties:
                            RECIPIENT_ID:
                              type: string
                              maxLength: 12
                              description: User Name
                            RECIPIENT_NAME:
                              type: string
                              maxLength: 40
                              description: Recipient Name
                            SUBSTITUTION_FLAG:
                              type: string
                              maxLength: 1
                              description: Flag
                            LANGUAGE:
                              type: string
                              maxLength: 1
                              description: Language Key
                            USER_DEFAULTS:
                              type: object
                              properties:
                                STCOD:
                                  type: string
                                  maxLength: 20
                                  description: Start menu (old, replaced by XUSTART)
                                SPLD:
                                  type: string
                                  maxLength: 4
                                  description: 'Spool: Output device'
                                SPLG:
                                  type: string
                                  maxLength: 1
                                  description: Print parameter 1
                                SPDB:
                                  type: string
                                  maxLength: 1
                                  description: Print parameter 2
                                SPDA:
                                  type: string
                                  maxLength: 1
                                  description: Print parameter 3
                                DATFM:
                                  type: string
                                  maxLength: 1
                                  description: 'Date format  enumValues: 6=YYYY-MM-DD,9=GYY-MM-DD     (Japanese Date),A=YYYY/MM/DD   (Islamic Date 1),2=MM/DD/YYYY,4=YYYY.MM.DD,3=MM-DD-YYYY,C=YYYY/MM/DD (Iranian Date),B=YYYY/MM/DD   (Islamic Date 2),5=YYYY/MM/DD,8=GYY/MM/DD     (Japanese Date),1=DD.MM.YYYY,7=GYY.MM.DD     (Japanese Date)'
                                  enum:
                                  - '6'
                                  - '9'
                                  - A
                                  - '2'
                                  - '4'
                                  - '3'
                                  - C
                                  - B
                                  - '5'
                                  - '8'
                                  - '1'
                                  - '7'
                                DCPFM:
                                  type: string
                                  maxLength: 1
                                  description: 'Decimal notation  enumValues: X=1,234,567.89,Y=1 234 567,89,""=1.234.567,89'
                                  enum:
                                  - X
                                  - Y
                                  - ''
                                LANGU:
                                  type: string
                                  maxLength: 1
                                  description: Language
                                CATTKENNZ:
                                  type: string
                                  maxLength: 1
                                  description: 'CATT: Test status  enumValues: .='
                                  enum:
                                  - .
                                KOSTL:
                                  type: string
                                  maxLength: 8
                                  description: Cost center
                                START_MENU:
                                  type: string
                                  maxLength: 30
                                  description: Start menu
                            SUBSTITUTED_FOR_DETAILS:
                              type: array
                              items:
                                type: object
                                properties:
                                  OTYPE:
                                    type: string
                                    maxLength: 2
                                    description: Object Type
                                  OBJID:
                                    type: string
                                    maxLength: 12
                                    description: Agent ID in Organizational Management
                                  PROFILE:
                                    type: string
                                    maxLength: 12
                                    description: Substitute Profile
                                  ACTIVE:
                                    type: string
                                    maxLength: 1
                                    description: 'Indicator: Substitution Active'
                                  IN_USE:
                                    type: string
                                    maxLength: 1
                                    description: 'ID: Substitution in Use'
                                  ADOPTED:
                                    type: string
                                    maxLength: 1
                                    description: 'ID: Adopted Substitution'
                            SUBSTITUTED_BY_DETAILS:
                              type: array
                              items:
                                type: object
                                properties:
                                  OTYPE:
                                    type: string
                                    maxLength: 2
                                    description: Object Type
                                  OBJID:
                                    type: string
                                    maxLength: 12
                                    description: Agent ID in Organizational Management
                                  DATE_BEGIN:
                                    type: string
                                    format: date
                                    description: Start of Substitution
                                  DATE_END:
                                    type: string
                                    format: date
                                    description: End of Substitution
                                  PROFILE:
                                    type: string
                                    maxLength: 12
                                    description: Substitute Profile
                                  ACTIVE:
                                    type: string
                                    maxLength: 1
                                    description: 'Indicator: Substitution Active'
                      BUFFER_2:
                        type: array
                        items:
                          type: object
                          properties:
                            NAME:
                              type: string
                              maxLength: 32
                              description: Name
                            VALUE:
                              type: string
                              maxLength: 255
                              description: Value
                            NAME_VALUE_TAB:
                              type: array
                              items:
                                type: object
                                properties:
                                  NAME:
                                    type: string
                                    maxLength: 32
                                    description: Name
                                  VALUE:
                                    type: string
                                    maxLength: 255
                                    description: Value
                      BUFFER_1:
                        type: array
                        items:
                          type: object
                          properties:
                            NAME:
                              type: string
                              maxLength: 32
                              description: Name
                            VALUE:
                              type: string
                              maxLength: 255
                              description: Value
                IV_APPL_ID:
                  type: string
                  default: WOMA
                  maxLength: 6
                  description: Application ID
                IV_IN_STATUS:
                  type: string
                  maxLength: 12
                  description: In-Status Code
                IV_NEW_STATUS:
                  type: string
                  maxLength: 12
                  description: New-Status Code
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ET_RETURN:
                    type: array
                    items:
                      type: object
                      properties:
                        TYPE:
                          type: string
                          maxLength: 1
                          description: 'Message type: S Success, E Error, W Warning, I Info, A Abort'
                        ID:
                          type: string
                          maxLength: 20
                          description: Message Class
                        NUMBER:
                          type: integer
                          format: int64
                          description: Message Number
                        MESSAGE:
                          type: string
                          maxLength: 220
                          description: Message Text
                        LOG_NO:
                          type: string
                          maxLength: 20
                          description: 'Application log: log number'
                        LOG_MSG_NO:
                          type: integer
                          format: int64
                          description: 'Application log: Internal message serial number'
                        MESSAGE_V1:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V2:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V3:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        MESSAGE_V4:
                          type: string
                          maxLength: 50
                          description: Message Variable
                        PARAMETER:
                          type: string
                          maxLength: 32
                          description: Parameter Name
                        ROW:
                          type: integer
                          format: int32
                          description: Lines in parameter
                        FIELD:
                          type: string
                          maxLength: 30
                          description: Field in parameter
                        SYSTEM:
                          type: string
                          maxLength: 10
                          description: Logical system from which message originates
                  ET_STAT_TRANS_ACTN_INFO:
                    type: array
                    items:
                      type: object
                      properties:
                        MANDT:
                          type: string
                          maxLength: 3
                          description: Client
                        UNIQUE_ID:
                          type: string
                          maxLength: 32
                          description: GUID
                        APPL_ID:
                          type: string
                          maxLength: 6
                          description: Application ID
                        IN_STATUS:
                          type: string
                          maxLength: 12
                          description: In-Status Code
                        NEW_STATUS:
                          type: string
                          maxLength: 12
                          description: New-Status Code
                        OSP_RECIP_TYPE:
                          type: string
                          maxLength: 15
                          description: Role type
                        OSP_ACTION:
                          type: string
                          maxLength: 8
                          description: Action
                        OSP_OBJECT_TYPE:
                          type: string
                          maxLength: 8
                          description: Groupware Object Type
                        OSP_OBJECT_SUBTY:
                          type: string
                          maxLength: 8
                          description: Groupware Object Sub-type
                        ACTIVE:
                          type: string
                          maxLength: 1
                          description: Active Flag
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
