AWM Model Extension Tool "Get Time"

This sample describes a function package tool named Get Time. The tool is able to return the current date and time as a string output parameter. It also enables you to specify a date/time pattern as an optional input parameter.

This demonstrates the basic specification of an AWM tool including input and output parameter handling.

The following screen shot shows you how this plug-in extends the AWM model extension point. It specifies a new function package called Samples which contains a reference to one tool with an input and an output parameter.


Get Time Tool Definition

The tool is modelled in the GetTime.model available under the models folder of the plug-in project as follows:


Get Time Tool Modeling

The Java class GetTimeToolExecutor under the src package of the plug-in project shows you how the input parameter is obtained and how the output parameter is returned making use of the corresponding AWM API methods.

In your Eclipse run-time environment you can test the tool as application action "Get Time..." after you have loaded the model GetTime.model under a AWM custom system in the Application Explorer view. See Testing an AWM Plug-in Project for more information on how to test a plug-in project in the Eclipse run-time environment.


Get Time Tool Execution