...
Copy the appropriate BeanShell code.
If your system is on version 2019_01 or later, copy this code:
Code Block import com.supportwizard.seance.Seance; import com.supportwizard.seance.SeanceFactory; import com.supportwizard.search.interfaces.FTXChecker; import com.supportwizard.utils.TryTimer; ////////////////////////////////// // change name of the project here ////////////////////////////////// String PROJECT_NAME = "DemoCLM Template"; Seance seance = SeanceFactory.constructAdminSeance(PROJECT_NAME); String out = "===Before===\n" + TryTimer.getFTSStatus(seance.getProjectID()); FTXChecker.service().fullRecreate(seance, true); out = out + "\n===After===\n" + TryTimer.getFTSStatus(seance.getProjectID()); seance.destroy(); out;
If your system is on version 2018_02 or older, copy this code:
Code Block import com.supportwizard.seance.*; import com.supportwizard.utils.*; import com.supportwizard.search.ejb.interfaces.*; ////////////////////////////////// // change name of the project here ////////////////////////////////// String PROJECT_NAME = "Demo"; Seance seance = SeanceFactory.constructAdminSeance(PROJECT_NAME); HomesGetter hg = new HomesGetter(System.getProperties()); FTXChecker checker = hg.getHome("com.supportwizard.search.ejb.interfaces.FTXCheckerHome").create(); checker.fullRecreate(seance); checker.remove(); seance.destroy();
Paste the code into a text editor like Notepad.
- Replace "Demo" with the name of your project.
- Log in to the admin console.
- Go to Debugging > Debugging.
- Click Bean Shell.
- Paste the code from the text editor into the bean shell window and run it.
...