var formContext = executionContext.getFormContext();
var activeTab = getActiveTabName();
switch (activeTab) {
case /tab_1/:
formContext.data.process.setActiveProcess(/BPF1/);
break;
case /tab_2/:
formContext.data.process.setActiveProcess(/BPF2/);
break;
// Add cases for other tabs and corresponding BPFs
default:
break;
}
}