menu

Models

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

Base class for Process data object.

active_tasks()

List of non finished tasks.

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.

flow_process

Return process instance of flow_class type.

summary()

Quick textual task result representation for end user.

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

Default viewflow Process model.

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

Default viewflow Task model.

class viewflow.managers.ProcessQuerySet(model=None, query=None, using=None, hints=None)

Base manager for the flow Process.

coerce_for(flow_classes)

Return subclass instancess of the Task.

filter(*args, **kwargs)

Queryset filter allows to use flow_class class values.

filter_available(flow_classes, user)

List of processes available to view for the user.

iterator()

Coerce queryset results to process subclasses.

class viewflow.managers.TaskQuerySet(model=None, query=None, using=None, hints=None)

Base manager for the Task.

archive(flow_classes, user)

List of tasks finished by the user.

coerce_for(flow_classes)

Return subclass instancess of the Task.

filter(*args, **kwargs)

Queryset filter allows to use process__flow_class class values.

filter_available(flow_classes, user)

List of task available to view for the user.

inbox(flow_classes, user)

List of tasks assigned to the user.

iterator()

Coerce queryset results to process subclasses.

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.