viewflow | Reusable workflow library for Django | BPM library

 by   viewflow Python Version: 2.0.0a0 License: AGPL-3.0

kandi X-RAY | viewflow Summary

kandi X-RAY | viewflow Summary

viewflow is a Python library typically used in Automation, BPM applications. viewflow has no bugs, it has no vulnerabilities, it has build file available, it has a Strong Copyleft License and it has high support. You can install using 'pip install viewflow' or download it from GitHub, PyPI.

Reusable workflow library for Django
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              viewflow has a highly active ecosystem.
              It has 2359 star(s) with 377 fork(s). There are 104 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 27 open issues and 260 have been closed. On average issues are closed in 97 days. There are 2 open pull requests and 0 closed requests.
              It has a positive sentiment in the developer community.
              The latest version of viewflow is 2.0.0a0

            kandi-Quality Quality

              viewflow has 0 bugs and 0 code smells.

            kandi-Security Security

              viewflow has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              viewflow code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              viewflow is licensed under the AGPL-3.0 License. This license is Strong Copyleft.
              Strong Copyleft licenses enforce sharing, and you can use them when creating open source projects.

            kandi-Reuse Reuse

              viewflow releases are available to install and integrate.
              Deployable package is available in PyPI.
              Build file is available. You can build the component from source.
              viewflow saves you 9964 person hours of effort in developing the same functionality from scratch.
              It has 20293 lines of code, 353 functions and 112 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed viewflow and discovered the below as its top functions. This is intended to give you an instant insight into viewflow implemented functionality, and help decide if they suit your requirements.
            • Generate URL for flow url
            • Returns the package name for the given app label
            • Get the value of the property
            • Get the namespace for a flow class
            • Wrap a flow_job decorator
            • Restart the task
            • Import a task by its name
            • Create a new activation
            • Determine if this task is done
            • Return a list of permissions for the given user
            • Returns all available transitions for the given instance
            • Decorator to mark a field transition
            • Called when the task is finished
            • Redirect to the given task
            • Decorator to activate a function
            • Cancel the process
            • Return a list of urls
            • Creates a TaskActivation task
            • Decorator for activation functions
            • Called when the flow has finished
            • A decorator that activates a given view
            • Return URL for a task
            • Logs in a user
            • Include process data
            • Activate a flow start signal
            • Decorator to activate a flow function
            Get all kandi verified functions for this library.

            viewflow Key Features

            No Key Features are available at this moment for viewflow.

            viewflow Examples and Code Snippets

            Quick Start
            Pythondot img1Lines of Code : 10dot img1License : Strong Copyleft (GPL-3.0)
            copy iconCopy
            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 migr  
            Django Viewflow Demo,Installation
            CSSdot img2Lines of Code : 8dot img2no licencesLicense : No License
            copy iconCopy
            $ python3 -m venv env
            # or
            # virtualenv -p python3 env  # python 3.6 tested
            $ . env/bin/activate
            $ git clone https://github.com/rgharzeddine/django-viewflow-demo.git
            $ cd django-viewflow-demo
            $ pip install -r requirements.txt
            
              
            Django Viewflow Demo,Running Demo
            CSSdot img3Lines of Code : 5dot img3no licencesLicense : No License
            copy iconCopy
            $ . reset_flows.sh
            $ ./manage.py runserver 0.0.0.0:8000
            
            
            $ celery -A demo worker --loglevel=info
            
              
            django viewflow testing
            Pythondot img4Lines of Code : 27dot img4License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            class Test(TestCase):
                def setUp(self):
                    User.objects.create_superuser('admin', 'admin@example.com', 'password')
                    self.client.login(username='admin', password='password')
            
                def testApproved(self):
                    self.client.po
            Non Boolean comparisons in flow.switch().case() Django-Viewflow
            Pythondot img5Lines of Code : 4dot img5License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            cond=((lambda act: act.process.estado_de_aprobacion)=='APROBACION_FINAL')
            
            cond=lambda act: act.process.estado_de_aprobacion=='APROBACION_FINAL'
            
            Saving process data on another table in the database
            Pythondot img6Lines of Code : 5dot img6License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            @property
            def model(self):
                """Process class."""
                return self.activation.flow_class.process_class
            
            Viewflow Signal for New tasks?
            Pythondot img7Lines of Code : 11dot img7License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            class MyFlow(Flow):
                ...
            
                approve = (
                    MyView(flow_views.UpdateProcessView, fields=['approved'])
                    .onCreate(this.send_notification)
                    .Next(this.check_approve)
                )
            
            ...
            
            Django-Viewflow, customize archive view
            Pythondot img8Lines of Code : 23dot img8License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            # apps.py
            from django.apps import AppConfig
            from viewflow.frontend.apps import ViewflowFrontendConfig
            
            class FrontendConfig(ViewflowFrontendConfig):
                viewset = 'frontend.viewset.FrontendViewSet'
            
                def register(self, flow_class, views
            Separating Business Workflow from Django Application
            Pythondot img9Lines of Code : 6dot img9License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            processors = {"Apple": AppleProcessor, "Orange": OrangeProcessor}
            
            processor = processors.get(input)
            processor.process(*some_needed_args, **some_needed_kwargs)
            result = processor.get_result()
            
            How to render multiple forms in a single page using Material Design for django forms?
            Pythondot img10Lines of Code : 13dot img10License : Strong Copyleft (CC BY-SA 4.0)
            copy iconCopy
            {% form form=login_modal %}
                 form code here
            {% endform %}
            
            from viewflow.flow.views import PerformTaskView
            from .forms import LoginForm
            
            class MyView(PerformTaskView):
                def get_context_data(self, **kwargs):
             

            Community Discussions

            QUESTION

            How to place captcha on Django CreateView that uses Material Design Layout() feature
            Asked 2021-Sep-28 at 13:49

            I'm working in an existing codebase that uses Django Material. There is a CreateView defined with a Django Material Layout:

            ...

            ANSWER

            Answered 2021-Sep-28 at 13:49

            Following up on the comment from @Alasdair above which pointed me to the answer, I solved this problem by removing Django Material's LayoutMixin from CreateView, creating a Django form with the captcha field defined, and then adding to CreateView the form_class for the Django form. Also see my last comment above. It was counterintuitive to me until I looked again at the code after @Alasdair's second comment: the use of LayoutMixin on the CreateView isn't necessary for the layout = Layout(...) on the CreateView to work.

            Source https://stackoverflow.com/questions/69331591

            QUESTION

            DRF Django - make routable reverse foreign key relationship data
            Asked 2021-Sep-01 at 00:48

            I have the following models

            ...

            ANSWER

            Answered 2021-Sep-01 at 00:48

            In this case override get_queryset to filter out the objects that the nested viewset will work on, based on the selected stock ticker so:

            Source https://stackoverflow.com/questions/68995667

            QUESTION

            django-viewflow get task assign url for the next step?
            Asked 2021-May-20 at 02:19

            I have a typical workflow like below:

            ...

            ANSWER

            Answered 2021-May-19 at 10:26

            You could add it as flow.View(...).onCreate handler

            Source https://stackoverflow.com/questions/67495569

            QUESTION

            assign task no to the current user in viewflow
            Asked 2021-Jan-26 at 04:36

            I have been using viewflow for a while, and I managed to create my process without any problem.

            But now I need someone to review the work from someone else. I don't want to create roles for that simple task, because I want everybody to be able to review somebody's work at any time. In other words, there is one task (task1) that can be executed for everybody, but it cannot be executed for the same person that finished the previous task.

            ...

            ANSWER

            Answered 2021-Jan-26 at 04:36

            You could implement custom callable for the user selection.

            .Assing accepts a callable that should take a process activation and return a user instance, ex

            Source https://stackoverflow.com/questions/65777332

            QUESTION

            FlowRuntimeError viewflow django
            Asked 2020-Apr-08 at 11:34

            Really need you guys help here!

            Im currently using viewflow to construct my workflow on a django project. I wish to integrate django-jsignature3 with django-viewflow , however i have met with extreme difficulty in doing so.

            The documentations for viewflow is really confusing and the demo projects dont really have explanations so please be patient with me if what im asking is a dumb question.

            The error code is as shown below

            ...

            ANSWER

            Answered 2020-Apr-08 at 11:34

            If you use custom template, you need to include {{ activation.management_form }} inside

            tag

            ex: https://github.com/viewflow/cookbook/blob/master/custom_ui/templates/parcel/delivery/task.html#L15

            Source https://stackoverflow.com/questions/61028131

            QUESTION

            Fatal Exception: java.lang.NoSuchMethodError: No virtual method callEngineReleaseConnection(Lcom/squareup/okhttp/Call;)
            Asked 2020-Apr-01 at 23:39

            The complete error is described as follows:

            ...

            ANSWER

            Answered 2020-Apr-01 at 23:39

            I searched for a solution for a long time and found: It turned out there was a conflict between 'com.squareup.retrofit2: retrofit: 2.8.1' and 'com.google.firebase: firebase-firestore:18.0.0'. Just remove this: 'com.google.firebase:firebase-firestore:18.0.0' A source: https://en.programqa.com/question/58921485/

            Source https://stackoverflow.com/questions/60975171

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install viewflow

            You can install using 'pip install viewflow' or download it from GitHub, PyPI.
            You can use viewflow like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/viewflow/viewflow.git

          • CLI

            gh repo clone viewflow/viewflow

          • sshUrl

            git@github.com:viewflow/viewflow.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular BPM Libraries

            Try Top Libraries by viewflow

            django-material

            by viewflowCSS

            django-fsm

            by viewflowPython

            cookbook

            by viewflowPython

            jsonstore

            by viewflowPython

            docs

            by viewflowPython