Questions tagged [django-viewflow]

django-viewflow is for questions related to the viewflow library that provides workflow features for django web apps. For questions about the android viewflow library use the tag `viewflow`

Viewflow is a reusable workflow library for Django, a python-based web application framework.

135 questions
38
votes
0 answers

Run Django-Viewflow Update node?

I'm using Django-viewflow to create a workflow programmatically. This is my flow class. class Workflow(Flow): start = ( flow.StartFunction(function1) .Next(this.shipment_create) ) shipment_create = ( …
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
16
votes
3 answers

How to create a django ViewFlow process programmatically

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…
Melek Somai
  • 327
  • 2
  • 6
5
votes
1 answer

viewflow.io: implementing a queue task

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,…
Martin
  • 91
  • 5
4
votes
3 answers

django viewflow testing

I'm using Django Viewflow like a flow engine without gui. Can anyone post an example for creating a process and flow management programmatically? I do not understand how to manage the flow completely from django code (eg from a test class) without a…
3
votes
1 answer

paginator function not working in django?

My issue is that i want to retrieve only 6 objects per page but its showing all 10 per page my view def home(request): if request.method == 'GET': entry = Entry.objects.all().order_by('date_added') # top_rated =…
Atif Shafi
  • 954
  • 1
  • 11
  • 26
3
votes
0 answers

How to get full path of selected file on change of using django

compress.html
{% csrf_token %}
3
votes
0 answers

How to create a finite state machine with a dynamic number of steps

I have a simple linear workflow where a single task will have a list of approvers that it must pass through (linearly, each in turn) for confirmation before being completed. I have designed this to use the User model for approver, with 2 additional…
alias51
  • 8,178
  • 22
  • 94
  • 166
3
votes
1 answer

Overwrite django view with custom context (Django 1.11, Viewflow)

I have a Django 1.11 project using Viewflow - https://github.com/viewflow/viewflow - that I've incorporated. It's been very helpful, but a lot of stuff is kind of "magic", and being my first serious Django project, I'm running into an issue I'm not…
Chris Burrus
  • 187
  • 9
3
votes
1 answer

Process Views outside viewflow.frontend

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…
Hi Hi
  • 366
  • 4
  • 20
3
votes
1 answer

viewflow.io: How can I present a custom form for gathering input for a specific task?

I would like to use ViewFlow (see http://viewflow.io/) for a user registration process, where I ask for the user's password (and password2 for confirmation). I don't want to store the plain password but I would like to immediately create the user…
Dirk
  • 427
  • 1
  • 6
  • 16
2
votes
1 answer

Stop automatically a task (Viewflow, Django)

I've splited the flow and assigned several tasks to different users. How can I: stop all the tasks after a certain time? collect the available responses?
jdiog0
  • 21
  • 3
2
votes
1 answer

How to connect two flows in django-viewflow

I'm using django-viewflow to track complicated business processes. In order to avoid having long Flow classes and flows.py files, I'd like to have one flow feed into another. Is this possible? I've tried the following code, but Python throws a…
Eric
  • 244
  • 5
  • 10
2
votes
1 answer

Django Viewflow using class based views but getting error : Reverse for 'index' not found. 'index' is not a valid view function or pattern name

I am using class based views for my Django viewflow project. However I am getting the below error: Reverse for 'index' not found. 'index' is not a valid view function or pattern name Here are my classes: rules/flows.py class MyFlow(Flow): …
user1261115
  • 73
  • 1
  • 6
2
votes
1 answer

Viewflow Django - How do you deprecate a step?

I recently removed a step in my viewflow. Now i am getting 500 errors from coerce_to_related_instance(task, task.flow_task.flow_class.task_class with the error 'NoneType' object has no attribute 'flow_class'. class TaskIterable(ModelIterable): …
Tinker
  • 4,165
  • 6
  • 33
  • 72
2
votes
2 answers

How to jump to the middle of the flow in ViewFlow?

I'm using ViewFlow/Django and I've defined Flow which includes 10 steps. Suppose I have all the relevant data for the first 5 steps. How can I programatically start my flow, save the data for these steps and jump directly to step 6? The problem is…
alexarsh
  • 5,123
  • 12
  • 42
  • 51
1
2 3
8 9