Examples-using cell aliases for Direct Publish publishing
Example 1
You need a service model for the Sales department in the production cells austin and brussels.
You define a Direct Publish production environment by executing the following command:
You create a BAROC source file named sales.baroc. In the source file, the following attributes are set: HomeCellAlias=austin, Consumer.HomeCellAlias=austin, and Provider.HomeCellAlias=brussels.
You can send the objects in the source file to the cells austin and brussels by running the following command:
Now, you want to experiment with the impact of a change to the service model in the test cells austin_test and brussels_test. You define a test Direct Publish environment by executing the following command:
You make a copy of the BAROC source file, sales.baroc, and name the copy sales_test.baroc. In the sales_test.baroc file, you add a new component and a new impact relationship and leave the remainder of the data in the source file unmodified.
You send the objects in the source file sales_test.baroc to the cells austin_test and brussels_test by executing the following command:
Example 2
The service model for the Sales department is needed for training.
You define a Direct Publish environment by executing the following command:
You need the same objects in the Sales.Training environment that are in the source file sales.baroc, so you send the objects in that source file to the cells austin_training and brussels_training by executing the following command:
Even though you did not modify the source file sales.baroc, which has CIs defined with HomeCellAlias=austin, the service model objects are sent to the cell austin_training because the Sales.Training environment was defined with cellalias-to-cellname pairs as austin, austin_training and brussels, brussels_training. See Determining the cell to which a component is published.