This section details the functions and properties of the AMT Repository Module Generate interface.
| Name | Type | Access | Description |
|---|---|---|---|
| Priority | LionGeneratePriority | Read/Write | Control the priority of the next generation requests. Possible values are defined in the LionGeneratePriority enumeration. |
| PrivateDebug | Boolean | Read/Write | Generate the object(s) for private debug when set to true. |
| Function name | Return type | Parameters | Description | |
|---|---|---|---|---|
| Name | Type | |||
| DeleteAllGenerationRequest | Integer | --- | Removes all generation requests, returns the number of deleted generation requests. | |
| GenerateChangedObjects | Boolean | Wait | Boolean |
Generate all changed objects, returns false if any errors are found (Only when wait is set to true). Parameter Wait: Wait for the generate to complete. |
| [MaxWaitTimeInMinutes] | Integer | |||
| GenerateGlobalDefinitions | Boolean | Wait | Boolean |
Generate the global definitions, returns false if any errors are found (Only when wait is set to true). Parameter Wait: Wait for the generate to complete. |
| [MaxWaitTimeInMinutes] | Integer | |||
| GenerateObject | Boolean | LionObject | ILionObject |
Generate, in the specified Generation Set, the specified ILionObject Object using the current revision (of that Generation Set), returns false if any errors are found (Only when wait is set to true). Parameter Wait: Wait for the generate to complete. |
| Wait | Boolean | |||
| Cascade | Boolean | |||
| [MaxWaitTimeInMinutes] | Integer | |||
| GenerateWebDeploy | Boolean | Wait | Boolean |
Generate a Web Deployment, returns false if any errors are found (Only when wait is set to true). Parameter Wait: Wait for the generate to complete. |
| [MaxWaitTimeInMinutes] | Integer | |||
| GenerateWholeSystem | Boolean | Wait | Boolean |
Generate the whole active application for the active Generation Set, returns false if any errors are found (Only when wait is set to true). Parameter Wait: Wait for the generate to complete. |
| [MaxWaitTimeInMinutes] | Integer | |||
| GetGeneratableObjectTypes | List of LionObjectType | --- | Returns a list of generatable object types depending on the application kind. | |
| NumberOfRequestsOpen | Integer | OnlyThisApplication | Boolean |
Returns the total number of generate requests that are open. Parameter OnlyThisApplication: If set to true, returns the number of requests of the current application. |
| Name | Enumeration |
|---|---|
|
LionGeneratePriority Namespace: |
|
// Create an ILionApplication object of the application LION_CODE_TESTING
ILionApplication application = reposTest.GetApplication("LION_CODE_TESTING");
// Create an ILionGenSet object of the generation set Development
ILionGenSet genSet = application.GetGenSet("Development");
// Create an ILionGenerate object for the application using the ILionGenSet object
ILionGenerate generate = application.GetGenerate(genSet);
// Remove old generation requests
int deletedItems = generate.DeleteAllGenerationRequest();
// Generate the complete application
generate.GenerateWholeSystem(true, 60);# Create an ILionApplication object of the application LION_CODE_TESTING
$O_App = $O_Repos.GetApplication("LION_CODE_TESTING")
# Create an ILionGenSet object of the generation set Development
$O_Genset = $O_App.GetGenSet("Development")
# Create an ILionGenerate object for the application using the ILionGenSet object
$O_Generate = $O_App.GetGenerate($O_Genset)
# Remove old generation requests
$O_DeletedItems = $O_Generate.DeleteAllGenerationRequest()
# Generate the complete application
$O_Generate.GenerateWholeSystem($true, 60) | Out-Null