Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Invoking Methods
Topics
Topic |
Detail |
See also |
---|---|---|
Access |
On the Workbench window, right-click on the instance on which to execute a method, and select the 'Invoke' option. | |
Choose Method |
Select a method from the list and click on the Invoke button. Note that all methods listed are public; private methods are not available.
|
|
Provide Arguments |
In this image, the method to be invoked takes an array of objects as its only argument. You construct this argument by naming the other instances on your Workbench that you want to pass to the method.
|
|
Argument Types |
These are the parameter types supported by the Workbench:
|
|
Argument Syntax |
Surround strings with quotes where necessary, for example, to avoid conflict with Workbench object names.
Enter the elements that compose the array, separated by commas: "A maths book","A geography book","A computer book"
Type the Workbench object name as the argument. The debugger checks any name entered in an argument against its list of workbench instances, and will substitute that instance in the actual call to the method.
Enter the Workbench objects names to satisfy the argument, separated by commas: Tom,John,Peter |
|
Invoke |
Click on the Invoke button to execute the method. Output confirming this action is displayed in the Debug window.
|
Run the Debugger |
Learning Center topics
- Alt+F1 | Enterprise Architect | Execution Analysis | Object Workbench | Invoke Methods