In WKTUI, go to the Model
page and select the Code View
tab. Select the File
> Add Model
> Discover Model (online)
menu item. The following dialog box appears. Enter the information shown in the following image, including the Domain Home
path $WKTUI_QS_HOME/todolist_domain
directory. Make sure to provide the WebLogic user name and password specified when
you ran the createToDoListDomain
script.
This path is used to present the results of what we need to do, as shown in the following image.
Depending on the version of WDT you are using, online remote discovery adds some fields with their default values that were not actually set in the original model used to build the domain. WDT is continuing to improve discovery so your results may be slightly different than those shown in the following image.
Because we want to be able to go back seamlessly to the main flow with your model, you will clean it up a bit, fill in the missing variable values, and add the application to the archive file. Please make the following changes:
todo-srv-template
.todo-srv-template
, remove the ListenPort
field and replace it with the ListenPortEnabled
field set to true
.JDBCDriverParams
block, change localhost
to mysql
in the URL field.startMySQL
and createToDoListDomain
scripts.Now, click the Plus Sign in the archive editor. Choose the Archive Entry Type
, Application
, and set the Application Archive File
to the file at $WKTUI_QS_HOME/app/target/todo.war
, as shown in the following image, and then click OK.
Now, the model should look similar to the one shown in the following image (except that the variable values will match the credentials you chose).
At this point, the model is roughly equivalent to the hand-built one shown in the Validate Model Code View. Most of the minor differences will go away after you prepare the model.
You can stop any running WebLogic Servers in the local domain, and stop and remove the mysql
container. To continue, return to Validate and Prepare the Model.