Generate Process can now be done on the fly! Not only that, you can add in the Parameters together and not only that, you can attach the Process to the Toolbar at the same time!
First call up the Model Design window.

- GenerateProcess.png (43.52 KiB) Viewed 36927 times
Note that if you do not want to use it, replace ** at the beginning of the GenerateProcess field or leave it entirely blank. Then fill in any parameters you want in the Comment/Help box. Note that it should be existing elements. If your parameters are incorrect, it will just throw an error and you can edit it until it is correct. Error will not result in any process generated.

- GeneratedFiles.png (23.06 KiB) Viewed 36927 times
You will see in your sourcecode, 2 files generated and written there. The process.java itself and a plugin.txt advice. Take the xml snip inside and append to the plugin.xml.

- ExtensionPluginXML.png (54.22 KiB) Viewed 36927 times
Check from the Extensions tab that the process definition works when you click on the process.java class to check that the code is OK and without error. You can then add in your logic straight away to test it.

- ADProcess.png (61.15 KiB) Viewed 36927 times
Inside your SystemAdmin, in the Report and Process window you will see your new Process defined into the database. Logout and login back as ClientAdmin. You will see in the Menu tree your new Process.

- NewProcessInMenu.png (23.07 KiB) Viewed 36927 times
Click on it and it comes out well.

- ProcessFromMenu.png (35.6 KiB) Viewed 36927 times
Now we try something amazing. Go back to the SystemAdmin and call up the Model Designer again. Leave the GenerateProcess alone as Aladdin will detect the process already exist and not create it again. But select a table and Aladdin will append that process to its Toolbar! (You can do this together on the first try.)

- ProcessWithTable.png (51.92 KiB) Viewed 36927 times
Relogin into your Client and see the magic.

- AttachedToolBar.png (51.01 KiB) Viewed 36927 times
Click on the gear icon and you will see your process attached there. You can click on it, and enter the parameters to see its working.

- ProcessFromToolBar.png (78.54 KiB) Viewed 36927 times
When you click OK, your generated code will work if you put a break in your debug mode as shown.

- ProcessJava.png (68.18 KiB) Viewed 36927 times
Mouse over the parameters and they do fetch the values from your selection. Aladdin Magic Plugin now removes yet more grunt work from another important developer task.