openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_API_WORKFLOW_GRAPHIC_GET2:
    post:
      tags:
      - SWDN
      operationId: /rfc/SWD_API_WORKFLOW_GRAPHIC_GET2
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ADHOC_EXTENSION_MODE:
                  type: string
                  default: ' '
                  maxLength: 1
                LANGU:
                  type: string
                  default: SY-LANGU
                  maxLength: 1
                STEPS_HIDE:
                  type: string
                  default: X
                  maxLength: 1
                TASK:
                  type: string
                  maxLength: 14
                TEXTS_READ:
                  type: string
                  default: ' '
                  maxLength: 1
                  description: Internal
                VIEW:
                  type: string
                  default: ' '
                  maxLength: 1
                WI_ID:
                  type: integer
                  format: int64
                AGNTS:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_ID:
                        type: integer
                        format: int64
                        description: Node Number
                      NODE_AGENT:
                        type: string
                        maxLength: 40
                        description: Name of Actual Agent of Work Item
                      NODE_USER:
                        type: string
                        maxLength: 12
                        description: User Name in User Master Record
                LINES:
                  type: array
                  items:
                    type: object
                    properties:
                      LINE_ID:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Unique ID of a line'
                      LINE_TYPE:
                        type: string
                        maxLength: 10
                        description: 'WF: API: Line type  enumValues: 0004=Include event,0002=Include result,0001=Do not include result,0005=Modeled Deadline Monitoring Not Performed,0003=Do not include event,0006=Modeled Deadline Monitoring Performed'
                        enum:
                        - '0004'
                        - '0002'
                        - '0001'
                        - '0005'
                        - '0003'
                        - '0006'
                      LINE_TTXT:
                        type: string
                        maxLength: 60
                        description: 'WF: API: Line description'
                      LINE_DESC:
                        type: string
                        maxLength: 80
                        description: Name of Step or Outcome
                      LINE_PRED:
                        type: integer
                        format: int64
                        description: Node Number
                      LINE_SUCC:
                        type: integer
                        format: int64
                        description: Node Number
                      LINE_POSX:
                        type: string
                        maxLength: 5
                        description: 'Workflow definition: Horizontal position of lines'
                      LINE_POSY:
                        type: string
                        maxLength: 5
                        description: 'Workflow definition: Vertical position of nodes'
                NODES:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_ID:
                        type: integer
                        format: int64
                        description: Node Number
                      NODE_TYPE:
                        type: string
                        maxLength: 10
                        description: 'WF: API: Node type  enumValues: 0021=Mail Not Yet Sent,0002=Step Instantiated, But Not Completed,0022=Mail Sent Successfully,0001=Step Not Yet Instantiated,0018=Ad Hoc Anchor Processed (Cannot Be Used Anymore),0011=Fork Completed,0013=Triggering Event Not Occurred,0008=Fork Not Yet Started,0017=Ad Hoc Anchor Not Yet Processed,0007=Loop Completed,0016=End Processed,0004=Condition Not Yet Instantiated,0009=Fork Started,0020=Container Operation Executed,0003=Step
                          Completed,0010=Fork Not Yet Completed,0014=Triggering Event Occurred,0015=End Not Yet Processed,0006=Loop Not Yet Instantiated,0005=Condition Completed,0019=Container Operation Not Yet Executed'
                        enum:
                        - '0021'
                        - '0002'
                        - '0022'
                        - '0001'
                        - '0018'
                        - '0011'
                        - '0013'
                        - '0008'
                        - '0017'
                        - '0007'
                        - '0016'
                        - '0004'
                        - '0009'
                        - '0020'
                        - '0003'
                        - '0010'
                        - '0014'
                        - '0015'
                        - '0006'
                        - '0005'
                        - '0019'
                      NODE_TTEXT:
                        type: string
                        maxLength: 60
                        description: 'WF: API: Node type description'
                      NODE_DESC:
                        type: string
                        maxLength: 80
                        description: Name of Step or Outcome
                      NODE_BLKID:
                        type: integer
                        format: int64
                        description: Node Number
                      NODE_PABLK:
                        type: integer
                        format: int64
                        description: Node Number
                      NODE_POSX:
                        type: string
                        maxLength: 5
                        description: 'Workflow definition: Horizontal position of nodes'
                      NODE_POSY:
                        type: string
                        maxLength: 5
                        description: 'Workflow definition: Vertical position of nodes'
                      NODE_WEBTA:
                        type: string
                        maxLength: 20
                        description: Transaction for starting/executing task on WWW
                      NODE_SWIM:
                        type: string
                        maxLength: 32
                        description: Overview of Existing Groupings
                      NODE_TASK:
                        type: string
                        maxLength: 14
                        description: Task abbreviation
                      NODE_WI_ID:
                        type: integer
                        format: int64
                        description: Work item ID
                      NODE_WITXT:
                        type: string
                        maxLength: 120
                        description: Work Item Text
                      NODE_STATE:
                        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
                      NODE_STTXT:
                        type: string
                        maxLength: 20
                        description: 'Workflow: Work Item Status'
                      NODE_CRE_D:
                        type: string
                        format: date
                        description: Creation Date of Work Item
                      NODE_CRE_T:
                        type: string
                        maxLength: 6
                        description: Creation Time of Work Item
                      NODE_END_D:
                        type: string
                        format: date
                        description: End Date of Work Item
                      NODE_END_T:
                        type: string
                        maxLength: 6
                        description: Current end time of work item
                      NODE_DEADL:
                        type: string
                        maxLength: 1
                        description: 'Deadline missed  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      NODE_LS_F:
                        type: string
                        maxLength: 1
                        description: 'Checkbox  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      NODE_LS_D:
                        type: string
                        format: date
                        description: Latest Start Date for Work Item
                      NODE_LS_T:
                        type: string
                        maxLength: 6
                        description: Latest start time for work item
                      NODE_DE_F:
                        type: string
                        maxLength: 1
                        description: 'Checkbox  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      NODE_DE_D:
                        type: string
                        format: date
                        description: Requested End Date for Work Item
                      NODE_DE_T:
                        type: string
                        maxLength: 6
                        description: Requested end time for work item
                      NODE_LE_F:
                        type: string
                        maxLength: 1
                        description: 'Checkbox  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      NODE_LE_D:
                        type: string
                        format: date
                        description: Latest End Date for Work Item
                      NODE_LE_T:
                        type: string
                        maxLength: 6
                        description: Latest end time for work item
                TASKS:
                  type: array
                  items:
                    type: object
                    properties:
                      NODE_ID:
                        type: integer
                        format: int64
                        description: Node Number
                      NODE_TASK:
                        type: string
                        maxLength: 14
                        description: Task abbreviation
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ADHOC_AGENTS:
                    type: string
                    maxLength: 1
                    description: Checkbox Field
                  EX_TASK:
                    type: string
                    maxLength: 14
                    description: Task abbreviation
                  EX_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
                  AGNTS:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_ID:
                          type: integer
                          format: int64
                          description: Node Number
                        NODE_AGENT:
                          type: string
                          maxLength: 40
                          description: Name of Actual Agent of Work Item
                        NODE_USER:
                          type: string
                          maxLength: 12
                          description: User Name in User Master Record
                  LINES:
                    type: array
                    items:
                      type: object
                      properties:
                        LINE_ID:
                          type: integer
                          format: int64
                          description: 'Workflow definition: Unique ID of a line'
                        LINE_TYPE:
                          type: string
                          maxLength: 10
                          description: 'WF: API: Line type  enumValues: 0004=Include event,0002=Include result,0001=Do not include result,0005=Modeled Deadline Monitoring Not Performed,0003=Do not include event,0006=Modeled Deadline Monitoring Performed'
                          enum:
                          - '0004'
                          - '0002'
                          - '0001'
                          - '0005'
                          - '0003'
                          - '0006'
                        LINE_TTXT:
                          type: string
                          maxLength: 60
                          description: 'WF: API: Line description'
                        LINE_DESC:
                          type: string
                          maxLength: 80
                          description: Name of Step or Outcome
                        LINE_PRED:
                          type: integer
                          format: int64
                          description: Node Number
                        LINE_SUCC:
                          type: integer
                          format: int64
                          description: Node Number
                        LINE_POSX:
                          type: string
                          maxLength: 5
                          description: 'Workflow definition: Horizontal position of lines'
                        LINE_POSY:
                          type: string
                          maxLength: 5
                          description: 'Workflow definition: Vertical position of nodes'
                  NODES:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_ID:
                          type: integer
                          format: int64
                          description: Node Number
                        NODE_TYPE:
                          type: string
                          maxLength: 10
                          description: 'WF: API: Node type  enumValues: 0021=Mail Not Yet Sent,0002=Step Instantiated, But Not Completed,0022=Mail Sent Successfully,0001=Step Not Yet Instantiated,0018=Ad Hoc Anchor Processed (Cannot Be Used Anymore),0011=Fork Completed,0013=Triggering Event Not Occurred,0008=Fork Not Yet Started,0017=Ad Hoc Anchor Not Yet Processed,0007=Loop Completed,0016=End Processed,0004=Condition Not Yet Instantiated,0009=Fork Started,0020=Container Operation Executed,0003=Step
                            Completed,0010=Fork Not Yet Completed,0014=Triggering Event Occurred,0015=End Not Yet Processed,0006=Loop Not Yet Instantiated,0005=Condition Completed,0019=Container Operation Not Yet Executed'
                          enum:
                          - '0021'
                          - '0002'
                          - '0022'
                          - '0001'
                          - '0018'
                          - '0011'
                          - '0013'
                          - '0008'
                          - '0017'
                          - '0007'
                          - '0016'
                          - '0004'
                          - '0009'
                          - '0020'
                          - '0003'
                          - '0010'
                          - '0014'
                          - '0015'
                          - '0006'
                          - '0005'
                          - '0019'
                        NODE_TTEXT:
                          type: string
                          maxLength: 60
                          description: 'WF: API: Node type description'
                        NODE_DESC:
                          type: string
                          maxLength: 80
                          description: Name of Step or Outcome
                        NODE_BLKID:
                          type: integer
                          format: int64
                          description: Node Number
                        NODE_PABLK:
                          type: integer
                          format: int64
                          description: Node Number
                        NODE_POSX:
                          type: string
                          maxLength: 5
                          description: 'Workflow definition: Horizontal position of nodes'
                        NODE_POSY:
                          type: string
                          maxLength: 5
                          description: 'Workflow definition: Vertical position of nodes'
                        NODE_WEBTA:
                          type: string
                          maxLength: 20
                          description: Transaction for starting/executing task on WWW
                        NODE_SWIM:
                          type: string
                          maxLength: 32
                          description: Overview of Existing Groupings
                        NODE_TASK:
                          type: string
                          maxLength: 14
                          description: Task abbreviation
                        NODE_WI_ID:
                          type: integer
                          format: int64
                          description: Work item ID
                        NODE_WITXT:
                          type: string
                          maxLength: 120
                          description: Work Item Text
                        NODE_STATE:
                          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
                        NODE_STTXT:
                          type: string
                          maxLength: 20
                          description: 'Workflow: Work Item Status'
                        NODE_CRE_D:
                          type: string
                          format: date
                          description: Creation Date of Work Item
                        NODE_CRE_T:
                          type: string
                          maxLength: 6
                          description: Creation Time of Work Item
                        NODE_END_D:
                          type: string
                          format: date
                          description: End Date of Work Item
                        NODE_END_T:
                          type: string
                          maxLength: 6
                          description: Current end time of work item
                        NODE_DEADL:
                          type: string
                          maxLength: 1
                          description: 'Deadline missed  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        NODE_LS_F:
                          type: string
                          maxLength: 1
                          description: 'Checkbox  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        NODE_LS_D:
                          type: string
                          format: date
                          description: Latest Start Date for Work Item
                        NODE_LS_T:
                          type: string
                          maxLength: 6
                          description: Latest start time for work item
                        NODE_DE_F:
                          type: string
                          maxLength: 1
                          description: 'Checkbox  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        NODE_DE_D:
                          type: string
                          format: date
                          description: Requested End Date for Work Item
                        NODE_DE_T:
                          type: string
                          maxLength: 6
                          description: Requested end time for work item
                        NODE_LE_F:
                          type: string
                          maxLength: 1
                          description: 'Checkbox  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        NODE_LE_D:
                          type: string
                          format: date
                          description: Latest End Date for Work Item
                        NODE_LE_T:
                          type: string
                          maxLength: 6
                          description: Latest end time for work item
                  TASKS:
                    type: array
                    items:
                      type: object
                      properties:
                        NODE_ID:
                          type: integer
                          format: int64
                          description: Node Number
                        NODE_TASK:
                          type: string
                          maxLength: 14
                          description: Task abbreviation
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
