AMT Help Files
homeAMT Developer StudioCode ManagementLionRepository ModuleInterfacesILionGenerate

ILionGenerate

This section details the functions and properties of the AMT-COBOL Repository Module Generate interface.

Properties

Name Type Access Description
Priority LionGeneratePriority Object Read/Write Control the priority of the next generation requests.
PrivateDebug Boolean Read/Write Generate the object(s) for private debug when set to true.

Functions

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. Optional parameter MaxWaitTimeInMinutes: If wait is set to true, setting this parameter will limit the time of waiting to this value in Minutes. When the maximum wait time expires, a "Maximum wait time expired" exception is raised. Default is 0 which is an unlimited wait time.
[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.
Optional parameter MaxWaitTimeInMinutes: If wait is set to true, setting this parameter will limit the time of waiting to this value in Minutes. When the maximum wait time expires, a "Maximum wait time expired" exception is raised. Default is 0 which is an unlimited wait time.
[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.
Parameter Cascade: Generate all children and parent (with their children).
Optional parameter MaxWaitTimeInMinutes: If wait is set to true, setting this parameter will limit the time of waiting to this value in Minutes. When the maximum wait time expires, a "Maximum wait time expired" exception is raised. Default is 0 which is an unlimited wait time.
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. Optional parameter MaxWaitTimeInMinutes: If wait is set to true, setting this parameter will limit the time of waiting to this value in Minutes. When the maximum wait time expires, a "Maximum wait time expired" exception is raised. Default is 0 which is an unlimited wait time.
[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. Optional parameter MaxWaitTimeInMinutes: If wait is set to true, setting this parameter will limit the time of waiting to this value in Minutes. When the maximum wait time expires, a "Maximum wait time expired" exception is raised. Default is 0 which is an unlimited wait time.
[MaxWaitTimeInMinutes] Integer
GetGeneratableObjectTypes List of LionObjectType Objects 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.
Parameters OnlyThisApplication, set to true to return the number of requests of the current application only.

Enumerations

Name Type Enumeration
LionGeneratePriority Integer
  • Low = 1
  • Normal = 5
  • High = 9

Example

C#

// 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);

PowerShell

# 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

Contents

 Go to top