Back to index
Summary
Defines a dependency of an application (or its snapshot) on another application (or snapshot). At runtime, the deployment process checks for the dependent applications on the environment. The deployment stops if dependent applications or their versions are not present and you have requested enforcement of the dependency check. Otherwise, the deployment continues with a warning.projectNameStringrequiredThe name for the project that must be unique among all projects. applicationNameStringrequiredThe name of the application. applicationDependencyNameStringoptionalThe name of application dependency. If not specified, a system generated GUID is used. dependentApplicationNameStringoptionalThe name of application which this application depends on. dependentProjectNameStringoptionalThe name the project containing the dependent application. dependentSnapshotNameStringoptionalThe name of snapshot of the dependent application. effectiveDateStringoptionalThe date when this dependency is applicable (for example, 2023-05-15). snapshotNameStringoptionalName of the snapshot; must be unique within the application. |
Usage
Perl
$cmdr->createApplicationDependency( "test-projectName", # projectName "test-applicationName" # applicationName # optionals );
ectool
ectool createApplicationDependency \ "test-projectName" `# projectName` \ "test-applicationName" `# applicationName` \ # optionals
Examples
Perl
To create a dependency between two component process steps in a master component:
$cmdr->createApplicationDependency('Default', 'Deploy', 'Get WAR file', 'Copy WAR file', {componentName => 'WAR file'});
To create a dependency between two component process steps in a specific application:
$cmdr->createApplicationDependency'Default', 'Deploy', 'Get WAR file', 'Copy WAR file', {componentName => 'WAR file', componentApplicationName => 'Shopping Cart'});
To create a dependency between two application process steps:
$cmdr->createApplicationDependency('Default', 'Deploy', 'Get WAR file', 'Copy WAR file', {applicationName => 'Shopping Cart'});
ectool
To create a dependency between two component process steps in a master component:
ectool createApplicationDependency 'Default' 'Deploy' 'Get WAR file', 'Copy WAR file' --componentName 'WAR file'
To create a dependency between two component process steps in a specific application:
ectool createApplicationDependency 'Default' 'Deploy' 'Get WAR file', 'Copy WAR file' --componentName 'WAR file' --componentApplicationName 'Shopping Cart'
To create a dependency between two application process steps:
ectool createApplicationDependency 'Default' 'Deploy' 'Get WAR file', 'Copy WAR file' --applicationName 'Shopping Cart'