Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Aura component controller to handle flow navigation.
({
handleCaptured : function(component, event, helper)
{
console.log('Captured signature')
let flowAction=null;
let availableActions=component.get('v.availableActions');
console.log('Available actions = ' + availableActions);
for (let idx=0; idx<availableActions.length && null==flowAction; idx++) {
let availAction=availableActions[idx];
if ('NEXT'==availAction) {
flowAction=availAction;
}
else if ('FINISH'==availAction) {
flowAction=availAction
}
}
console.log('Flow action = ' + flowAction);
if (null!=flowAction) {
let navigate=component.get("v.navigateFlow");
navigate(flowAction);
}
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.