No project description provided
Project description
SCF_FSM_PACKAGE
A resuable django application that can handle transition and workflow's in your project .
Authors
Installation
Install scf_fsm_package with pip
pip install django-venzo-scf==1.0.5
In your django application , browse to installed_apps section in settings.py and add this ,
INSTALLED_APPS = [
'finflo'
]
if you want party you can customize whatever you want add this finflo section in your settings.py
FINFLO = {
'FROM_PARTY' : 'django_app.model_name', # example
'FROM_PARTY' : 'accounts.party',
'TO_PARTY' : 'accounts.party'
}
or else
FINFLO = {
'FROM_PARTY' : None,
'TO_PARTY' : None
}
now navigate to the middleware section and add the finflo middleware
MIDDLEWARE = [
'finflo.middleware.TransitionUserMiddleware',
]
Additional Api (optional)
In your application's urls.py , you can include finflo's api urls for browsable api's
** make sure that you have installed DjangoRestFramework
Now add this peice of code in your urls.py
urlpatterns = [
path('', include('finflo.urls'))
]
Usage/Examples
-
import your transition function from finflo.views
-
The transition function requires 4 positional arguments :
-
Arguments Data_Type type str action str stage int id (optional) int
from finflo.views import finflo
myhandler = finflo()
# example function
def index():
myhandler.transition(type = "PROGRAM",action = "submit" ,stage = 0)
return HttpResponse({"data"})
Tech Stack
1. Python
2. Django==3.2.5
3. Django-rest-framework
API
Api urls
Api URL's | METHOD | QUERY_PARAMS |
---|---|---|
localhost/model/ | GET | ?type=PROGRAM |
localhost/action/ | GET | NONE |
localhost/action/ | POST | NONE |
localhost/workflowitems/ | GET | NONE |
localhost/workevents/ | GET | NONE |
Support
For support, email support@venzo.com .
Future
- postgres support
- next_Avail_transitions
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file finflo-1.3.0.tar.gz
.
File metadata
- Download URL: finflo-1.3.0.tar.gz
- Upload date:
- Size: 10.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b52693aee4165eb73214eb5373e00382b47dc0ada68db6bdce39ae45e10188ad |
|
MD5 | 6caf1b7e023301f66fb1c7917b9c56ee |
|
BLAKE2b-256 | 62bf583230829c509bc65fc01f535e230270d59ea752978648371531f2b839b6 |
File details
Details for the file finflo-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: finflo-1.3.0-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.8.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ded3d996ac718ff3da00b017e04f5251c6006d384dfb68a6f139c92da9fd7da5 |
|
MD5 | 7af635483df210c949e7d30fada8351f |
|
BLAKE2b-256 | 113e7636acf32cd4864d7a64326daab89980b3c6ac01dcf17f08c00d2bbaad3e |