parameters: (search_type, extra_process=[], project_code='', is_filter=False, is_group_restricted=False, sobject=None )
return_statement: return labels, values
docstring: get a tuple of data used for the SelectWdg
docstring_summary: get a tuple of data used for the SelectWdg
docstring_tokens: get a tuple of data used for the SelectWdg
function: def get_process_select_data(search_type, extra_process=[], project_code='', is_filter=False, is_group_restricted=False, sobject=None ):
          '''get a tuple of data used for the SelectWdg'''
          context_dict = Pipeline.get_process_name_dict(search_type, project_code, is_group_restricted, sobject=sobject)
          labels = []
          values = []
          keys = list(context_dict.keys())
          keys.sort()
          process_values = Common.sort_dict(context_dict)
          for idx, value in enumerate(process_values):
              key = keys[idx]
              labels.append('&lt;&lt; %s &gt;&gt;' %key)
              if is_filter:
                  # add all the process names in this pipeline into the value
                  values.append(','.join(value))
              else:
                  values.append('')
              # extra process may not be needed
              if extra_process:
                  value.extend(extra_process)
  
              if len(context_dict) > 1 and idx < len(context_dict)-1 :
                  value.append('')
  
              values.extend(value)
              labels.extend(value)
          return labels, values
function_tokens: def get_process_select_data ( search_type , extra_process = [ ] , project_code = '' , is_filter = False , is_group_restricted = False , sobject = None ) : context_dict = Pipeline . get_process_name_dict ( search_type , project_code , is_group_restricted , sobject = sobject ) labels = [ ] values = [ ] keys = list ( context_dict . keys ( ) ) keys . sort ( ) process_values = Common . sort_dict ( context_dict ) for idx , value in enumerate ( process_values ) : key = keys [ idx ] labels . append ( '&lt;&lt; %s &gt;&gt;' % key ) if is_filter : # add all the process names in this pipeline into the value values . append ( ',' . join ( value ) ) else : values . append ( '' ) # extra process may not be needed if extra_process : value . extend ( extra_process ) if len ( context_dict ) > 1 and idx < len ( context_dict ) - 1 : value . append ( '' ) values . extend ( value ) labels . extend ( value ) return labels , values