Rill Flow Documentation

repository·main·Indexed 19 days ago

https://github.com/weibocom/rill-flow

A high-performance, scalable distributed workflow orchestration service for heterogeneous distributed systems. Rill Flow supports visual process orchestration, cloud-native container deployment, and integration with LLM services (AIGC). It includes a Vue3-based Flow Graph Frontend, a management UI, and supports both Python and Java executors, as well as a flow-let sidecar for HTTP microservices.

Tokens
17.3K
Snippets
71
Records
88
Agent score
59%

What's inside Rill Flow

  1. Prerequisites for Flow Graph Frontend

    main

    Before developing with Flow Graph Frontend, ensure you are familiar with the following technologies:

    • Core Runtime/Build: Node.js, Git, and Vite.
    • Frontend Framework: Vue3 and TypeScript.
    • UI & Graphing: Ant-Design-Vue (UI library) and Graph Editing Engine X6 (graphing engine).
    • Micro-frontends: QianKun.
    • Language: ES6+ syntax.
  2. QuickStart: Install Rill Flow via Docker-Compose

    main

    To run Rill Flow locally, ensure you have Docker and Docker-Compose installed on an OSX or Linux environment. Follow these steps to deploy the services:

    1. Clone the repository:

      git clone https://github.com/weibocom/rill-flow.git
    2. Navigate to the docker directory and start the services:

      cd rill-flow/docker
      docker-compose up -d

      Note: If using Docker Compose V2, use docker compose instead of docker-compose.

    3. Verify the installation by checking the container status:

      docker-compose ps

    Expected running services include rill-flow-mysql, rillflow_cache_1, rillflow_jaeger_1, rillflow_rill-flow_1, rillflow_sample-executor_1, and rillflow_ui_1.

    git clone https://github.com/weibocom/rill-flow.git
    cd rill-flow/docker
    docker-compose up -d
  3. Quickstart: Install and deploy Rill Flow via Docker Compose

    main

    To run Rill Flow locally, you need an OSX/Linux environment with Docker and Docker-Compose installed. Follow these steps to deploy the service using the provided Docker configuration:

    1. Clone the repository:

      git clone https://github.com/weibocom/rill-flow.git
    2. Start the services: Navigate to the docker directory within the cloned repository and run the compose command:

      cd rill-flow/docker
      docker-compose up -d

      Note: If you are using Docker Compose V2, use docker compose instead of docker-compose.

    3. Verify the installation: Run docker-compose ps to ensure all services are in the Up state. Expected services include rill-flow-mysql, rillflow_cache_1, rillflow_jaeger_1, rillflow_rill-flow_1, rillflow_sample-executor_1, and rillflow_ui_1.

    git clone https://github.com/weibocom/rill-flow.git
    cd rill-flow/docker
    docker-compose up -d
  4. Install and run Flow Graph Frontend

    main

    Flow Graph Frontend is a Vue3-based application utilizing the X6 Graph Editing Engine. To set up your development environment, follow these steps:

    1. Install nvm (Node Version Manager):
      curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.2/install.sh | bash
    2. Install Node.js v18.19.0 and set it as the default:
      nvm install v18.19.0
      nvm alias default v18.19.0
    3. Install pnpm globally:
      npm install -g pnpm --registry=https://registry.npmmirror.com
    4. Install dependencies in the flow-graph directory:
      cd flow-graph
      pnpm install
    5. Run the development server:
      pnpm serve
    6. Build for production:
      pnpm build:prod
    cd flow-graph
    pnpm install
    pnpm serve
  5. Execute and Monitor a Flow

    main

    After defining a flow, you can trigger its execution and monitor results:

    1. Test Execution: In the Flow Definition page, click the Test button, provide the required parameters, and click Submit.
    2. View Results: Upon submission, you will be redirected to the execution details page.
    3. Execution Records: To see a history of runs and their statuses, click the Execution Records button.
  6. Install dependencies and run Rill Flow UI

    main

    Navigate to the rill-flow-ui directory to install project dependencies and start the development server or build the production bundle.

    Install dependencies

    cd rill-flow-ui
    pnpm install

    Run development server

    pnpm serve

    Build for production

    pnpm build:prod
    cd rill-flow-ui
    pnpm install
    pnpm serve
    pnpm build:prod