共生库/silverstripe-workflow-actions

一组有用的工作流操作

安装量: 8,619

依赖项: 0

建议者: 0

安全: 0

星标: 0

关注者: 1

分支: 5

开放问题: 2

类型:silverstripe-vendormodule

1.4.2 2022-05-10 04:18 UTC

This package is auto-updated.

Last update: 2024-09-10 09:18:02 UTC


README

Build Status Latest Stable Version Latest Unstable Version Total Downloads License

一套工作流操作和扩展,用于扩展正常高级工作流功能

  • 分配内容审批者 - 允许您为特定的内容树指定审批组和发布组,工作流可以使用这些组进行分配。允许更灵活的工作流定义。
  • ElementalPageWorkflowExtension & WorkflowedElement - 允许跟踪父页面上元素的变化,以确保工作流过程可以在父页面上运行。
  • 右侧工作流 - 将工作流交互移动到侧边栏,而不是隐藏在标签页中

Composer 安装

composer require symbiote/silverstripe-workflow-actions:~1.0

需求

  • SilverStripe 4.1+

文档

根据需要添加以下配置

Page:
  extensions:
    - Symbiote\AdvancedWorkflow\Extension\ContentApproversExtension

# If using elemental, this helps track changes on elements in the containing
# parent page for review processes.
Page:
  extensions:
    - Symbiote\AdvancedWorkflow\Extension\ElementalPageWorkflowExtension
BaseElement:
  extensions:
    - Symbiote\AdvancedWorkflow\Extension\WorkflowedElement

# If using the **Timeout Transition Action**, you'll want to add this
# config to setup the **Workflow Timeout Job** as a default job
---
Name: workflow_actions_jobs
Only:
  moduleexists: symbiote/silverstripe-queuedjobs
---
SilverStripe\Core\Injector\Injector:
  Symbiote\QueuedJobs\Services\QueuedJobService:
    properties:
      defaultJobs:
        WorkflowTimeoutJob:
          type: 'Symbiote\AdvancedWorkflow\Jobs\WorkflowTimeoutJob'
          filter:
            JobTitle: 'Workflow Timeout Job'
          construct:
            -
          startDateFormat: 'Y-m-d H:i:s'
          # FREQUENCY OF TIMEOUT CHECKS
          startTimeString: 'now + 1 hour'
          recreate: 1
          # ADMIN EMAIL HERE
          email: 'admin@example.com'