menu

Models

class viewflow.models.AbstractProcess(*args, **kwargs)

Base class for Process data object.

active_tasks()

List of non finished tasks.

property created_by

Lookup for the owner of the task that started the flow.

get_task(flow_task, status=None)

Lookup for task instance in the db.

summary()

Quick textual process state representation for end user.

class viewflow.models.AbstractTask(*args, **kwargs)

Base class for Task state objects.

In addition, you have to define at least process foreign key field:

process = models.ForeignKey(Process, on_delete=models.CASCADE)
activate()

Instantiate and configure new task activation.

property flow_process

Return process instance of flow_class type.

save(*args, **kwargs)

Save the current instance. Override this in a subclass if you want to control the saving process.

The ‘force_insert’ and ‘force_update’ parameters can be used to insist that the “save” must be an SQL insert or update (or equivalent for non-SQL backends), respectively. Normally, they should not be set.

summary()

Quick textual task result representation for end user.

class viewflow.models.Process(*args, **kwargs)

Default viewflow Process model.

exception DoesNotExist
exception MultipleObjectsReturned
class viewflow.models.Task(*args, **kwargs)

Default viewflow Task model.

exception DoesNotExist
exception MultipleObjectsReturned
class viewflow.managers.ProcessQuerySet(*args, **kwargs)

Base manager for the flow Process.

coerce_for(flow_classes)

Return subclass instances of the Task.

filter_available(flow_classes, user)

List of processes available to view for the user.

class viewflow.managers.TaskQuerySet(*args, **kwargs)

Base manager for the Task.

archive(flow_classes, user)

List of tasks finished by the user.

coerce_for(flow_classes)

Return subclass instances of the Task.

filter_available(flow_classes, user)

List of tasks available to view for the user.

inbox(flow_classes, user)

List of tasks assigned to the user.

queue(flow_classes, user)

List of tasks permitted to assign for the user.

user_archive(user, flow_class=None)

List of tasks of the flow_class completed by the user.

user_queue(user, flow_class=None)

List of tasks of the flow_class permitted for user.