定制 studio1/workflow-extend 二次开发

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

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

studio1/workflow-extend

Composer 安装命令:

composer require studio1/workflow-extend

包简介

This bundles extends Pimcore's workflow engine and workflow designer with additional features.

README 文档

README

This bundles extends Pimcore's workflow engine and workflow designer with additional features.

It adds the possibility to change data during the workflow transition. It also adds a readonly field to place editor of the Pimcore workflow designer to display the state id.

Warning: This bundle is completely untested with the Pimcore community edition and will probably not work. Further work is needed to make it work with the community edition.

Dependencies

Will be automatically installed with composer:

Installation

Preparation

Before you require the bundle via composer, you need to add the following to your composer.json:

  "extra": {
    "enable-patching": true
  }

This will enable the composer patches plugin, for external dependencies.

Composer

composer require studio1/workflow-extend:[version]

During the installation process, the composer patches plugin will automatically apply the needed patches to the pimcore core files.

Please check if the patches were applied correctly. If not, you need to remove the vendor folder and run composer install again.

Enable Bundle

Enable the bundle as with any other Pimcore bundle, add it bundle.php.

Uninstall

composer remove studio1/workflow-extend

Please note that the composer patches plugin will not remove the patches automatically. You need to remove them manually.

Usage / Configuration

Warning: The bundle currently supports data objects and assets only (no documents etc.).

Configuration Explanation
class MAM- or PIM Class
attribute Attribute that will be changed during the transition
value Value that will be set on the given object/attribute
languages Languages for which the value should be set. Comma separated e.g. (de,de_DE,en,en_US). Not needed, if localized fields are not available or languagesSetAll is set.
languagesSetAll The value will be applied for all available languages

For Pimcore Enterprise Projects, you can configure the workflow transitions in the backend:

Backend Configuration

In Pimcore Community Edition, you need to populate the data option (implemented by this bundle) in your workflow configuration:

  transitions:
    example-transition:
      options:
        label: 'Example transition'
        # ...
        # data that will be changed during the transition
        data:
          class: Basic
          attribute: Title
          value: test
          languages: 'de,de_DE'
          languagesSetAll: true

Logs

Can be found in var/log/workflow-extend-bundle.log.

Main components

  • transitionSettings.js.patch
    • Extends the Pimcore Workflow Designer by additional fields for the transition settings popup
  • SetAttributeSubscriber.php
    • Listens to the workflow.transition event and changes the data
  • addDiConfiguration.patch
    • Adds the data option to the workflow configuration
    • A patch file is needed, since there is no other way to extend the dependency injection configuration of the workflow bundle
  • placeSettings.js.patch
    • Extends the Pimcore Workflow Designer by additional field for the state id
    • Backend Configuration

studio1/workflow-extend 适用场景与选型建议

studio1/workflow-extend 是一款 基于 JavaScript 开发的 Composer 扩展包,目前已累计 30 次下载、GitHub Stars 达 2, 最近一次更新时间为 2023 年 03 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 studio1/workflow-extend 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 studio1/workflow-extend 我们能提供哪些服务?
定制开发 / 二次开发

基于 studio1/workflow-extend 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

  • Stars: 2
  • Watchers: 2
  • Forks: 0
  • 开发语言: JavaScript

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-03-21