Class: RailsWorkflow::Process

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
RailsWorkflow::Processes::DefaultRunner, RailsWorkflow::Processes::DependencyResolver, Status
Defined in:
app/models/rails_workflow/process.rb

Overview

According to en.wikipedia.org/wiki/Workflow_engine workflow engine is a software application that manages business processes.

Process is a set of operations. Process Manager buildling process using process template and creating operations which has no dependencies on other operations and can be build. When some operation is changing status, process building new operations. If all operations is completed (done, canceled, etc) - process is done.

Here you can see process example:

Rails Workflow Engine UI lets you track and manage processes. As you can see on a screenshot UI shows process configuration information, context, already existing process operations (with status, date of creation and completion assignment etc). It also shows you information about not yet created operations for this process and shows dependencies of that operations.

Instance Method Summary (collapse)

Methods included from RailsWorkflow::Processes::DefaultRunner

#can_complete?, #can_start?, #complete, #incompleted_operations, #operation_complete, #operation_exception, #start

Methods included from RailsWorkflow::Processes::DependencyResolver

#build_dependencies

Instance Method Details

- (RailsWorkflow::ProcessManager) manager



34
35
36
# File 'app/models/rails_workflow/process.rb', line 34

def manager
  @manager ||= template.manager_class.new(self)
end