apm_package_instance_new (public)

 apm_package_instance_new -package_key package_key \
    [ -instance_name instance_name ] [ -package_id package_id ] \
    [ -context_id context_id ]

Defined in packages/acs-tcl/tcl/apm-procs.tcl

Creates a new instance of a package and calls the post instantiation proc, if any. If the package is a singleton and already exists then this procedure will silently do nothing.

Switches:
-package_key (required)
The package_key of the package to instantiate.
-instance_name (optional)
The name of the package instance, defaults to the pretty name of the package type.
-package_id (optional)
The id of the new package. Optional.
-context_id (optional)
The context_id of the new package. Optional.
Returns:
The id of the instantiated package

Partial Call Graph (max 5 caller/called nodes):
%3 test_test_apm_package_instance__new test_apm_package_instance__new (test acs-tcl) apm_package_instance_new apm_package_instance_new test_test_apm_package_instance__new->apm_package_instance_new apm::package_version::attributes::get_instance_name apm::package_version::attributes::get_instance_name (private) apm_package_instance_new->apm::package_version::attributes::get_instance_name apm_invoke_callback_proc apm_invoke_callback_proc (public) apm_package_instance_new->apm_invoke_callback_proc apm_parameter_sync apm_parameter_sync (public) apm_package_instance_new->apm_parameter_sync db_0or1row db_0or1row (public) apm_package_instance_new->db_0or1row db_exec_plsql db_exec_plsql (public) apm_package_instance_new->db_exec_plsql apm_package_install apm_package_install (public) apm_package_install->apm_package_instance_new install::xml::action::create-package install::xml::action::create-package (public) install::xml::action::create-package->apm_package_instance_new packages/acs-admin/www/apm/package-instance-create.tcl packages/acs-admin/ www/apm/package-instance-create.tcl packages/acs-admin/www/apm/package-instance-create.tcl->apm_package_instance_new site_node::instantiate_and_mount site_node::instantiate_and_mount (public) site_node::instantiate_and_mount->apm_package_instance_new

Testcases:
test_apm_package_instance__new
[ show source ]
Show another procedure: