Refer to the following example to expose a method action in your model so that the method or action can be accessed from an external URL request.
For method action that is not public in the following a request: http://localhost:8080/alert6/webengine/sampleModel/Action!doSomething
, you can:
- Place a Model Action Access builder in the model that contains the action you wish to expose.
- Use the builder's Explicit Public Actions input to select the desired method action in your model.
- Click Apply or OK to apply your public action changes.
The action will be stored on the WebApp property bowstreet.PublicActions and IBM® WebSphere® Portlet Factory will use this list at runtime to allow access to the selected action.
Parent topic: Model Action Access builder: wpf7