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

Django ViewFlow: Navigate Step based on Validation

I am using the HelloWorld example located at the ViewFlow cookbook. The whole source code is same as the helloworld project with the only change being: flows.py check_approve = ( flow.If(lambda activation: activation.process.approved) …
Srinath Ganesh
  • 2,496
  • 2
  • 30
  • 60
1
vote
2 answers

How to finish all parallel activities ViewFlow (Terminate End)?

I want release this flow: I tried use only one node End, but the other branch remains active. How to finish all active tasks and the whole process when finishes one branch?
1
vote
0 answers

Django Viewflow - Return Handler Response

Following is my flow:- class APLWorkflow(Flow): start = ( flow.StartFunction(function1) .Next(this.request_quotes) ) request_quotes = ( flow.Handler(function2) .Next(this.move_package) ) …
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
1
vote
1 answer

How to Assign a Task to a user in Django-Vieflow

class HelloWorldFlow(Flow): process_class = HelloWorldProcess ######### Here I start the process where i enter some text start = ( flow.Start(CreateProcessView, fields=["text"]) .Permission(auto_create=True) …
1
vote
1 answer

List all viewflow processes the user is allowed to

I'm trying to implement django-viewflow in my project, using django-admin as a GUI. I'm currently trying to create a custom view and relative template to show a user a list of all the processes that he can start, so not the process instances but a…
1
vote
1 answer

Use of paratheses symbols in django-viewflow flow

I have been at a loss understanding the use of parentheses in django-viewflow flow code. For example in the code below start = ( flow.Start(views.StartView) .Permission('shipment.can_start_request') .Next(this.split_clerk_warehouse) ) #…
unlockme
  • 3,897
  • 3
  • 28
  • 42
1
vote
3 answers

django-viewflow - getting task URL without request

Knowing task instance is there a way to get the url of it? For example in the cookbook: https://github.com/viewflow/cookbook/blob/master/helloworld/demo/helloworld/flows.py - how do I get the url of assign task of approve flow_task? I know there is…
emihir0
  • 1,200
  • 3
  • 16
  • 39
1
vote
1 answer

Django Viewflow: From where to send email to user on task assignment?

I need to email owner when task is assigned to them. I tried following ways: Assign accepts a callable function which should return task owner. We can send email in this callable function. But if you read source code, you will find that this…
Sid
  • 589
  • 6
  • 20
1
vote
1 answer

Viewflow Process won't exit cleanly with split-n-join tasks?

Say I have a Process which has two optional View tasks to the finish: --> Split --> optional_view_1 ---> Join ----> finish | ^ | | -----> optional_view_2 ------- Let's say…
Shaheed Haque
  • 644
  • 5
  • 14
1
vote
1 answer

How can we pass on objects between tasks without declaring it in models?

Is there any other way to pass on variables between tasks beside using process.var_name= value process.save() activation.done() and then accessing it like, activation.process.var_name limitation with this approach is I have to declare a…
1
vote
1 answer

Add fields to a Task without needing it in the Process?

I am currently using ViewFlow to model the process of creating websites in my company. My flow produces a website from an AWS instance to a E commerce site. Each Task in my flow adds a little bit of information to my site. Examples: pick domain,…
Tinker
  • 4,165
  • 6
  • 33
  • 72
1
vote
0 answers

Assign task to user in viewflow

I am using django-viewflow in one of my application. I don't want to assign user to a task as soon as it is being created using Assign(). When a user logs in, I want to check if there are any unassigned task if so, fetch one and assign to a user.…
Nagesh Dhope
  • 797
  • 5
  • 13
1
vote
1 answer

Django viewflows - Defining an API flow

I've an API endpoint, /api/create/. This creates a new entry in the DB depending upon the payload received from the client. Payload - { 'field1': 'value1`, 'field2': 'value2`, 'field3': 'value3`, 'field4': 'value4`, 'type': 'A' } Now depending on…
Praful Bagai
  • 16,684
  • 50
  • 136
  • 267
1
vote
1 answer

Collect remarks for task in django-viewflow

Is there way to collect remarks for specific task when user submits his task form? Lets say i have below step to perform approval, where i'm exposing only ìs_approvedfield which will get stored in actual process model. Now along with ìs_approved, i…
Asif
  • 479
  • 2
  • 6
  • 12
1
vote
1 answer

How to decide dynamic work flow for a set of model?

Let consider we have 3 roles, Manager, Admin, Superadmin. Sequence of transactions should happen like t1->t2->t3->t4. If any employee belongs to Manager role , his transaction should happen t1->t3->t2 If any employee belongs to Admin role , his…
1 2 3
8 9