The Builder API allows you to create builder calls in your generation class just as you would create any other Java object.
Once you create the builder object and set its properties (input values), you can call its invoke()
method to add the builder call to the WebApp.
You can pass the input values set for the builder to the other builders that you call. For example, you could create add an Inserted Page builder call to the WebApp in your generation class and set its page location value to be the page location specified by the call to your builder.
Some builders such as Service Call and Web Service Enable, use dynamic inputs created by a coordinator, which makes it difficult if not impossible to use with the callable builder API. Using the callable builder API assumes that you know the name and data type for the builder inputs. As a result, these builders are not able to be added to the model by the generation logic of another builder.
To add a Page builder call with the Builder API:
com.bowstreet.builders.webapp.api.Page page1 = new Page(builderCall, genContext);
Parent topic: Using other builders in the generation class: wpf7