openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_STORE_WF_NODES:
    post:
      tags:
      - SWDB
      operationId: /rfc/SWD_STORE_WF_NODES
      requestBody:
        content:
          application/json:
            schema:
              properties:
                ACT_CLIENT:
                  type: string
                  default: SY-MANDT
                  maxLength: 3
                ACT_TASK:
                  type: string
                  maxLength: 14
                ACT_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
                DO_COMMIT:
                  type: string
                  default: ' '
                  maxLength: 1
                ACT_NODES:
                  type: array
                  items:
                    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
                      NODEID:
                        type: integer
                        format: int64
                        description: Node Number
                      NODETYPE:
                        type: string
                        maxLength: 1
                        description: 'Node Type  enumValues: D=DECISION,F=FORK,T=TRIGGER,X=BLOCKSTART,Y=BLOCKEND,E=ENDIF,J=JOIN,Z=DEAD END,S=STEP,C=CASE,P=Container operation (ADD, MULTIPLY, ...),V=VOID,I=IF,R=RECEIVER,O=CONTROL'
                        enum:
                        - D
                        - F
                        - T
                        - X
                        - Y
                        - E
                        - J
                        - Z
                        - S
                        - C
                        - P
                        - V
                        - I
                        - R
                        - O
                      PARFORFLAG:
                        type: string
                        maxLength: 1
                        description: 'Flag for table-controled parallel processing  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      PARFOROBJ:
                        type: string
                        maxLength: 255
                        description: Multiline container element
                      MIN_TOKENS:
                        type: integer
                        format: int64
                        description: Number of branches necessary
                      EXP_TOKENS:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Number of preceding nodes of a node'
                      BLOCKID:
                        type: integer
                        format: int64
                        description: ID of block in workflow definition
                      PAR_BLCKID:
                        type: integer
                        format: int64
                        description: ID of superordinate block in workflow definition
                      NEST_LEVEL:
                        type: integer
                        format: int64
                        description: Nesting level of current block in workflow definition
                      CONDIT_ID:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Reference to a condition'
                      CASE_CONTE:
                        type: string
                        maxLength: 255
                        description: 'Workflow definition: Expression via container'
                      CONT_CMD:
                        type: integer
                        format: int64
                        description: 'Workflow definition: Workflow control  enumValues: 12=Function: Allocate,01=Process control: Cancel work item,13=Function: Substract,11=Function: Add,09=Process Control: Calculate Correlation,15=Function: Divide,14=Function: Multiply,18=Function: Append,02=Flow control: Cancel workflow'
                        enum:
                        - '12'
                        - '01'
                        - '13'
                        - '11'
                        - '09'
                        - '15'
                        - '14'
                        - '18'
                        - '02'
                      PARAMETER1:
                        type: string
                        maxLength: 255
                        description: First parameter with expression for user decision
                      PARAMETER2:
                        type: string
                        maxLength: 255
                        description: Second parameter with expression for user decision
                      PARAMETER3:
                        type: string
                        maxLength: 255
                        description: Third parameter with expression for user decision
                      PARAMETER4:
                        type: string
                        maxLength: 255
                        description: Fourth parameter with expression for user decision
                      EVT_TYPE:
                        type: string
                        maxLength: 32
                        description: Event for object type
                      EVT_OTYPE:
                        type: string
                        maxLength: 32
                        description: Type of Objects in Persistent Object References
                      EVT_CATID:
                        type: string
                        maxLength: 2
                        description: 'Object Type Category  enumValues: BO=BOR Object Type,BC=Business Class,XC=XML Object Type,CL=ABAP Class'
                        enum:
                        - BO
                        - BC
                        - XC
                        - CL
                      EVT_CONTEL:
                        type: string
                        maxLength: 255
                        description: Container element with object reference
                      REC_COUNT:
                        type: integer
                        format: int64
                        description: Number of Events for Wait Step
                      STEP_HIDE:
                        type: string
                        maxLength: 1
                        description: 'Display Node in Workflow Log  enumValues: X=Only in Technical Workflow Log,B=Condition ''Complete Work Item'' True: Not in Graf. Protocol,""=In All Workflow Logs'
                        enum:
                        - X
                        - B
                        - ''
                      NOEDIT:
                        type: string
                        maxLength: 1
                        description: 'Step Cannot Be Edited In Workflow Builder  enumValues: ""=No,X=Yes'
                        enum:
                        - ''
                        - X
                      TRIGTYPE:
                        type: string
                        maxLength: 1
                        description: 'Type of Event Creator  enumValues: ""=Trigger Event,L=Trigger Local Event'
                        enum:
                        - ''
                        - L
                      EVT_NAME:
                        type: string
                        maxLength: 32
                        description: Symbolic Event Name
                      CRL_NAME:
                        type: string
                        maxLength: 22
                        description: Name of a Correlation
                      CASETYPE:
                        type: string
                        maxLength: 1
                        description: 'Multiple Condition Type  enumValues: S=Switch,""=Case'
                        enum:
                        - S
                        - ''
                      BLCKTYPE:
                        type: string
                        maxLength: 1
                        description: 'Block Type  enumValues: P=ParForEach,""=Standard,S=ForEach'
                        enum:
                        - P
                        - ''
                        - S
                      PFE_USECTX:
                        type: string
                        maxLength: 1
                        description: 'ParForEach: Include Context  enumValues: X=Include Context,""=Do Not Include Context'
                        enum:
                        - X
                        - ''
                      BLCK_DLG:
                        type: string
                        maxLength: 1
                        description: 'Block Appears as Dialog Step in Inbox (GP)  enumValues: ""=Default Background Processing,X=Guided Procedures Action Set'
                        enum:
                        - ''
                        - X
              required:
              - ACT_TASK
              - ACT_WFDKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACT_NODES:
                    type: array
                    items:
                      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
                        NODEID:
                          type: integer
                          format: int64
                          description: Node Number
                        NODETYPE:
                          type: string
                          maxLength: 1
                          description: 'Node Type  enumValues: D=DECISION,F=FORK,T=TRIGGER,X=BLOCKSTART,Y=BLOCKEND,E=ENDIF,J=JOIN,Z=DEAD END,S=STEP,C=CASE,P=Container operation (ADD, MULTIPLY, ...),V=VOID,I=IF,R=RECEIVER,O=CONTROL'
                          enum:
                          - D
                          - F
                          - T
                          - X
                          - Y
                          - E
                          - J
                          - Z
                          - S
                          - C
                          - P
                          - V
                          - I
                          - R
                          - O
                        PARFORFLAG:
                          type: string
                          maxLength: 1
                          description: 'Flag for table-controled parallel processing  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        PARFOROBJ:
                          type: string
                          maxLength: 255
                          description: Multiline container element
                        MIN_TOKENS:
                          type: integer
                          format: int64
                          description: Number of branches necessary
                        EXP_TOKENS:
                          type: integer
                          format: int64
                          description: 'Workflow definition: Number of preceding nodes of a node'
                        BLOCKID:
                          type: integer
                          format: int64
                          description: ID of block in workflow definition
                        PAR_BLCKID:
                          type: integer
                          format: int64
                          description: ID of superordinate block in workflow definition
                        NEST_LEVEL:
                          type: integer
                          format: int64
                          description: Nesting level of current block in workflow definition
                        CONDIT_ID:
                          type: integer
                          format: int64
                          description: 'Workflow definition: Reference to a condition'
                        CASE_CONTE:
                          type: string
                          maxLength: 255
                          description: 'Workflow definition: Expression via container'
                        CONT_CMD:
                          type: integer
                          format: int64
                          description: 'Workflow definition: Workflow control  enumValues: 12=Function: Allocate,01=Process control: Cancel work item,13=Function: Substract,11=Function: Add,09=Process Control: Calculate Correlation,15=Function: Divide,14=Function: Multiply,18=Function: Append,02=Flow control: Cancel workflow'
                          enum:
                          - '12'
                          - '01'
                          - '13'
                          - '11'
                          - '09'
                          - '15'
                          - '14'
                          - '18'
                          - '02'
                        PARAMETER1:
                          type: string
                          maxLength: 255
                          description: First parameter with expression for user decision
                        PARAMETER2:
                          type: string
                          maxLength: 255
                          description: Second parameter with expression for user decision
                        PARAMETER3:
                          type: string
                          maxLength: 255
                          description: Third parameter with expression for user decision
                        PARAMETER4:
                          type: string
                          maxLength: 255
                          description: Fourth parameter with expression for user decision
                        EVT_TYPE:
                          type: string
                          maxLength: 32
                          description: Event for object type
                        EVT_OTYPE:
                          type: string
                          maxLength: 32
                          description: Type of Objects in Persistent Object References
                        EVT_CATID:
                          type: string
                          maxLength: 2
                          description: 'Object Type Category  enumValues: BO=BOR Object Type,BC=Business Class,XC=XML Object Type,CL=ABAP Class'
                          enum:
                          - BO
                          - BC
                          - XC
                          - CL
                        EVT_CONTEL:
                          type: string
                          maxLength: 255
                          description: Container element with object reference
                        REC_COUNT:
                          type: integer
                          format: int64
                          description: Number of Events for Wait Step
                        STEP_HIDE:
                          type: string
                          maxLength: 1
                          description: 'Display Node in Workflow Log  enumValues: X=Only in Technical Workflow Log,B=Condition ''Complete Work Item'' True: Not in Graf. Protocol,""=In All Workflow Logs'
                          enum:
                          - X
                          - B
                          - ''
                        NOEDIT:
                          type: string
                          maxLength: 1
                          description: 'Step Cannot Be Edited In Workflow Builder  enumValues: ""=No,X=Yes'
                          enum:
                          - ''
                          - X
                        TRIGTYPE:
                          type: string
                          maxLength: 1
                          description: 'Type of Event Creator  enumValues: ""=Trigger Event,L=Trigger Local Event'
                          enum:
                          - ''
                          - L
                        EVT_NAME:
                          type: string
                          maxLength: 32
                          description: Symbolic Event Name
                        CRL_NAME:
                          type: string
                          maxLength: 22
                          description: Name of a Correlation
                        CASETYPE:
                          type: string
                          maxLength: 1
                          description: 'Multiple Condition Type  enumValues: S=Switch,""=Case'
                          enum:
                          - S
                          - ''
                        BLCKTYPE:
                          type: string
                          maxLength: 1
                          description: 'Block Type  enumValues: P=ParForEach,""=Standard,S=ForEach'
                          enum:
                          - P
                          - ''
                          - S
                        PFE_USECTX:
                          type: string
                          maxLength: 1
                          description: 'ParForEach: Include Context  enumValues: X=Include Context,""=Do Not Include Context'
                          enum:
                          - X
                          - ''
                        BLCK_DLG:
                          type: string
                          maxLength: 1
                          description: 'Block Appears as Dialog Step in Inbox (GP)  enumValues: ""=Default Background Processing,X=Guided Procedures Action Set'
                          enum:
                          - ''
                          - X
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
