openapi: 3.0.0
info:
  title: SAP API
  version: 1.0.0
servers:
- url: http://localhost:8080
paths:
  /rfc/SWD_STORE_WF_CONDITION:
    post:
      tags:
      - SWDB
      operationId: /rfc/SWD_STORE_WF_CONDITION
      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_CONDITION:
                  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
                      CONDTYPE:
                        type: string
                        maxLength: 2
                        description: 'WF: Type of condition  enumValues: PO=Condition for Completion of Work Item,PR=Condition Before Creation of Work Item,FO=Fork,UN=Loop (Until),IF=Condition (If)'
                        enum:
                        - PO
                        - PR
                        - FO
                        - UN
                        - IF
                      CONDSTYPE:
                        type: string
                        maxLength: 5
                        description: Condition Subtype
                      PARSE_TYP:
                        type: string
                        maxLength: 1
                        description: 'Condition Editor: Type of Line in Internal Display  enumValues: P=Parse information,.=New line,D=Data information,-=Expression,(=Left parenthesis,E=Expression for parse information,A=Header line (release, creator, last changer, language),R=Result expressions for true and false for a rule,X=Result expression in the event of error for a rule,)=Right parenthesis,*=Compressed parentheses (..),Z=Deleted, client-specific condition, structure like type ''A'''
                        enum:
                        - P
                        - .
                        - D
                        - '-'
                        - (
                        - E
                        - A
                        - R
                        - X
                        - )
                        - '*'
                        - Z
                      LINE_ID:
                        type: integer
                        format: int64
                        description: 'Condition Editor: Line Number in Internal Display'
                      LINE_TYP:
                        type: string
                        maxLength: 1
                        description: 'Condition Editor: Type of Line in Internal Display  enumValues: P=Parse information,.=New line,D=Data information,-=Expression,(=Left parenthesis,E=Expression for parse information,A=Header line (release, creator, last changer, language),R=Result expressions for true and false for a rule,X=Result expression in the event of error for a rule,)=Right parenthesis,*=Compressed parentheses (..),Z=Deleted, client-specific condition, structure like type ''A'''
                        enum:
                        - P
                        - .
                        - D
                        - '-'
                        - (
                        - E
                        - A
                        - R
                        - X
                        - )
                        - '*'
                        - Z
                      LEFTEXPR:
                        type: string
                        maxLength: 255
                        description: Relational expression
                      LEFTEXPTY:
                        type: string
                        maxLength: 1
                        description: 'Workflow expression type  enumValues: T=Condition,W=Rule System,V=Variable,Y=Expression is INITIAL (initial value according to type),F=Functional expression,C=Constant,I=Binding of an export element,Z=Expression is NIL,S=System variable,L=Logical Expression,X=Expression (variable or constant),A=Arithmetic expression,E=Binding to an import element,R=Rule'
                        enum:
                        - T
                        - W
                        - V
                        - Y
                        - F
                        - C
                        - I
                        - Z
                        - S
                        - L
                        - X
                        - A
                        - E
                        - R
                      RIGHTEXPR:
                        type: string
                        maxLength: 255
                        description: Relational expression
                      RIGHTEXPTY:
                        type: string
                        maxLength: 1
                        description: 'Workflow expression type  enumValues: T=Condition,W=Rule System,V=Variable,Y=Expression is INITIAL (initial value according to type),F=Functional expression,C=Constant,I=Binding of an export element,Z=Expression is NIL,S=System variable,L=Logical Expression,X=Expression (variable or constant),A=Arithmetic expression,E=Binding to an import element,R=Rule'
                        enum:
                        - T
                        - W
                        - V
                        - Y
                        - F
                        - C
                        - I
                        - Z
                        - S
                        - L
                        - X
                        - A
                        - E
                        - R
                      COMPOP:
                        type: string
                        maxLength: 2
                        description: 'Relational operator for condition and until loop  enumValues: <>=NE: Not equal,<=LT: Smaller,==EQ: Equal,>=GT: Greater,>==GE: Greater or equal,<==LE: Smaller or equal'
                        enum:
                        - <>
                        - <
                        - =
                        - '>'
                        - '>='
                        - <=
                      LOGOP:
                        type: string
                        maxLength: 3
                        description: 'Logical Operator for Boolean Conditions  enumValues: or=Or,and=And,xor=Exclusive Or'
                        enum:
                        - or
                        - and
                        - xor
                      NOTFLAG:
                        type: string
                        maxLength: 1
                        description: 'Negation Flag for Condition Evaluation (''NOT'')  enumValues: X=Not,""=Actual'
                        enum:
                        - X
                        - ''
              required:
              - ACT_TASK
              - ACT_WFDKEY
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                properties:
                  ACT_CONDITION:
                    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
                        CONDTYPE:
                          type: string
                          maxLength: 2
                          description: 'WF: Type of condition  enumValues: PO=Condition for Completion of Work Item,PR=Condition Before Creation of Work Item,FO=Fork,UN=Loop (Until),IF=Condition (If)'
                          enum:
                          - PO
                          - PR
                          - FO
                          - UN
                          - IF
                        CONDSTYPE:
                          type: string
                          maxLength: 5
                          description: Condition Subtype
                        PARSE_TYP:
                          type: string
                          maxLength: 1
                          description: 'Condition Editor: Type of Line in Internal Display  enumValues: P=Parse information,.=New line,D=Data information,-=Expression,(=Left parenthesis,E=Expression for parse information,A=Header line (release, creator, last changer, language),R=Result expressions for true and false for a rule,X=Result expression in the event of error for a rule,)=Right parenthesis,*=Compressed parentheses (..),Z=Deleted, client-specific condition, structure like type ''A'''
                          enum:
                          - P
                          - .
                          - D
                          - '-'
                          - (
                          - E
                          - A
                          - R
                          - X
                          - )
                          - '*'
                          - Z
                        LINE_ID:
                          type: integer
                          format: int64
                          description: 'Condition Editor: Line Number in Internal Display'
                        LINE_TYP:
                          type: string
                          maxLength: 1
                          description: 'Condition Editor: Type of Line in Internal Display  enumValues: P=Parse information,.=New line,D=Data information,-=Expression,(=Left parenthesis,E=Expression for parse information,A=Header line (release, creator, last changer, language),R=Result expressions for true and false for a rule,X=Result expression in the event of error for a rule,)=Right parenthesis,*=Compressed parentheses (..),Z=Deleted, client-specific condition, structure like type ''A'''
                          enum:
                          - P
                          - .
                          - D
                          - '-'
                          - (
                          - E
                          - A
                          - R
                          - X
                          - )
                          - '*'
                          - Z
                        LEFTEXPR:
                          type: string
                          maxLength: 255
                          description: Relational expression
                        LEFTEXPTY:
                          type: string
                          maxLength: 1
                          description: 'Workflow expression type  enumValues: T=Condition,W=Rule System,V=Variable,Y=Expression is INITIAL (initial value according to type),F=Functional expression,C=Constant,I=Binding of an export element,Z=Expression is NIL,S=System variable,L=Logical Expression,X=Expression (variable or constant),A=Arithmetic expression,E=Binding to an import element,R=Rule'
                          enum:
                          - T
                          - W
                          - V
                          - Y
                          - F
                          - C
                          - I
                          - Z
                          - S
                          - L
                          - X
                          - A
                          - E
                          - R
                        RIGHTEXPR:
                          type: string
                          maxLength: 255
                          description: Relational expression
                        RIGHTEXPTY:
                          type: string
                          maxLength: 1
                          description: 'Workflow expression type  enumValues: T=Condition,W=Rule System,V=Variable,Y=Expression is INITIAL (initial value according to type),F=Functional expression,C=Constant,I=Binding of an export element,Z=Expression is NIL,S=System variable,L=Logical Expression,X=Expression (variable or constant),A=Arithmetic expression,E=Binding to an import element,R=Rule'
                          enum:
                          - T
                          - W
                          - V
                          - Y
                          - F
                          - C
                          - I
                          - Z
                          - S
                          - L
                          - X
                          - A
                          - E
                          - R
                        COMPOP:
                          type: string
                          maxLength: 2
                          description: 'Relational operator for condition and until loop  enumValues: <>=NE: Not equal,<=LT: Smaller,==EQ: Equal,>=GT: Greater,>==GE: Greater or equal,<==LE: Smaller or equal'
                          enum:
                          - <>
                          - <
                          - =
                          - '>'
                          - '>='
                          - <=
                        LOGOP:
                          type: string
                          maxLength: 3
                          description: 'Logical Operator for Boolean Conditions  enumValues: or=Or,and=And,xor=Exclusive Or'
                          enum:
                          - or
                          - and
                          - xor
                        NOTFLAG:
                          type: string
                          maxLength: 1
                          description: 'Negation Flag for Condition Evaluation (''NOT'')  enumValues: X=Not,""=Actual'
                          enum:
                          - X
                          - ''
        '400':
          description: Bad request.
        5XX:
          description: Unexpected error.
