# @jc:rosettanet Annotation

Specifies the JCX class-level annotations for the RosettaNet control.

Note: Annotations can be specified at the JCX class level, at the JCX instance level, and at the JCX method level, in increasing order of precedence.

### Syntax

jc:rosettanet
[from="initiatorID"] | [from-selector="{xquery-expression}"]
[to="participantID"] | [to-selector="{xquery-expression}"]
[="rnif-version"]
[="pip"]
[="pip-version"]
[="from-role"]
[="to-role"]

### Attributes

The following attributes specify class- and method-level configuration attributes for the RosettaNet control:

Attribute Name | Description
--- | ---
from | DUNS of the initiator. Must match the business ID for the trading partner as defined in the TPM repository.
from-selector | XQuery expression that selects the business ID of the initiator. To learn how to specify the initiator business ID dynamically, see "Dynamically Specifying Business IDs" in Using a RosettaNet Control. Note: This attribute is not available at the control type level in the control definition file (JCX file). It only applies to control instance declarations in the business process file (JPD file).
to | DUNS of the participant. Must match the business ID for the trading partner as defined in the TPM repository.
to-selector | XQuery expression that selects the business ID of the participant. To learn how to specify the recipient business ID dynamically, see "Dynamically Specifying Business IDs" in Using a RosettaNet Control. Note: This attribute is not available at the control type level in the control definition file (JCX file). It only applies to control instance declarations in the business process file (JPD file).
rnif-version | Version of the RosettaNet Implementation Framework. Must be either 1.1 or 2.0.
pip | RosettaNet PIP code, such as 3B2. Must be a valid PIP code as defined in http://www.rosettanet.org/pipdirectory.
pip-version | RosettaNet PIP version. Must be a valid version number associated with the PIP.
from-role | RosettaNet role name for the sender as defined in the PIP specification, such as Buyer, Seller, Supplier, Receiver, Shipper, and so on. A PIP request might be rejected if an incorrect value is specified.
to-role | RosettaNet role name for the recipient as defined in the PIP specification, such as Buyer, Seller, Supplier, Receiver, Shipper, and so on. A PIP request might be rejected if an incorrect value is specified.