KB Article #193040

Export container from Composer with AccoutingIntegratorEnabler

Important things to know before exporting objects/containers:


In addition to the documentation available here starting with page 62:

https://docs.axway.com/bundle/Composer_380_AdministratorGuide_allOS_en_PDF/resource/Composer_3.8.0_AdministratorsGuide_allOS.pdf


1. Find the names of the installed Enablers using the command (replace accordingly the <user> and <password> values):


xdcmd getEnablers -user <user> -pwd <password>

This will output will look like this (on a Composer installation having only Accounting Enabler installed):

Enabler list:

=============

1 - Service

2 - Finance

3 - Topography

4 - Common


2. Find the available object types for a particular Enabler, or for all the installed Enablers if no Enabler it is specified in the command below (using here the Enabler name Finance found before):

xdcmd getType -user <user> -pwd <password> -enabler Finance -urlFormat yes

This will output something like (trimmed using [...]):

Type list for Enabler Finance

=============================

AggregationRule <type>.<folder>.<name>[:<release>].<version>

AuditRule <type>.<folder>.<name>[:<release>].<version>

BalancingRule <type>.<folder>.<name>[:<release>].<version>

AccountingIntegratorBusinessDocument <type>.<folder>.<name>[:<release>]

AccountingIntegratorBusinessDocumentInOut <type>.<folder>.<name>[:<release>]

EventType <type>.<folder>.<name>[:<release>].<version>

[...]

TransformationRule <type>.<folder>.<name>[:<release>].<version>

TransformationDomain <type>.<folder>.<name>[:<release>]

[...]

ServerAccountingIntegratorComponentXRDJ_RepositoryTemplate <type>.[<environment:>]<name>[:<release>]

Examples:


a)create a Container with a specific Transformation Rule, on WINDOWS:


xdcmd deployment -user admin -pwd admin -export C:\Temp -name ContainerTest -version 1 -includeExportFile YES -setDeployStatus yes -objectsList "TransformationRule.SUPPORT\TEST.SUN.1"

The command above will create:


- a Deployment Container named ContainerTest ->> containing the Transformation Rule named SUNàhaving Version 1 that is located inside the folder TEST that is inside of the folder SUPPORT. The Transformation Rule url format was taken from the getType command output. The Container will include the generated Export file.


b) If want to create a Container with multiple objects specify in the command above each objects separated by space:


xdcmd deployment -user <user> -pwd <password> -export C:\Temp -name ContTest -version 1 -includeExportFile <YES/NO> -setDeployStatus <YES/NO> -objectsList "<objectUrl_1> <objectUrl_2> <objectUrl_3>"


c)Another example on LINUX for an AuditRule:


-bash-4.2# ./xdcmd deployment -export "/root/composer380" -name TestContainer -version 2 -shortDescription "test" -objectsList AuditRule.SUPPORT.AUDCRE.1 -setDeployStatus YES -includeExportFile YES
Command: xdcmd deployment -export /root/composer380 -name TestContainer -version 2 -shortDescription test -objectsList AuditRule.SUPPORT.AUDCRE.1 -setDeployStatus YES -includeExportFile YES -config xdcmd.properties
Connecting to Server myhostname.int:4001
Batch processing is running, please wait ...
(Information) : Export to deploy file successfully
Execution time: 8 s.

The container will be found in the mentioned path in the command.