menu

Start Views

class viewflow.flow.views.start.BaseStartFlowMixin

Mixin for start views.

dispatch(request, **kwargs)

Check user permissions, and prepare flow for execution.

get_context_data(**kwargs)

Context for a start view.

Parameters

activation – the task activation instance

get_success_url()

Continue on task or redirect back to task list.

get_template_names()

List of template names to be used for a task view.

If template_name is None, default value is:

[<app_label>/<flow_label>/<task_name>.html,
 <app_label>/<flow_label>/task.html,
 'viewflow/flow/task.html']
class viewflow.flow.views.start.StartFlowMixin

Bases: viewflow.flow.views.mixins.MessageUserMixin, viewflow.flow.views.start.BaseStartFlowMixin

Mixin for flow views completes activation on a form submit.

activation_done(*args, **kwargs)

Finish task activation.

form_valid(*args, **kwargs)

If the form is valid, save the associated model and finish the task.

class viewflow.flow.views.CreateProcessView(*args, **kwargs)

Bases: viewflow.flow.views.start.StartFlowMixin, django.views.generic.edit.UpdateView

get_object()

Return the process for the task activation.

property model

Process class.