menu

Activation

API

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

Bases: viewflow.activation.StartActivation

classmethod 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 depending on activation context state.

get_available_transitions()

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 execution.

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

classmethod 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, calculate owner and permissions.

done

Mark task as finished.

exception_guard()

Perform activation action inside a transaction.

Handle and propagate exception depending on activation context state.

get_available_transitions()

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 execution.

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.