npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@pubinfo-pr/module-process-engine

v0.238.1

Published

流程引擎,包含流程创建、流程管理以及流程发起

Readme

@pubinfo/module-process-engine

Pubinfo 的流程引擎模块,覆盖流程定义、流程设计、流程发起、待办/已办/抄送、流程实例与任务管理等页面能力。

它在做什么

  • 提供 processEngine() 模块注册函数
  • 缓存业务侧的 request 实例和 yewuPages 动态页面映射
  • 内置流程中心页面:
    • 发起流程
    • 我的流程
    • 待办 / 已办 / 抄送
    • 流程任务与流程实例管理
  • 内置流程设计能力:
    • 流程模型列表
    • 流程定义
    • 表达式、监听器、流程分类
    • BPMN / LogicFlow 设计器
  • 支持业务表单动态注册和流程详情联动展示

基本用法

import { processEngine } from '@pubinfo/module-process-engine';

const yewuPages = import.meta.glob('./pages/**/*.vue');

export function setupProcessEngine() {
  return processEngine({
    request: basic,
    yewuPages,
  });
}

yewuPages 是什么

模块内部有一个 registerComponent(),会从 yewuPages 里按路径匹配业务表单组件。因此如果你的流程发起页、审批详情页需要渲染业务自定义表单,就需要把这些页面文件通过 import.meta.glob() 传进来。

模块内容概览

  • pages/flow-center: 发起流程、我的流程
  • pages/approve-center: 待办、已办、抄送
  • pages/flow-manage: 流程实例、流程任务、流程详情
  • pages/flow-create: 流程模型设计器、监听器、表达式、流程类型
  • pages/yewu / pages/process/yewu: 业务表单发起与流程关联页

主要依赖特征

从代码看,这个模块明显依赖:

  • alova 风格请求实例
  • @pubinfo/module-rbac 权限体系
  • LogicFlowbpmn-js 流程设计能力
  • Pubinfo 约定的页面路由与组件体系

适用场景

适合已经基于 Pubinfo 搭建后台系统,并且需要“流程建模 + 流程审批 + 业务表单驱动”的一体化流程模块的项目。