// Join these tasks in order to know the order of execution of the tasks
pipeline.join(task1, task2);
pipeline.join(task2, task3);
// Execute the Pipeline
pipeline.execute();
// To wait till execution lasts. Skip this line pipeline.cleanUp()
// if you do not want to
// wait for the execution of pipeline to finish.
pipeline.getResult();