brash-leather-45438
05/26/2024, 2:45 AMSuccessfully redirected to ${targetFlow}:${targetNode}
);
} else {
bp.logger.error("bp.dialog or bp.dialog.jumpTo is not available.");
}
}
/** Your code ends here */
}
2) execute card:
const sessionId = bp.dialog.createId(event);
const targetFlow = "main.flow.json";
const targetNode = "existing_or_potential_client";
// Check if the user's choice is 'Start Over'
if (workflow.startOver === 'Start Over') {
// Directly jump to the specified node in the specified flow
if (bp && bp.dialog && typeof bp.dialog.jumpTo === "function") {
bp.dialog.jumpTo(sessionId, event, targetFlow, targetNode)
.then(() => {
bp.logger.info(Successfully redirected to ${targetFlow}:${targetNode}
);
})
.catch(err => {
bp.logger.error(Failed to redirect: ${err.message}
);
});
} else {
bp.logger.error("bp.dialog or bp.dialog.jumpTo is not available.");
}
}fresh-fireman-491
05/26/2024, 11:23 AMbp
?brash-leather-45438
05/26/2024, 3:15 PMSuccessfully redirected to ${targetFlow}:${targetNode}
);
})
.catch(err => {
console.error(Failed to redirect: ${err.message}
);
});
} else {
console.error('sessionId function is not available.');
}
}
looking forward to receiving your help on this JumpTo situation.fresh-fireman-491
05/26/2024, 4:10 PMbp.
is something to use with the V12
I have seen examples of people using bp.
, but none of them were stable.
Maybe someone like @acceptable-kangaroo-64719 or @famous-jewelry-85388 knows a bit more about .bp than me.
Mean while could you let me know what you are trying to do?brash-leather-45438
05/26/2024, 4:20 PMfresh-fireman-491
05/27/2024, 4:33 AMbrash-leather-45438
05/27/2024, 5:58 PMfresh-fireman-491
05/27/2024, 6:28 PMbrash-leather-45438
05/28/2024, 5:34 AMfresh-fireman-491
05/28/2024, 8:48 AMbrash-leather-45438
05/28/2024, 4:00 PM