Go to the directory install/registry-samples/organizations.
Retrieve the organization hierarchy by running the following command:
Ant-base/ant search-fam |
Notice the key ID strings of the two child organizations.
Go to the directory install/registry-samples/publish-association.
Type the following command:
Ant-base/ant run -Did1=string1 -Did2=string2 |
Replace string1 and string2 with the two child organization ID strings.
Whether the association is intramural or extramural depends upon who owns the two objects. In this case, the association is intramural.
The output of the run target looks something like this:
run: [java] ID 1 is urn:uuid:176d2620-7733-4d74-9525-854dd4d2dbe0 [java] ID 2 is urn:uuid:0302e35b-c104-41c7-85f1-96f51f9ac56b [java] Query URL is http://localhost:6480/soar/registry/soap [java] Publish URL is http://localhost:6480/soar/registry/soap [java] Created connection to registry [java] Established security credentials [java] Got registry service, query manager, and life cycle manager [java] Object type is Organization [java] Object name is Child Organization 1 [java] Object description is child organization 1 [java] Child Organization 1 created 2007-07-22 23:30:15.0 [java] Object type is Organization [java] Object name is Child Organization 2 [java] Object description is child organization 2 [java] Child Organization 2 created 2007-07-22 23:30:15.0 [java] Concept value: RelatedTo [java] Classification scheme is AssociationType [java] Association ID is urn:uuid:36f72e8f-bc87-47ea-8e22-a199b1be0276 [java] Association saved |