menu

Activation

API

class viewflow.rest.activation.ManagedStartViewActivation(*args, **kwargs)

Bases: viewflow.activation.StartActivation

activate(flow_task, prev_activation, token)

Instantiate and persist new flow task.

activate_next

Activate all outgoing edges.

cancel

Cancel existing task.

done

Create and start new process instance.

exception_guard()

Perform activation action inside a transaction.

Handle and propagate exception depends on actvation context state

get_available_transtions()

List of all available activation transitions.

get_status()

Get the status of the activated task.

has_perm(user)

Check user permission to execute the task.

initialize

Initialize an activation.

prepare

Prepare activation for excecution.

set_status(value)

Set the status to the underline task.

undo

Undo the task.

class viewflow.rest.activation.ManagedViewActivation(*args, **kwargs)

Bases: viewflow.activation.ViewActivation

activate(flow_task, prev_activation, token)

Instantiate new task.

activate_next

Activate all outgoing edges.

assign

Assign user to the task.

cancel

Cancel existing task.

classmethod create_task(flow_task, prev_activation, token)

Create a task, calucate owner and permissions.

done

Mark task as finished.

exception_guard()

Perform activation action inside a transaction.

Handle and propagate exception depends on actvation context state

get_available_transtions()

List of all available activation transitions.

get_status()

Get the status of the activated task.

has_perm(user)

Check user permission to execute the task.

initialize

Initialize the activation instance.

prepare

Prepare activation for excecution.

reassign

Reassign to another user.

set_status(value)

Set the status to the underline task.

unassign

Remove user from the task assignment.

undo

Undo the task.