Class: ProcessEngine::ProcessTasksController

Inherits:
ApplicationController show all
Defined in:
app/controllers/process_engine/process_tasks_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#update_active_record_complex_type

Instance Method Details

#finishObject



9
10
11
12
# File 'app/controllers/process_engine/process_tasks_controller.rb', line 9

def finish
  ProcessEngine::ProcessQuery.task_complete(@process_task.id) unless @process_task.finished?
  redirect_to process_instance_process_tasks_path(@process_task.process_instance_id)
end

#indexObject



5
6
7
# File 'app/controllers/process_engine/process_tasks_controller.rb', line 5

def index
  @process_tasks = @process_instance.process_tasks.desc.page(params[:page]).per_page(50)
end