openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_WF_DEFINITION_HEADER_READ:
    post:
      tags:
      - SWDE
      operationId: /rfc/SWD_WF_DEFINITION_HEADER_READ
      requestBody:
        content:
          application/json:
            schema:
              properties:
                TASK:
                  type: string
                  maxLength: 14
                WFDKEY:
                  type: object
                  properties:
                    WFD_ID:
                      type: string
                      maxLength: 10
                      description: Number of workflow definition
                    VERSION:
                      type: string
                      maxLength: 4
                      description: Version
                    EXETYP:
                      type: string
                      maxLength: 1
                      description: 'Workflow Type  enumValues: E=Runtime,R=Ad Hoc Runtime,S=Definition,D=Ad Hoc Definition,C=Configuration Definition,A=Configuration Runtime'
                      enum:
                      - E
                      - R
                      - S
                      - D
                      - C
                      - A
              required:
              - TASK
              - WFDKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  WFD_HEADER:
                    type: object
                    properties:
                      CLIENT:
                        type: string
                        maxLength: 3
                        description: 'Workflow definition: Client'
                      WFD_ID:
                        type: string
                        maxLength: 10
                        description: Number of workflow definition
                      VERSION:
                        type: string
                        maxLength: 4
                        description: Version
                      EXETYP:
                        type: string
                        maxLength: 1
                        description: 'Workflow Type  enumValues: E=Runtime,R=Ad Hoc Runtime,S=Definition,D=Ad Hoc Definition,C=Configuration Definition,A=Configuration Runtime'
                        enum:
                        - E
                        - R
                        - S
                        - D
                        - C
                        - A
                      STATUS:
                        type: string
                        maxLength: 1
                        description: 'Workflow definition: Status  enumValues: ""=,A=Activated,P=Planned'
                        enum:
                        - ''
                        - A
                        - P
                      SUSPEND_E:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Workflow Definition Locked Against Execution  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      SUSPEND_I:
                        type: string
                        maxLength: 1
                        description: 'Indicator: Locked Against Instantiation  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      ACTIV:
                        type: string
                        maxLength: 1
                        description: 'Flag: Version of workflow definition is active  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      CALENDAR:
                        type: string
                        maxLength: 2
                        description: 'Workflow definition: Factory calendar'
                      LANGUAGE:
                        type: string
                        maxLength: 1
                        description: Maintenance Language of Workflow Definition
                      DYNPPROG:
                        type: string
                        maxLength: 40
                        description: 'Workflow definition: Program name for screens'
                      DYNNR:
                        type: string
                        maxLength: 4
                        description: 'Workflow definition: Screen number'
                      PRIORITY:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Priority of a workflow  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'
                      LONGTEXT:
                        type: string
                        maxLength: 1
                        description: 'Workflow definition: Long text ID  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      CREATED_BY:
                        type: string
                        maxLength: 12
                        description: Creator of Workflow Definition
                      CREATED_ON:
                        type: string
                        format: date
                        description: Creation Date of Workflow Definition
                      CREATED_AT:
                        type: string
                        maxLength: 6
                        description: Creation Time of Workflow Definition
                      CREATED_RL:
                        type: string
                        maxLength: 4
                        description: Release when workflow definition created
                      CHANGED_BY:
                        type: string
                        maxLength: 12
                        description: Last user to change workflow definition
                      CHANGED_ON:
                        type: string
                        format: date
                        description: Date of last change to workflow definition
                      CHANGED_AT:
                        type: string
                        maxLength: 6
                        description: Time of last change to workflow definition
                      CHANGED_RL:
                        type: string
                        maxLength: 4
                        description: Release of last change to workflow definition
                      ACTIVAT_BY:
                        type: string
                        maxLength: 12
                        description: Last user to activate workflow definition
                      ACTIVAT_ON:
                        type: string
                        format: date
                        description: Date workflow definition last activated
                      ACTIVAT_AT:
                        type: string
                        maxLength: 6
                        description: Time workflow definition last activated
                      ACTIVAT_RL:
                        type: string
                        maxLength: 4
                        description: Activation Release
                      DEADL_AGT:
                        type: string
                        maxLength: 14
                        description: 'WF def.: Deadline agent'
                      DEADL_CONT:
                        type: string
                        maxLength: 32
                        description: 'Workflow definition: Container element for role (deadline)'
                      NOTIFY_AGT:
                        type: string
                        maxLength: 14
                        description: 'WF def.: Org. unit for notifications'
                      NOTIF_CONT:
                        type: string
                        maxLength: 32
                        description: 'Workflow definition: Container element f. role (notif.agent)'
                      WFI_ADMIN:
                        type: string
                        maxLength: 14
                        description: Workflow System Administrator
                      ADMIN_CONT:
                        type: string
                        maxLength: 32
                        description: 'Workflow definition: Container element for role (admin.)'
                      AVG_ACTEXT:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Average effective processing time'
                      MIN_ACTEXT:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Minimum effective processing time'
                      MAX_ACTEXT:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Maximum effective processing time'
                      AVG_TOTALT:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Average total duration'
                      MIN_TOTALT:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Minimum total duration'
                      MAX_TOTALT:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Maximum total duration'
                      TASK:
                        type: string
                        maxLength: 14
                        description: Task abbreviation
                      DUMMY1:
                        type: string
                        maxLength: 20
                        description: 'Workflow definition: Dummy'
                      DUMMY2:
                        type: string
                        maxLength: 20
                        description: 'Workflow definition: Dummy'
                      DES_ST_B:
                        type: string
                        maxLength: 3
                        description: 'Reference date/time for requested start  enumValues: ""=No Deadline Monitoring Active,EXP=Expression,WIS=Work Item Creation,WFS=Workflow Creation'
                        enum:
                        - ''
                        - EXP
                        - WIS
                        - WFS
                      DES_ST_U:
                        type: string
                        maxLength: 3
                        description: Time Unit
                      DES_ST_O:
                        type: integer
                        format: int32
                        description: Offset between reference time and missed deadline
                      DES_END_B:
                        type: string
                        maxLength: 3
                        description: 'Reference date/time for requested end  enumValues: ""=No Deadline Monitoring Active,EXP=Expression,WIS=Work Item Creation,WFS=Workflow Creation'
                        enum:
                        - ''
                        - EXP
                        - WIS
                        - WFS
                      DES_END_U:
                        type: string
                        maxLength: 3
                        description: Time Unit
                      DES_END_O:
                        type: integer
                        format: int32
                        description: Offset between reference time and missed deadline
                      LATE_END_B:
                        type: string
                        maxLength: 3
                        description: 'Reference Date/Time for Latest End  enumValues: ""=No Deadline Monitoring Active,EXP=Expression,WIS=Work Item Creation,WFS=Workflow Creation'
                        enum:
                        - ''
                        - EXP
                        - WIS
                        - WFS
                      LATE_END_U:
                        type: string
                        maxLength: 3
                        description: Time Unit
                      LATE_END_O:
                        type: integer
                        format: int32
                        description: Offset between reference time and missed deadline
                      DIAL_FLAG:
                        type: string
                        maxLength: 1
                        description: 'Indicator: NO advancing with dialog  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      CREATED_UL:
                        type: string
                        maxLength: 1
                        description: '<<Obsolete>>  enumValues: E=Professional,A=Standard'
                        enum:
                        - E
                        - A
                      CHANGED_UL:
                        type: string
                        maxLength: 1
                        description: '<<Obsolete>>  enumValues: E=Professional,A=Standard'
                        enum:
                        - E
                        - A
                      MAX_NODES:
                        type: integer
                        format: int32
                        description: Max. node number in workflow (termination condition)
                      MAX_SUBWF:
                        type: integer
                        format: int32
                        description: Maximum subworkflow level (termination criterion)
                      NO_LOG:
                        type: string
                        maxLength: 1
                        description: 'Minimize Number of Entries in Workflow Log  enumValues: ""=Only log success messages and errors,1=No restrictions on logging,2=Only log errors'
                        enum:
                        - ''
                        - '1'
                        - '2'
                      ORIG_VERS:
                        type: string
                        maxLength: 4
                        description: Version
                      TRANSIENT:
                        type: string
                        maxLength: 1
                        description: 'Workflow definition executed transiently  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      WFTYPE:
                        type: integer
                        format: int64
                        description: 'Type of Workflow Definition: Standard, Checklist, Ad Hoc, ..  enumValues: 0008=Has a Review Workflow,0004=Supports Forms,0512=Guided Procedure Workflow,0032=Insertable Ad Hoc Workflow,0000=Standard Workflow,0001=Ad Hoc Agent Assignment Is Possible,0002=Portrays Checklist,0128=Generated Workflow (Not Modifiable),0256=Message-Based Workflow,0016=Review Workflow,0064=Has an Insertable Ad Hoc Workflow'
                        enum:
                        - '0008'
                        - '0004'
                        - '0512'
                        - '0032'
                        - '0000'
                        - '0001'
                        - '0002'
                        - '0128'
                        - '0256'
                        - '0016'
                        - '0064'
                      REVIEW_WF:
                        type: string
                        maxLength: 14
                        description: ID of Review Workflow
                      FB_WF_CREA:
                        type: string
                        maxLength: 30
                        description: Function Module That Is Executed When Workflow Is Started
                      APPL:
                        type: string
                        maxLength: 2
                        description: 'CATT: Application'
                      SAPPL:
                        type: string
                        maxLength: 3
                        description: 'CATT: Sub-application'
                      THST1:
                        type: string
                        maxLength: 3
                        description: 'CATT: Component'
                      PRIND:
                        type: integer
                        format: int64
                        description: Index of application-specific Workflow Builder
                      PRS_PROFIL:
                        type: integer
                        format: int64
                        description: 'Type of Persistence Profile  enumValues: 0001=Structure Persistence,0002=XML Persistence,0000=Compatibility Mode'
                        enum:
                        - '0001'
                        - '0002'
                        - '0000'
                      ENQUEQUE:
                        type: string
                        maxLength: 2
                        description: 'Lock Behavior of Workflow Runtime System  enumValues: LB=Lock Behavior for Background Workflows,""=Standard behavior,LO=Lock Behavior for Sequential Workflows'
                        enum:
                        - LB
                        - ''
                        - LO
                      XMLPROT:
                        type: integer
                        format: int64
                        description: Transfer Format Used In Web Activity
                      XMLGRP:
                        type: string
                        maxLength: 4
                        description: Log Group
                      ROLL_SELECTION:
                        type: integer
                        format: int64
                        description: 'Number of Possible Role Settings  enumValues: 0=System Settings for Roll-Out/Roll-In,1=Workflow-Specific Setting for Roll-Out/Roll-In'
                        enum:
                        - '0'
                        - '1'
                      ROLL_INTERVAL:
                        type: integer
                        format: int64
                        description: Time Interval for WP Roll-Out/-In
                      ROLL_FORK_COUNT:
                        type: integer
                        format: int64
                        description: Number of Parallel Branches for WP Roll-Out/-In
                      REFER_DATE:
                        type: string
                        maxLength: 255
                        description: Reference date for calculating deadlines
                      REFER_TIME:
                        type: string
                        maxLength: 255
                        description: Reference time for deadline calculation
                      DES_ST_EXP:
                        type: string
                        maxLength: 255
                        description: Expression for requested start (time)
                      DES_SD_EXP:
                        type: string
                        maxLength: 255
                        description: Expression for requested start (date)
                      LAT_ST_EXP:
                        type: string
                        maxLength: 255
                        description: Expression for latest start (time)
                      LAT_SD_EXP:
                        type: string
                        maxLength: 255
                        description: Expression for latest start (date)
                      DES_ET_EXP:
                        type: string
                        maxLength: 255
                        description: Expression for requested end (time)
                      DES_ED_EXP:
                        type: string
                        maxLength: 255
                        description: Expression for requested end (date)
                      LAT_ET_EXP:
                        type: string
                        maxLength: 255
                        description: Expression for Latest End
                      LAT_ED_EXP:
                        type: string
                        maxLength: 255
                        description: Expression for latest end (date)
                      ADMIN_EXPR:
                        type: string
                        maxLength: 255
                        description: Expression for Agent of Activity
                      DEADL_EXPR:
                        type: string
                        maxLength: 255
                        description: Notification Agent for Deadline Monitoring
                      NOTIF_EXPR:
                        type: string
                        maxLength: 255
                        description: Expression for Notification Agent for Completion
                      CL_WF_CREA:
                        type: string
                        maxLength: 30
                        description: Class That Is Executed When the Workflow Is Started
                      AUTH_ROLE:
                        type: string
                        maxLength: 14
                        description: Authorization Determination Rule
                      CL_WF_DEST:
                        type: string
                        maxLength: 30
                        description: Class That Is Executed When the Workflow Is Completed
                      PROXY_EXPR:
                        type: string
                        maxLength: 255
                        description: Container Element for Workflow Proxy
                      XMLROUTCLS:
                        type: string
                        maxLength: 30
                        description: Class for Routing
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
