def build_downstream(self, process_descriptions, task, all_tasks,<EOL>task_pipeline,<EOL>count_forks, total_tasks, forks):
if task in process_descriptions:<EOL><INDENT>if process_descriptions[task][<NUM_LIT:2>] is not None:<EOL><INDENT>if len(process_descriptions[task][<NUM_LIT:2>].split("<STR_LIT:|>")) > <NUM_LIT:1>:<EOL><INDENT>local_forks = process_descriptions[task][<NUM_LIT:2>].split("<STR_LIT:|>")<EOL>for local_fork in local_forks:<EOL><INDENT>if local_fork in total_tasks:<EOL><INDENT>count_forks += <NUM_LIT:1><EOL>task_pipeline.append(process_descriptions[task][<NUM_LIT:2>])<EOL>self.define_pipeline_string(<EOL>process_descriptions,<EOL>local_fork,<EOL>False,<EOL>True,<EOL>count_forks,<EOL>total_tasks,<EOL>forks<EOL>)<EOL><DEDENT><DEDENT>return task_pipeline<EOL><DEDENT>else:<EOL><INDENT>if process_descriptions[task][<NUM_LIT:2>] in total_tasks:<EOL><INDENT>task_pipeline.append(process_descriptions[task][<NUM_LIT:2>].split("<STR_LIT:|>")[<NUM_LIT:0>])<EOL>self.build_downstream(<EOL>process_descriptions,<EOL>process_descriptions[task][<NUM_LIT:2>].split("<STR_LIT:|>")[<NUM_LIT:0>],<EOL>all_tasks,<EOL>task_pipeline,<EOL>count_forks,<EOL>total_tasks,<EOL>forks<EOL>)<EOL><DEDENT>return task_pipeline<EOL><DEDENT><DEDENT>else:<EOL><INDENT>return task_pipeline<EOL><DEDENT><DEDENT>
Builds the downstream pipeline of the current process

        Checks for the downstream processes to the current process and
        adds them to the current pipeline fragment.

        Parameters
        ----------
        process_descriptions : dict
            Information of processes input, output and if is forkable
        task : str
            Current process
        all_tasks : list
            A list of all provided processes
        task_pipeline : list
            Current pipeline fragment
        count_forks : int
            Current number of forks
        total_tasks : str
            All space separated processes
        forks : list
            Current forks
        Returns
        -------
        list : resulting pipeline fragment