The AifServices
form refreshes all declared services and that takes a lot of time.
We changed the form, so that only the selected service is refreshed.
This is the changed code for \Forms\AifService\Designs\Design\[ActionPane:ActionPane]\[ActionPaneTab:ActionPaneTab]\[ButtonGroup:ButtonGroup]\Button:Register\Methods\clicked
:
void clicked()
{
// <SingleServiceRefresh>
DialogButton dialogButton;
// </SingleServiceRefresh>
super();
// <SingleServiceRefresh>
dialogButton = Box::yesNoCancel('Click Yes to update all services. No to refresh only the selected.', DialogButton::Cancel);
if (dialogButton == DialogButton::No)
{
AifServiceGenerationManager::registerService(aifService.Name);
}
else if (dialogButton == DialogButton::Cancel)
{
return;
}
else
// </SingleServiceRefresh>
{
startLengthyOperation();
AifServiceGenerationManager::registerServices();
aifService_ds.executeQuery();
aifService_ds.research();
endLengthyOperation();
}
}