You may need to create a search that will find all pages in the predefined workstate, but not in edition templates.
Example
<searchObjectUI name="PagesByWorkstateNotTemplates">
<attribute path="[page.editionRef.titleRef]" op="In">
<ui label="Title:" labelPosition="Side" orientation="Horizontal">
<template kind="Single" opMode="Hidden" />
</ui>
</attribute>
<searchConditions>
<SearchNode Op="And" xsi:type="ConditionSearchNode"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd">
<Left Op="Equal" xsi:type="ConditionSearchNode">
<Left xsi:type="AttributeSearchNode" Path="page.workstateRef.name" />
<Right xsi:type="StringSearchNode" Value="Automatic Print" />
</Left>
<Right Op="In" xsi:type="ConditionSearchNode">
<Left xsi:type="AttributeSearchNode" Path="page.editionRef.isTemplate" />
<Right xsi:type="BooleanSearchNode" Value="false" />
</Right>
</SearchNode>
</searchConditions>
</searchObjectUI>
Explanation
There are two conditions: workstatename = specified one, and "not template".
Both conditions are added after the page.editionRef.titleRef attribute, between:
<searchConditions>
and
</searchConditions>
Moreover, the definition is enclosed within:
<SearchNode Op="And" xsi:type="ConditionSearchNode"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://www.teradp.com/schemas/GN4/1/SearchConditions.xsd">
....
</SearchNode>
The "workstate" condition is specified as:
<Left Op="Equal" xsi:type="ConditionSearchNode">
<Left xsi:type="AttributeSearchNode" Path="page.workstateRef.name" />
<Right xsi:type="StringSearchNode" Value="Automatic Print" />
</Left>
The "not in template" condition is specified as:
<Right Op="In" xsi:type="ConditionSearchNode">
<Left xsi:type="AttributeSearchNode" Path="page.editionRef.isTemplate" />
<Right xsi:type="BooleanSearchNode" Value="false" />
</Right>