Remedy-ARSTools

 view release on metacpan or  search on metacpan

ARSTools.pm  view on Meta::CPAN


}


## ExportDefinition #############################
## export a serialized ARS Object from the ARServer in def or xml format
## on success return the serialized object, on error undef
## ObjectName	=> "Remedy:ARSTools:CrazyActiveLink",
## ObjectType	=> "active_link",
## DefinitionType	=> "xml"
## NOTE: ISS04238696 on BMC ... XML export will not work with overlays on form defs
sub ExportDefinition {
	my ($self, %p) = @_;

	#make sure we got our required and default options, yadda yadda
	foreach ('DefinitionType', 'ObjectName', 'ObjectType'){
		if ((! exists($p{$_})) || ($p{$_} =~/^\s*$/)){
			$self->{'errstr'} = "ExportDefinition: " . $_ . " is a required option";
			warn ($self->{'errstr'}) if $self->{'Debug'};
			return (undef);
		}

ARSTools.pod  view on Meta::CPAN

=item	"escalation"
=item	"dist_map"
=item	"container"
=item	"dist_pool"

=back

=item	DefinitionType	(required)

a value of either "xml" or "def" identifies the format to export the serialized object definition into
NOTE: as of ARS 7.6.04 XML definition export of forms with overlays applied does NOT work (though def format does).
BMC Support Ticket: ISS04238696 is open on this issue.

=back

=head1	DeleteObjectFromServer

this will delete an ARS Object from the ARServer. It probably goes without saying but you know ...
indescriminate use of this function can turn a perfectly good day of gainful employment into a hellacious nightmare
that ends with standing in line at the unemployment office ... so ... be careful m'kay?



( run in 1.357 second using v1.01-cache-2.11-cpan-26ccb49234f )