@sinoform/flow-route-control-exec-context
TypeScript icon, indicating that this package has built-in type declarations

1.18.11 • Public • Published

flow-route-control-exec-context

提供流程控制公式执行上下文:

  • 读取字段数据
  • 定义各种操作符实际的执行逻辑(如等于、大于、包含等)

示例:

import buildExecContext from '@sinoform/flow-route-control-exec-context';
import interpreter from '@sinoform/flow-control-expression';

// 创建公式的执行环境
const execContext = buildExecContext(formData, currentUser);
// 解析并执行公式(备注,在执行公式时,需要通过execContext获取到表单字段的值以及各个操作符如何执行比较关系的函数)
const result = interpreter('发送人单位 == "公文处"', execContext);

Readme

Keywords

none

Package Sidebar

Install

npm i @sinoform/flow-route-control-exec-context

Weekly Downloads

4

Version

1.18.11

License

MIT

Unpacked Size

47 kB

Total Files

62

Last publish

Collaborators

  • jackingliu
  • maitian0222
  • tianyanqiu
  • longniansheng