def w2(self, flow: FlowRoot): """documentation of W2""" c_node = flow.connect('c', auto_trigger=True) b_node = c_node.connect('b') e_node = flow.connect( 'e', auto_trigger=True) # 2 autotriggers for the same workflow d_node = e_node.connect('d')
def w2(self, flow: FlowRoot): """documentation of W2""" c_node = flow.connect("c", auto_trigger=True) b_node = c_node.connect("b") e_node = flow.connect( "e", auto_trigger=True ) # 2 autotriggers for the same workflow d_node = e_node.connect("d")
def w4(self, flow: FlowRoot): """documentation of W4""" a_node = flow.connect("a") b_node = a_node.connect("b") c_node = b_node.connect("c") c_node.connect("d") # set some hinting. flow.hints = False a_node.hints = False b_node.hints = True c_node.hint = False
def w4(self, flow: FlowRoot): """documentation of W4""" a_node = flow.connect('a') b_node = a_node.connect('b') c_node = b_node.connect('c') c_node.connect('d') # set some hinting. flow.hints = False a_node.hints = False b_node.hints = True c_node.hint = False
def Bairro_Sao_luiz(self, flow: FlowRoot): """Bairro Sao Luiz""" step1 = flow.connect('horario_Bairro_Sao_Luiz', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta0142') step3 = step1.connect('SaidasCentroSegundaaSexta0142') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados0142') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados0142')
def Tijucas(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Tijucas', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta64300') step3 = step1.connect('SaidasBiguacuSegundaaSexta64300') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados64300') step5 = step1.connect('SaidasBiguacuSabadosDomingoseFeriados64300')
def Tres_Riachos(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Tres_Riachos', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta44800') step3 = step1.connect('SaidasCentroSegundaaSexta44800') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados44800') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados44800')
def Bom_Viver(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Bom_Viver', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta10000') step3 = step1.connect('SaidasCentroSegundaaSexta10000') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados10000') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados10000')
def EXECUTIVO_Diretao(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_EXECUTIVO_Diretao', auto_trigger=True) step2 = step1.connect('SaidasBarreirosSegundaaSexta0140') step3 = step1.connect('SaidasFazendaSegundaaSexta0140') step4 = step1.connect('SaidasBarreirosSabadosDomingoseFeriados0140') step5 = step1.connect('SaidasFazendaSabadosDomingoseFeriados0140')
def Forquilhas08(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Forquilhas08', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta08') step3 = step1.connect('SaidasCentroSegundaaSexta08') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados08') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados08')
def Hospital_Regional(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Hospital_Regional', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta202') step3 = step1.connect('SaidasCentroSegundaaSexta202') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados202') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados202')
def Sao_Miguel(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Sao_Miguel', auto_trigger=True) step2 = step1.connect('SaidasEstivaSegundaaSexta10900') step3 = step1.connect('SaidasCentroSegundaaSexta10900') step4 = step1.connect('SaidasEstivaSabadosDomingoseFeriados10900') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados10900')
def SantanaKobrasol(self, flow: FlowRoot): """Santana Kobrasol""" step1 = flow.connect('horario_Santana_Kobrasol', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta901') step3 = step1.connect('SaidasCentroSegundaaSexta901') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados901') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados901')
def Potecas(self, flow: FlowRoot): """Potecas""" step1 = flow.connect('horario_Potecas', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta0020') step3 = step1.connect('SaidasCentroSegundaaSexta0020') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados0020') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados0020')
def Los_Angeles(self, flow: FlowRoot): """Los Angeles""" step1 = flow.connect('horario_Los_Angeles', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta763') step3 = step1.connect('SaidasCentroSegundaaSexta763') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados763') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados763')
def Kobrasol_VIP(self, flow: FlowRoot): """Kobrasol VIP""" step1 = flow.connect('horario_Kobrasol_VIP', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta1412') step3 = step1.connect('SaidasCentroSegundaaSexta1412') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados1412') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados1412')
def Campinas(self, flow: FlowRoot): """Campinas""" step1 = flow.connect('horario_Campinas', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta317') step3 = step1.connect('SaidasCentroSegundaaSexta317') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados317') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados317')
def CH_Forquilhinha(self, flow: FlowRoot): """Forquilhinhas""" step1 = flow.connect('horario_CH_Forquilhinha', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta117') step3 = step1.connect('SaidasCentroSegundaaSexta117') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados117') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados117')
def Quecaba(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Quecaba', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta660') step3 = step1.connect('SaidasCentroSegundaaSexta660') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados660') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados660')
def Barreiros_sede(self, flow: FlowRoot): """Barreiros sede""" step1 = flow.connect('horario_Barreiros_Sede', auto_trigger=True) step2 = step1.connect('SaidasBarreirosSegundaaSexta0110') step3 = step1.connect('SaidasSedeSegundaaSexta0110') step4 = step1.connect('SaidasBarreirosSabadosDomingoseFeriados0110') step5 = step1.connect('SaidasSedeSabadosDomingoseFeriados0110')
def Bairro_Sao_Luiz143(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Bairro_Sao_Luiz143', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta143') step3 = step1.connect('SaidasCentroSegundaaSexta143') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados143') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados143')
def Vila_Formosa(self, flow: FlowRoot): """Vila Formosa""" step1 = flow.connect('horario_Vila_Formosa', auto_trigger=True) step2 = step1.connect('SaidasVilaFormosaSegundaaSexta0125') step3 = step1.connect('SaidasKobrasolSegundaaSexta0125') step4 = step1.connect('SaidasVilaFormosaSabadosDomingoseFeriados0125') step5 = step1.connect('SaidasKobrasolSabadosDomingoseFeriados0125')
def Irineu_Comelli(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Irineu_Comelli', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta676') step3 = step1.connect('SaidasCentroSegundaaSexta676') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados676') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados676')
def Diretao(self, flow: FlowRoot): """Diretao""" step1 = flow.connect('horario_Diretao', auto_trigger=True) step2 = step1.connect('SaidasBarreirosSegundaaSexta0130') step3 = step1.connect('SaidasFazendaSegundaaSexta0130') step4 = step1.connect('SaidasBarreirosSabadosDomingoseFeriados0130') step5 = step1.connect('SaidasFazendaSabadosDomingoseFeriados0130')
def Ponta_de_baixo(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Ponta_de_Baixo', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta203') step3 = step1.connect('SaidasCentroSegundaaSexta203') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados203') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados203')
def Potecas_Kobrasol(self, flow: FlowRoot): """Potecas Kobrasol""" step1 = flow.connect('horario_Potecas_Kobrasol', auto_trigger=True) step2 = step1.connect('SaidasPotecasSegundaaSexta0135') step3 = step1.connect('SaidasKobrasolSegundaaSexta0135') step4 = step1.connect('SaidasPotecasSabadosDomingoseFeriados0135') step5 = step1.connect('SaidasKobrasolSabadosDomingoseFeriados0135')
def Saudade(self, flow: FlowRoot): """Linha do Onibus""" step1 = flow.connect('horario_Saudade', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta44303') step3 = step1.connect('SaidasCentroSegundaaSexta44303') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados44303') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados44303')
def guess(self, flow: FlowRoot): """ This is a flow that can set a guessing game.""" # setup Flow game_created = flow.connect('tryme', auto_trigger=True) one_guess = game_created.connect('guessing') one_guess.connect(one_guess) # loop on itself one_guess.connect(FLOW_END, predicate=lambda ctx: ctx['tries'] == 0)
def conf(self, flow: FlowRoot): """ This is a flow that can set a guessing game.""" # setup Flow dialogue = flow.connect('retrieve', auto_trigger=True) conf = dialogue.connect('confirm') conf.connect('confirm') conf.connect(FLOW_END, predicate=lambda ctx: ctx['tries'] == 0)
def Sertao_do_Maruim_Florianopolis(self, flow: FlowRoot): """Sertao do Maruim Florianopolis""" step1 = flow.connect('horario_Sertao_do_Maruim_Florianopolis', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta554') step3 = step1.connect('SaidasCentroSegundaaSexta554') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados554') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados554')
def Vila_Formosa_Florianopolis(self, flow: FlowRoot): """Vila Formosa Florianopolis""" step1 = flow.connect('horario_Vila_Formosa_Florianopolis', auto_trigger=True) step2 = step1.connect('SaidasBairroSegundaaSexta5541') step3 = step1.connect('SaidasCentroSegundaaSexta5541') step4 = step1.connect('SaidasBairroSabadosDomingoseFeriados5541') step5 = step1.connect('SaidasCentroSabadosDomingoseFeriados5541')
def w1(self, flow: FlowRoot): "documentation of W1" a_node = flow.connect('a') # no autotrigger b_node = a_node.connect('b') c_node = a_node.connect('c') # crosses the autotrigger of w2 d_node = c_node.connect('d') assert a_node.hints assert b_node.hints assert c_node.hints assert d_node.hints
def poll_setup(self, flow: FlowRoot): """ This is a flow that can set up a poll automatically.""" # setup Flow poll_created = flow.connect('poll_new', predicate=lambda ctx: 'title' in ctx, auto_trigger=True) # add options has_more_options = lambda context: 'options' in context and context['options'] option_added = poll_created.connect('poll_addoption', predicate=has_more_options) option_added.connect(option_added, predicate=has_more_options) # loop on itself poll_started = option_added.connect('poll_start', predicate=lambda ctx: ctx.get('start', False))
def w3(self, flow: FlowRoot): """documentation of W3""" c_node = flow.connect('a', room_flow=True) b_node = c_node.connect('b')
def w2(self, flow: FlowRoot): """documentation of W2""" c_node = flow.connect('c', auto_trigger=True) b_node = c_node.connect('b') e_node = flow.connect('e', auto_trigger=True) # 2 autotriggers for the same workflow d_node = e_node.connect('d')