Flowable Process Instance Variables API

The Process Instance Variables API from Flowable — 5 operation(s) for process instance variables.

Operations 11

GET /runtime/process-instances/{processInstanceId}/variables List variables for a process instance #
POST /runtime/process-instances/{processInstanceId}/variables Create variables or new binary variable on a process instance #
PUT /runtime/process-instances/{processInstanceId}/variables Update a multiple/single (non)binary variable on a process instance #
DELETE /runtime/process-instances/{processInstanceId}/variables Delete all variables #
POST /runtime/process-instances/{processInstanceId}/variables-async Create variables or new binary variable on a process instance asynchronously #
PUT /runtime/process-instances/{processInstanceId}/variables-async Update multiple/single (non)binary variables on a process instance asynchronously #
PUT /runtime/process-instances/{processInstanceId}/variables-async/{variableName} Update a single variable on a process instance asynchronously #
GET /runtime/process-instances/{processInstanceId}/variables/{variableName} Get a variable for a process instance #
PUT /runtime/process-instances/{processInstanceId}/variables/{variableName} Update a single variable on a process instance #
DELETE /runtime/process-instances/{processInstanceId}/variables/{variableName} Delete a variable #
GET /runtime/process-instances/{processInstanceId}/variables/{variableName}/data Get the binary data for a variable #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/flowable-process-instance-variables-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

flowable-process-instance-variables-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: '# flowable / flowəb(ə)l /


    - a compact and highly efficient workflow and Business Process Management (BPM) platform for developers, system admins and business users.

    - a lightning fast, tried and tested BPMN 2 process engine written in Java. It is Apache 2.0 licensed open source, with a committed community.

    - can run embedded in a Java application, or as a service on a server, a cluster, and in the cloud. It integrates perfectly with Spring. With a rich Java and REST API, it is the ideal engine for orchestrating human or system activities.'
  version: v1
  title: Flowable REST Access Tokens Process Instance Variables API
  contact:
    name: Flowable
    url: http://www.flowable.org/
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0.html
servers:
- url: /flowable-rest/service
tags:
- name: Process Instance Variables
paths:
  /runtime/process-instances/{processInstanceId}/variables:
    get:
      tags:
      - Process Instance Variables
      summary: List variables for a process instance
      description: In case the variable is a binary variable or serializable, the valueUrl points to an URL to fetch the raw value. If it’s a plain variable, the value is present in the response. Note that only local scoped variables are returned, as there is no global scope for process-instance variables.
      operationId: listProcessInstanceVariables
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: scope
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Indicates the process instance was found and variables are returned.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/RestVariable'
        '400':
          description: Indicates the requested process instance was not found.
      security:
      - basicAuth: []
    post:
      tags:
      - Process Instance Variables
      summary: Create variables or new binary variable on a process instance
      description: 'This endpoint can be used in 2 ways: By passing a JSON Body (RestVariable or an array of RestVariable) or by passing a multipart/form-data Object.

        Nonexistent variables are created on the process-instance and existing ones are overridden without any error.

        Any number of variables can be passed into the request body array.

        Note that scope is ignored, only local variables can be set in a process instance.

        NB: Swagger V2 specification does not support this use case that is why this endpoint might be buggy/incomplete if used with other tools.'
      operationId: createProcessInstanceVariable
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        $ref: '#/components/requestBodies/ProcessInstanceVariableCollectionResource'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
        '201':
          description: Indicates the process instance was found and variable is created.
        '400':
          description: Indicates the request body is incomplete or contains illegal values. The status description contains additional information about the error.
        '404':
          description: Indicates the requested process instance was not found.
        '409':
          description: Indicates the process instance was found but already contains a variable with the given name (only thrown when POST method is used). Use the update-method instead.
      security:
      - basicAuth: []
    put:
      tags:
      - Process Instance Variables
      summary: Update a multiple/single (non)binary variable on a process instance
      description: 'This endpoint can be used in 2 ways: By passing a JSON Body (RestVariable or an array of RestVariable) or by passing a multipart/form-data Object.

        Nonexistent variables are created on the process-instance and existing ones are overridden without any error.

        Any number of variables can be passed into the request body array.

        Note that scope is ignored, only local variables can be set in a process instance.

        NB: Swagger V2 specification does not support this use case that is why this endpoint might be buggy/incomplete if used with other tools.'
      operationId: createOrUpdateProcessVariable
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        $ref: '#/components/requestBodies/ProcessInstanceVariableCollectionResource'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                type: object
        '201':
          description: Indicates the process instance was found and variable is created.
        '400':
          description: Indicates the request body is incomplete or contains illegal values. The status description contains additional information about the error.
        '404':
          description: Indicates the requested process instance was not found.
        '415':
          description: Indicates the serializable data contains an object for which no class is present in the JVM running the Flowable engine and therefore cannot be deserialized.
      security:
      - basicAuth: []
    delete:
      tags:
      - Process Instance Variables
      summary: Delete all variables
      description: ''
      operationId: deleteLocalProcessVariable
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      responses:
        '204':
          description: Indicates variables were found and have been deleted. Response-body is intentionally empty.
        '404':
          description: Indicates the requested process instance was not found.
      security:
      - basicAuth: []
  /runtime/process-instances/{processInstanceId}/variables-async:
    post:
      tags:
      - Process Instance Variables
      summary: Create variables or new binary variable on a process instance asynchronously
      description: 'This endpoint can be used in 2 ways: By passing a JSON Body (RestVariable or an array of RestVariable) or by passing a multipart/form-data Object.

        Nonexistent variables are created on the process-instance and existing ones are overridden without any error.

        Any number of variables can be passed into the request body array.

        Note that scope is ignored, only local variables can be set in a process instance.

        NB: Swagger V2 specification does not support this use case that is why this endpoint might be buggy/incomplete if used with other tools.'
      operationId: createProcessInstanceVariableAsync
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        $ref: '#/components/requestBodies/ProcessInstanceVariableCollectionResource'
      responses:
        '201':
          description: Indicates the job to create the variables was created.
        '400':
          description: Indicates the request body is incomplete or contains illegal values. The status description contains additional information about the error.
        '409':
          description: Indicates the process instance was found but already contains a variable with the given name (only thrown when POST method is used). Use the update-method instead.
      security:
      - basicAuth: []
    put:
      tags:
      - Process Instance Variables
      summary: Update multiple/single (non)binary variables on a process instance asynchronously
      description: 'This endpoint can be used in 2 ways: By passing a JSON Body (RestVariable or an array of RestVariable) or by passing a multipart/form-data Object.

        Nonexistent variables are created on the process-instance and existing ones are overridden without any error.

        Any number of variables can be passed into the request body array.

        Note that scope is ignored, only local variables can be set in a process instance.

        NB: Swagger V2 specification does not support this use case that is why this endpoint might be buggy/incomplete if used with other tools.'
      operationId: createOrUpdateProcessVariableAsync
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      requestBody:
        $ref: '#/components/requestBodies/ProcessInstanceVariableCollectionResource'
      responses:
        '201':
          description: Indicates the job to create or update the variables was created.
        '400':
          description: Indicates the request body is incomplete or contains illegal values. The status description contains additional information about the error.
        '415':
          description: Indicates the serializable data contains an object for which no class is present in the JVM running the Flowable engine and therefore cannot be deserialized.
      security:
      - basicAuth: []
  /runtime/process-instances/{processInstanceId}/variables-async/{variableName}:
    put:
      tags:
      - Process Instance Variables
      summary: Update a single variable on a process instance asynchronously
      description: 'This endpoint can be used in 2 ways: By passing a JSON Body (RestVariable) or by passing a multipart/form-data Object.

        Nonexistent variables are created on the process-instance and existing ones are overridden without any error.

        Note that scope is ignored, only local variables can be set in a process instance.

        NB: Swagger V2 specification does not support this use case that is why this endpoint might be buggy/incomplete if used with other tools.'
      operationId: updateProcessInstanceVariableAsync
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: variableName
        in: path
        required: true
        schema:
          type: string
      requestBody:
        $ref: '#/components/requestBodies/ProcessInstanceVariableCollectionResource'
      responses:
        '201':
          description: Indicates the job to update the variable has been created.
        '404':
          description: Indicates the process instance does not have a variable with the given name. Status description contains additional information about the error.
      security:
      - basicAuth: []
  /runtime/process-instances/{processInstanceId}/variables/{variableName}:
    get:
      tags:
      - Process Instance Variables
      summary: Get a variable for a process instance
      description: ''
      operationId: getProcessInstanceVariable
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: variableName
        in: path
        required: true
        schema:
          type: string
      - name: scope
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Indicates both the process instance and variable were found and variable is returned.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestVariable'
        '404':
          description: Indicates the requested process instance was not found or the process instance does not have a variable with the given name. Status description contains additional information about the error.
      security:
      - basicAuth: []
    put:
      tags:
      - Process Instance Variables
      summary: Update a single variable on a process instance
      description: 'This endpoint can be used in 2 ways: By passing a JSON Body (RestVariable) or by passing a multipart/form-data Object.

        Nonexistent variables are created on the process-instance and existing ones are overridden without any error.

        Note that scope is ignored, only local variables can be set in a process instance.

        NB: Swagger V2 specification does not support this use case that is why this endpoint might be buggy/incomplete if used with other tools.'
      operationId: updateProcessInstanceVariable
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: variableName
        in: path
        required: true
        schema:
          type: string
      requestBody:
        $ref: '#/components/requestBodies/ProcessInstanceVariableCollectionResource'
      responses:
        '200':
          description: successful operation
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestVariable'
        '201':
          description: Indicates both the process instance and variable were found and variable is updated.
        '404':
          description: Indicates the requested process instance was not found or the process instance does not have a variable with the given name. Status description contains additional information about the error.
      security:
      - basicAuth: []
    delete:
      tags:
      - Process Instance Variables
      summary: Delete a variable
      description: ''
      operationId: deleteProcessInstanceVariable
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: variableName
        in: path
        required: true
        schema:
          type: string
      - name: scope
        in: query
        required: false
        schema:
          type: string
      responses:
        '204':
          description: Indicates the variable was found and has been deleted. Response-body is intentionally empty.
        '404':
          description: Indicates the requested variable was not found.
      security:
      - basicAuth: []
  /runtime/process-instances/{processInstanceId}/variables/{variableName}/data:
    get:
      tags:
      - Process Instance Variables
      summary: Get the binary data for a variable
      description: ''
      operationId: getProcessInstanceVariableData
      parameters:
      - name: processInstanceId
        in: path
        required: true
        schema:
          type: string
      - name: variableName
        in: path
        required: true
        schema:
          type: string
      - name: scope
        in: query
        required: false
        schema:
          type: string
      responses:
        '200':
          description: Indicates the process instance was found and the requested variables are returned.
          content:
            '*/*':
              schema:
                type: array
                items:
                  type: string
                  format: byte
        '404':
          description: Indicates the requested task was not found or the task does not have a variable with the given name (in the given scope). Status message provides additional information.
      security:
      - basicAuth: []
components:
  schemas:
    RestVariable:
      type: object
      properties:
        name:
          type: string
          example: myVariable
          description: Name of the variable
        type:
          type: string
          example: string
          description: Type of the variable.
        value:
          type: object
          example: test
          description: Value of the variable.
        valueUrl:
          type: string
          example: http://....
        scope:
          type: string
  requestBodies:
    ProcessInstanceVariableCollectionResource:
      content:
        multipart/form-data:
          schema:
            type: object
            properties:
              file:
                type: string
                format: binary
              name:
                example: Simple content item
                type: string
              type:
                example: integer
                type: string
      description: Create a variable on a process instance
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic