Skip to main content

提供支持django rest framework的viewflow

Project description

viewflow-rest

provide restful viewflow

many of code in the project looks like django-viewflow. I want to keep the interface as same as the django viewflow.

Thanks you for all the contributors of viewflow.

The project is under GPL-3.0 License, any one who change the source code (even if you just use it in intranet of just at home) should upload his code

Example

hr_system/hire/flows.py

  • 中文版
  • English

Quick Start

use the hr_system as a example

git clone git@github.com:ramwin/viewflow-rest.git
cd vieflow-rest/hr_system/
sudo pip3 install -r ./requirements.txt
# add '#' in the file hr_system/urls.py
# so that you can run migrate
# # path("hire/", include("hire.urls")),
python3 manage.py migrate
# delete the # in the file hr_system/urls.py
python3 manage.py migrate
python3 manage.py runserver

The develop vedio can been seen here

  1. create project
  2. create Flow
  3. Create Start & End Node
  4. Create ViewActivation
  5. Create If Node
  6. Create Split Node
  7. Create Join Node
  8. Create Permission
  9. 0.3.0
    • one task for every flow_task
    • add serializer_class parameters for rest_extentions.views
    • add operator for every task

workflow

A flow contains many nodes
every node is a instance of Node every node have a activation_class
every action_class instance will activate_next by

self.flow_task._next  // the next node instance
self.flow_task._next.activate // 

Edge

  • src: source Node instance
  • dst: target Node instance

activations

  • Attribute
    • flow_class
    • flow_task: Node Instance defined in the flows.py
    • task: Current Task

Nodes

  • Function
    • _incoming: Edge Instance list
    • _outgoing: Edge Instance list
  1. models

  2. Views

  3. Flow

  4. rest_extensions

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

viewflow-rest-1.2.1.tar.gz (23.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

viewflow_rest-1.2.1-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file viewflow-rest-1.2.1.tar.gz.

File metadata

  • Download URL: viewflow-rest-1.2.1.tar.gz
  • Upload date:
  • Size: 23.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for viewflow-rest-1.2.1.tar.gz
Algorithm Hash digest
SHA256 9268d351c0114855e840bbef39aa7b4863be111dd12e640db07d02474ee334bb
MD5 cc63f962c999d693839454b740cd3103
BLAKE2b-256 98f6202149d814bf128bc2bdfcfa4b974bfa31c59c8bcebdb4dc3eafe67a4d15

See more details on using hashes here.

File details

Details for the file viewflow_rest-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: viewflow_rest-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 26.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/1.5.0 colorama/0.4.4 CPython/3.10.4

File hashes

Hashes for viewflow_rest-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 344456014b9239ca75360ddee36f7cf6ddc234cec303dd357acaccb90ff7fe3e
MD5 d5dbf6483a951f7a13f473e452545318
BLAKE2b-256 c2a5956ccb567b1d733299f5210bcb84e689563bcf6b5c719e50eb1f2be88c05

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page