phelixjuma/guiflow 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

phelixjuma/guiflow

最新稳定版本:v7.1.34

Composer 安装命令:

composer require phelixjuma/guiflow

包简介

GUIFlow is a no-code workflow builder

README 文档

README

GUIFlow is a no-code workflow builder.

Check the documentation for more details

REQUIREMENTS

  • PHP >= 8
  • justinrainbow/json-schema
  • wyndow/fuzzywuzzy
  • From v2.*, we have additional requirements:
    • Swoole: This package only works after you have installed Swoole extension and enabled the extension in your php.ini configuration file.
    • PHP DAG

INSTALLATION

composer require phelixjuma/guiflow

USAGE

$data = [
    'customer_name' => 'Naivas',
    'delivery_location' => 'Kilimani',
    'items' => [
        ['name' => 'Capon Chicken', 'quantity' => 2,'uom' => 'KGS', 'unit_price' => 100]
    ],
    "delivery_date" => "2023-09-04"
];

$config = json_decode('[{
    "rule": "Split orders for different brands",
    "skip": "0",
    "description": "",
    "stage": "split_orders",
    "dependencies": [],
    "condition": {
      "path": "items.*.matched_value.PrincipalCode",
      "operator": "exists"
    },
    "actions": [
      {
        "stage": "split_items",
        "description": "",
        "dependencies": [],
        "skip":"0",
        "action": "function",
        "path": "",
        "function": "split",
        "args": {
          "split_path": "items",
          "criteria_path": "items.*.matched_value.PrincipalCode"
        }
      }
    ]
  }]');
  
class userDefinedFunctionsClass {
    // class that defines all user defined functions outside the package ecosystem. 
}

$udfObj = new userDefinedFunctionsClass();

$workflow = new Workflow($config, $udfObj);
$workflow->run($data, true); // set second parameter to true for parallel execution        

print_r($data); // this will show the modified data

统计信息

  • 总下载量: 763
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-04-13