in src/dfcx_scrapi/tools/search_util.py [0:0]
def _find_true_routes_flow_level(self, flow_display_name, flow_map):
flow_id = flow_map[flow_display_name]
other_pages = self.pages.list_pages(flow_id)
# Start page - no entry fulfillment
pages_dataframe = pd.DataFrame()
for page in other_pages:
display_name = page.display_name
webhook = False
if page.entry_fulfillment.webhook:
webhook = True
has_parameters = False
if page.form.parameters:
has_parameters = True
has_true_route = False
has_true_final_route = False
for route in page.transition_routes:
if route.condition == "true":
has_true_route = True
if route.condition == '$page.params.status = "FINAL" AND true':
has_true_final_route = True
page_dataframe = pd.DataFrame(
columns=[
"flow_display_name",
"page_display_name",
"webhook_entry_fullfillment",
"has_parameters",
"has_true_route",
"has_true_and_final_route",
],
data=[
[
flow_display_name,
display_name,
webhook,
has_parameters,
has_true_route,
has_true_final_route,
]
],
)
pages_dataframe = pd.concat([pages_dataframe, page_dataframe])
return pages_dataframe