定制 cleverage/process-ui-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

cleverage/process-ui-bundle

最新稳定版本:v1.0.6

Composer 安装命令:

composer require cleverage/process-ui-bundle

包简介

UI for cleverage/process-bundle

README 文档

README

Code Style Composer

CleverAge/ProcessUIBundle

This bundle is deprecated, use CleverAge/UiProcessBundle instead

A simple UX for cleverage/processbundle using EasyAdmin

Installation

  • Import routes
#config/routes.yaml
process-ui:
  resource: '@CleverAgeProcessUiBundle/Resources/config/routes.yaml'
  • Run doctrine migration
  • Create an user using cleverage:process-ui:user-create console.

Now you can access Process UI via http://your-domain.com/process

Indexing logs

You can index logs line into database to perform search on Process > History page. See configuration section.

When indexation is enabled you can perform it async.

#config/messenger.yaml
framework:
  messenger:
    transports:
      log_index: 'doctrine://default'

    routing:
      CleverAge\ProcessUiBundle\Message\LogIndexerMessage: log_index

Then you have to consume messages by running (use a supervisor to keep consumer alive)

bin/console messenger:consume log_index --memory-limit=64M

See official symfony/messenger component documentations for more informations https://symfony.com/doc/current/messenger.html

Integrate CrudController

Of course you can integrate ProcessUI CRUD into your own easy admin Dashboard

    public function configureMenuItems(): iterable
    {
        /* ... your configuration */
        yield MenuItem::linkToCrud('History', null, ProcessExecution::class);
    }

Configuration

clever_age_process_ui:
  index_logs:
  enabled: false
  level: ERROR #Minimum log level to index. Allowed values are DEBUG, INFO, NOTICE, WARNING, ERROR, CRITICAL, ALERT, EMERGENCY

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-01-28