django-viewflow

viewflow.io: implementing a queue task

萝らか妹 提交于 2019-12-03 15:53:46
I would like to implement the following use case with the ViewFlow library : Problem Processes of a particular Flow, started by a user, must wait in a queue before executing a celery job. Each user has a queue of these processes. Based on a schedule, or triggered manually, the next process in the queue is allowed to proceed. Example A node within my flow enters a named queue. Other logic within the application determines, for each queue, when to allow the next task to proceed. The next task in the queue is selected and its activation's done() method called. An example flow might look like this

Process Views outside viewflow.frontend

余生长醉 提交于 2019-12-01 10:33:21
I want to integrate processes, starting them etc., outside of the standard viewflow.frontend . To do I have been trying to create a simple page where I can start a new process, but have been struggling to find a way to implement it. One approach was to defined a url to url('^start_something, CustomStartView.as_view()) with CustomStartView subclassing CreateProcessView from viewflow.flow.views.start . This ended in getting error after error, whenever I fixed one. I am quite sure now that this isn't the right way to do it, also because the View is used as a parameter of the Flow class itself and

Process Views outside viewflow.frontend

戏子无情 提交于 2019-12-01 08:17:50
问题 I want to integrate processes, starting them etc., outside of the standard viewflow.frontend . To do I have been trying to create a simple page where I can start a new process, but have been struggling to find a way to implement it. One approach was to defined a url to url('^start_something, CustomStartView.as_view()) with CustomStartView subclassing CreateProcessView from viewflow.flow.views.start . This ended in getting error after error, whenever I fixed one. I am quite sure now that this

How to create a django ViewFlow process programmatically

微笑、不失礼 提交于 2019-11-27 12:29:50
Synopsis I'm developing a web application to learn Django (python 3.4 & Django 1.6.10). The web app has complex and often updated workflows. I decided to integrate the Django-Viewflow library ( https://github.com/viewflow/viewflow/ ) as it seems to be a very convenient way to handle workflows and not incorporate the workflow logic with the application models. In this case, I have created a workflow to collect authorship information and copyrights using the Django-Viewflow library. The workflow should be initiated each time an author is added to a book. My Problem The documentation offers step

How to create a django ViewFlow process programmatically

夙愿已清 提交于 2019-11-26 16:05:11
问题 Synopsis I'm developing a web application to learn Django (python 3.4 & Django 1.6.10). The web app has complex and often updated workflows. I decided to integrate the Django-Viewflow library (https://github.com/viewflow/viewflow/) as it seems to be a very convenient way to handle workflows and not incorporate the workflow logic with the application models. In this case, I have created a workflow to collect authorship information and copyrights using the Django-Viewflow library. The workflow