(self, ticket, search_key, pipeline_code=None, processes=[], skip_duplicate=True, offset=0, start_date=None)
return ret_tasks
This method will add initial task to an sobject

        @params:
        ticket - authentication ticket
        search_key - the key identifying an sobject as registered in
                    the search_type table.
        @keyparam:
        pipeline_code - override the sobject's pipeline and use this one instead
        processes - create tasks for the given list of processes
        skip_duplicate - boolean to skip duplicated task
        offset - a number to offset the start date from today's date

        @return:
        list of tasks created
This method will add initial task to an sobject
This method will add initial task to an sobject
def add_initial_tasks(self, ticket, search_key, pipeline_code=None, processes=[], skip_duplicate=True, offset=0, start_date=None):
        '''This method will add initial task to an sobject

        @params:
        ticket - authentication ticket
        search_key - the key identifying an sobject as registered in
                    the search_type table.
        @keyparam:
        pipeline_code - override the sobject's pipeline and use this one instead
        processes - create tasks for the given list of processes
        skip_duplicate - boolean to skip duplicated task
        offset - a number to offset the start date from today's date

        @return:
        list of tasks created

        '''
        if isinstance(search_key, dict):
            search_key = search_key.get('__search_key__')

        sobject = SearchKey.get_by_search_key(search_key)
        if not sobject:
            raise ApiException("SObject for [%s] does not exist" % search_key)

        from pyasm.biz import Task
        tasks = Task.add_initial_tasks(sobject, pipeline_code=pipeline_code, processes=processes, skip_duplicate=skip_duplicate, start_offset=offset,start_date=start_date)

        ret_tasks = []
        for task in tasks:
            task_dict = self._get_sobject_dict(task)
            ret_tasks.append(task_dict)

        return ret_tasks
def add_initial_tasks ( self , ticket , search_key , pipeline_code = None , processes = [ ] , skip_duplicate = True , offset = 0 , start_date = None ) : if isinstance ( search_key , dict ) : search_key = search_key . get ( '__search_key__' ) sobject = SearchKey . get_by_search_key ( search_key ) if not sobject : raise ApiException ( "SObject for [%s] does not exist" % search_key ) from pyasm . biz import Task tasks = Task . add_initial_tasks ( sobject , pipeline_code = pipeline_code , processes = processes , skip_duplicate = skip_duplicate , start_offset = offset , start_date = start_date ) ret_tasks = [ ] for task in tasks : task_dict = self . _get_sobject_dict ( task ) ret_tasks . append ( task_dict ) return ret_tasks