Skip to content
mwaylabs edited this page Nov 15, 2010 · 32 revisions

##Introduction

the task (or tasks) chain is a hook up line of actions that should be executed in the files of a framework. Each task takes the input from the previous task, do some possible manipulations on the files and pass the result on to the next task in the chain. The tasks can be combined to match the demands of the concrete building problem. A developer can specify the sequence of the tasks and also implement new ones.

This diagram shows the primary steps to build and attache a chain of tasks to a framework, included here are the involved Espresso components.

##Task definition

Each concrete task uses the Task prototype. The prototype defines the functions and properties that every task should have, to work in a task chain.

 
Task = exports.Task = function() {

  this.framework; /
  this.name;
  this.next;  
    
};

[...]


Task.prototype.run = function(framework,callback){
[...]
};

Task.prototype.duty = function(framework,callback){

      // concrete tasks code goes here.

};

    ```end



##The managed tasks


##Defining a task chain
Clone this wiki locally