why do you need a parameters in script? We provide access points through variables (like model).
Then you can do what ever you want in the script - well don't destroy your design on first place .
You can use the search result (from advanced search) in your transformation script - described in related document (SQLDeveloperDataModelerScripting.docx - IX. Usage of result from search functionality).
Probably there is a replace functionality in the language you are using - at least it exist in Java - so:
newName = table.getName().replace("Request","Application");
should work. Of course you can check if the name is changed before setting the new name
The parameters are to generalize the script for reusability. Sure, I COULD write the script with the text to be replaced, and the text to replace it with as hard coded values. But the next time I need to change names it might be from "Windows" to "Linux", and I'd have to go edit the script and change the hard coded values.
And I ALWAYS save my model before I run a transformation script, and check to make sure it did it right before I save the transformed model.
No problem writing the script - I pretty much know what it needs to do, except for generalizing it. I did write one that uses User Defined Properties, but those properties don't change very often - I set them and forget them.
Another aproach would be to generate your script then edit it using vim (vi) or if you are more comfortable with gui, notepad++...
Both editors have excellent REGEX search and replace capabilities.
You could read the parameters from a file easily enough, but that would require you first writing them to a file.
If you are using SDDM^Plus you could use the ask() method to prompt for the parameters.
If you want to use only the built-in features, to get a dialog box look into JOptionPane.showInputDialog(), which is how ask() works under the covers.
hope this helps
JOptionPane = Java.type('javax.swing.JOptionPane'); source = JOptionPane.showInputDialog("String to be replaced in selected object names:",""); target = JOptionPane.showInputDialog("Replacement string:",""); doIt = JOptionPane.showConfirmDialog(null,"Replace "+source+" with "+target+"?");
Works great! Prompts for the parameters I need and even a confirmation before it does the actual transformation.