# Query Subscription Administration Console Online Help

# Create query subscriptions

Query subscriptions provide a method for querying RFID event data and sending the query results to a local or remote destination.

To create a query subscription:

1. In the left pane of the Console, click Query Subscription Administration.
2. In the Active Subscriptions table, click New.
3. On the Create New Subscription page, you can either accept the generated Subscription ID or edit the text field to create your own ID for the subscription.

   The Subscription ID is the name that will be assigned to this subscription. Each Subscription ID must be unique.

   Note: You cannot change the Query Name because SimpleEventQuery is the only supported query type.

4. Click Next.
5. On the Parameters page, select a parameter name from the Add Parameter drop-down list.

   The Console opens a Parameter Configuration page.

6. On the Parameter Configuration page, select or type the value for the parameter.

   Some parameters give you a choice of values, some require that you type the value in the text box. For information on value types for parameters, see Configuration Options.

7. Click OK to accept the value and return to the Parameters page.
8. Continue adding parameters (steps 4 and 5) until you have created the query associated with the subscription.

   If you forget to add a parameter when creating a subscription, you can add, modify, or delete parameters at any time.

9. On the Parameters page, when you have added all the parameters for the query, click Test Query.

   The Console executes the query parameters against the data in the Event Repository, and displays the results in XML. The query will return successfully. You must look at the XML results and decide whether they are what you expect to see given the query parameters.

10. Depending on whether the query results meet your expectations.
    - If the query results meet your expectations, click Back to return to the Parameters page, and then click Next to proceed to the Destination page.
    - If the query results do not meet your expectations, click Back to return to the Parameters page. Modify the parameters and values, and continue testing until Test Query displays the results you want.
11. On the Destination page, select a type from the Destination Type drop-down list.

    The available types are AS2, Console, File, HTTP, JMS, and Other.

    The page refreshes to display the options for the destination type you select.

12. Configure the Subscriber options for the destination type.

    For information about the options for each destination type, see Configuration Options.

13. Click Next.
14. On the Subscription Schedule page, configure the subscription schedule and decide whether or not to send a report when there are no results (empty report).

    For information about the schedule options see Configuration Options.

15. Click Finish to save the subscription and display the Active Subscriptions table.