netzmacht/workflow 问题修复 & 功能扩展

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

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

netzmacht/workflow

最新稳定版本:2.1.1

Composer 安装命令:

composer require netzmacht/workflow

包简介

Workflow library

README 文档

README

Build Status Version Code quality Code coverage

This is a framework independent workflow library. It provides an step-transition based workflow implementation for processing entities through its life cycle.

Due to its data format and framework independence it does not run as a standalone workflow library. The entity/data implementation and input processing via forms have to be implemented. This workflow library is more a skeleton for your workflow requirements.

Features

The main concept

  • An entity processes different steps in its lifecycle.
  • The process between two steps is called Transition.
  • A transition can depend on conditions which determine if the transition is available.
  • Each transition contains a list of actions which are performed to reach the next step.
  • Actions can require additional user input to perform the transition.
  • User input are handled by a form.

Workflow items

  • The Item wraps the entity to provide workflow related information.
  • It knows the current state and the whole state history.
  • Due to the flexibility of the data structure the EntityId is used to identify an entity.

Worfklow

  • An workflow is defined for a specific entities from a specific data provider.
  • The workflow is the definition of multiple steps and their transitions.
  • A workflow always has one start transition.
  • It can have multiple end transitions.

Manager

  • There can be multiple workflow definitions for the same data provider.
  • The manager selects the matching workflow and creates the transition handler.
  • At the moment an item can only be in one workflow.

Permissions

  • Transitions and steps can can be limited to an permission.
  • Checking the permission and organizing them is part of the current implementation.

More features

  • Collection based repositories.
  • Transaction save transitions.
  • Flexible config system for workflows, steps and transitions.

Requirements

This library requires at least PHP 7.1.

Changelog

See the CHANGELOG.md

Example

You may have a look at the examples.

A concrete implementation is available as integration for CMS Contao netzmacht/contao-workflow.

Credits

This library is heavenly inspired by the great workflow implementation of orocrm plattform and got some concepts from the LexikWorkflowBundle.

统计信息

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

GitHub 信息

  • Stars: 37
  • Watchers: 5
  • Forks: 8
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2014-11-21

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固