@camunda/rpa-integration

中文文档
2.0.0发布于 2026/10/13Camunda License 1.0CommonJS近 30 天下载 1.5万

[!Info] > This repository is still a work in progress

原始使用文档
文档目录4 节
  1. Installation
  2. Usage
  3. RPA Editor
  4. Testing and Runner Configuration UI

[!Info] This repository is still a work in progress

@camunda/rpa-integration

UI components for Editing and testing RPA files within Camunda.

Installation

npm install @camunda/rpa-integration

Usage

RPA Editor

The Linrary exports RPAEditor. This is the main entry point and creates a monaco editor for RPA files along with a properties panel for metdata in the given container.

The Editor also handles the state for additional UI components. You can add a workerConfig to define which RPA worker instance should be used for testing.

import { RPAEditor } from '@camunda/rpa-integration';


const editor = RPACodeEditor({
  container: editorContainer,
  propertiesPanel: {
    container: propertiesContainer
  },
  workerConfig: {
    host: 'localhost',
    port: 36227
  },
  value: `{}`
});

The editor exposes an eventBus. You can listen to edits or configuration changes. The following events are exposed

  • model.changed: The file was changed
  • config.changed: The Runtime config was changed
  • dialog.run.open: Open the run Dialog (see Testing and Configuration UI)
  • dialog.config.open: Open the configuration Dialog (see Testing and Configuration UI)

Testing and Runner Configuration UI

Additionally, the editor exposes React Components you can use to render debugging UI. They expect an editor instance as prop.

The components are built on @camunda/design-system, a peer dependency. Load its styles once in your application:

import '@camunda/design-system/styles.css';

Dialogs expect to be rendered in a container and have an additional onSubmit callback. This is used when the form is submitted. You can use this callback to close a modal or similar element.

Example:

import React, { useEffect, useRef, useState } from 'react';

import { RunDialog } from '@camunda/rpa-integration';

function TestButton(props) {
  const editor = props.editor;
  const eventBus = editor.eventBus;

  const [ isOpen, setIsOpen ] = useState(false);
  const buttonRef = useRef();

  useEffect(() => {
    const cb = () => {
      setIsOpen(true);
    };

    eventBus.on('dialog.run.open', cb);

    return () => {
      eventBus.off('dialog.run.open', cb);
    };
  }, [ eventBus ]);

  const onClose = () => {
    setIsOpen(false);
  };

  return <>
    <button
      ref={ buttonRef }
      onClick={ () => setIsOpen(!isOpen) }
    >
      Test RPA Script
    </button>

    { isOpen &&
        <div style={ { padding: '12px' } }>
          <RunDialog
            editor={ editor }
            onSubmit={ onClose }
          />
        </div>
    }
  </>;
}

版本与发布记录

@camunda/rpa-integration 共发布 39 个版本,首次发布于 2024/12/18;过去 12 个月发布了 8 个版本。

版本发布日期距今
2.0.0latest2026/10/1326 天前
1.4.02026/09/291 个月前
1.3.42026/03/048 个月前
1.3.32026/03/048 个月前
1.3.22025/12/1810 个月前
1.3.12025/12/0411 个月前

其他发布通道:next → 1.1.0-alpha.3。

关于 @camunda/rpa-integration 的常见问题

@camunda/rpa-integration 是什么?

[!Info] > This repository is still a work in progress

如何安装 @camunda/rpa-integration?

在项目目录运行 npm install @camunda/rpa-integration,或使用 pnpm add / yarn add / bun add。它还需要宿主项目提供 peer 依赖:react(^19)、preact(*)、react-dom(^19)、@camunda/design-system(>=0.63.0)。npm 7 及以上与 pnpm 8 及以上默认会自动安装必需的 peer 依赖,Yarn 需要手动安装。

@camunda/rpa-integration 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/camunda__rpa-integration 是否存在。

@camunda/rpa-integration 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@camunda/rpa-integration 可以商用吗?

@camunda/rpa-integration 使用 Camunda License 1.0 许可。声明的许可为 Camunda License 1.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@camunda/rpa-integration 的下载量有多少?

根据 npm 官方下载统计,@camunda/rpa-integration 在 2026/10/09 – 2026/11/07 这 30 天内被下载 15,402 次,日均约 513 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@camunda/rpa-integration 还在维护吗?

最新版本 2.0.0 发布于 2026/10/13(26 天前);至今共发布 39 个版本,其中过去 12 个月发布了 8 个;首次发布于 2024/12/18。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。