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
1
vote
1 answer

Viewflow: what's the best/canonical way to get the current pending task?

I inspected the Process model, and found active_tasks method: def active_tasks(self): """List of non finished tasks.""" return self.flow_class.task_class._default_manager \ .filter(process=self, finished__isnull=True)…
James Lin
  • 25,028
  • 36
  • 133
  • 233
1
vote
1 answer

Allowing users to select which flow to roll back to django-viewflow

Hey all i have been using viewflow as the workflow engine in my django project. I wanted to know if it was possible to allow users to 'select' which flow they wish to roll back to if lets say an approval was rejected. Here , the director chooses…
neowenshun
  • 860
  • 1
  • 7
  • 21
1
vote
1 answer

Signify for view to search for next task url

I am asking if there is a prefered method of making get_next_task_url() redirect to the next process url. get_next_task_url() looks for _continue in request.POST however the POST object is not able to be modified. Currently i am adding a hidden…
1
vote
0 answers

Dynamic NSubprocess - start additional subprocess *after* NSuprocess is started

We know that a subprocess should be started for n items when the task is activated, however, during the lifetime of the NSubprocess task, additional items could be found. Let's say we have Order and OrderItem. When a customer submits an order and…
emihir0
  • 1,200
  • 3
  • 16
  • 39
1
vote
1 answer

Django Viewflow - flow.If with custom views doesn't work for me

I have a flow like this: review_request = ( flow.View( ReviewRequest, ).Permission( auto_create=True ).Next(this.check_response) ) check_response = flow.If(cond=lambda act: True …
1
vote
1 answer

Are the new fields on Processes and Tasks in Viewflow 1.6.0 for library users, or for internal use only

Viewflow 1.6.0 introduces new fields ("data" is a JSON field, and "artifact" support for a generic foreign key). They are present on both Processes and Tasks. Are these intended to be available to library users, or are they Viewflow…
Shaheed Haque
  • 644
  • 5
  • 14
1
vote
1 answer

Django Viewflow with custom views - start different flows, depending on user selection in the first screen

I have a view with StartFlowMixin, it contains a form - user posts the form and a workflow starts. That works fine currently, but I need to introduce a dropdown in the form with 4 options - based on the selection in that dropdown I need to run a…
1
vote
1 answer

django-viewflow, what is the proper way to handle exceptions in handler?

Lets say I have the following node: perform_disk_size_change = ( flow.Handler( this.perform_proxmox_api_request ).Next(this.notify_iaas_success) ) What if perform_proxmox_api_request raises an exception? Can I specify a Exception…
James Lin
  • 25,028
  • 36
  • 133
  • 233
1
vote
1 answer

Django-viewflow how to get the current user?

First day learning viewflow, I managed to get the tutorial to work, but I have a use case that I don't know how to implement. What I want is when a workflow is started, I want it to automatically assign the task to the workflow starter (the user),…
James Lin
  • 25,028
  • 36
  • 133
  • 233
1
vote
0 answers

Django Viewflow: Quick Start says to include formpack. What is a formpack?

I'm trying to use django viewflow to style some forms to keep a page consistently styled within an django app using materialize. In the viewflow documents, it recommends to include formpack javascript and styles into your database. What is a…
DeltaFlyer
  • 461
  • 2
  • 8
  • 17
1
vote
0 answers

Executing a task programatically Django-Viewflow

im trying to run a viewflow flow entirely by code. I have succesfully created a task this way but I have failed to execute the task that follows the creation of the process. I've tried using de handler aproach given in the oficial view-flow…
1
vote
1 answer

Django viewflow - create->pending->publish->edit->pending->publish

I am using django viewflow to create a publishing process: user creates an object it goes into a review process and its status is pending (it is not visible to the public) when it is reviewed and approved it gets published and becomes publicly…
Silko
  • 584
  • 1
  • 8
  • 26
1
vote
1 answer

Creating custom rest driven nodes Django-Viewflow

i'm interested in creating a rest driven process in django-viewflow. I've been reading the official page and by doing so i've arrived to the conclusion that after aquiring the pro version of viewflow to have rest integration, I would still need to…
1
vote
1 answer

Can one viewflow task have multiple next state transitions?

A finite state machine can transition into multiple next states. So e.g. from State1, the machine will transition into State2 given input A, or transition into State2 given input B, and so on. Is this possible with django-viewflow? NB1 I'm aware…
1
vote
0 answers

Learning Viewflow and Documentation

Viewflow sounds like a really useful library, but I've spent two days reading everything I can about it and still don't have a good idea of how to use it. The current documentation seems to cover The problems that viewflow is intended to solve Some…
1 2
3
8 9