- General Information
- Connecting Third-party Systems
- crossConnect for content systems
- crossConnect for External Editing
- Purpose and usage
- Requirements
- Implementation
- Across XLIFF format
- Across-specific Extensions
- <xliff> Element Attributes
- <file> Element Extensions
- <trans-unit> Element Extension
- Paragraph States
- Paragraph State Flags
- <source> and <target> Element Content
- <bpt> Element Attributes
- <ph> Element Attributes
- <x> Element Attributes
- Across-specific Properties
- Analysis Results
- Sample Files
- Across XLIFF - import, export and segmentation
- Context information
- Exporting best matches in Across XLIFF
- Hyperlinks to XLIFF
- Secure file handling with C#
- Secure file handling with JAVA
- Workflow and vendor configuration
- Sample code - Integrated solution
- Across XLIFF format
- Generic File Connector
- Display Texts
- APIs
- APIs - Technology
- crossTank API v1
- crossTank API v2
- crossTerm API v1
- crossTerm API v2
- crossAPI SI
- Requirements
- Function Return Types
- crossAPI SI and Java
- List of Objects in crossAPI SI
- Sample - transferring checkout files via FileManager
- Sample - VBS
- Text Preprocessing API
The filter rules
Example
The rule XML rules parameter and the external rule files use the following XML format.
Tip
The sample was pretty printed for better readability. Usually the XML is stored as a single line.
<?xmlversion="1.0"encoding="utf-8"?><rules><taskRules><ruleprojectNameRegularExpression="^_.*"ignoreCase="true"><acrossServers><servername="Your company"/><servername="Master1"/></acrossServers><subjects><subjectname="General"/><subjectname="Subject1"/></subjects><relations><relationname="Relation1"/><relationname="Relation2"/></relations><workflows><workflowname="Translation"/><workflowname="Translation and correction"/></workflows><taskTemplates><taskTemplatename="Document translation"/><taskTemplatename="Document correction"/></taskTemplates><sourceLanguages><languagelcid="1033"/><languagelcid="1031"/></sourceLanguages><targetLanguages><languagelcid="1036"/><languagelcid="1033"/></targetLanguages><assignedPerformer><performername="Default Supervisor"/><performername="My Across Crowd"/></assignedPerformer></rule></taskRules></rules>
The rules in detail
Each rule element represents a single rule where all specified parts must match a checked task for the whole rule to match the task.
All parts are optional. If a part is omitted it will not be checked and considered valid.
Specification in XML | Comments |
Master Servers | |
<taskTemplates><taskTemplatename="Document Translation"/><taskTemplatename="Document correction"/> ... </taskTemplates> | A list of one or more task template names. The part is valid when the task template name of the task matches one of the specified task template names. The comparison of task template names is not case sensitive. For the task finish event filtering (review case), enter the name of the following task here. |
Project Name | |
projectNameRegularExpression="^_.*" ignoreCase="true" | The regular expression is specified in the projectNameRegularExpression attribute. The part is valid when the regular expression matches the name of the project the task belongs to. The regular expression syntax must match the syntax used in C#: Regex referenceRegex reference The attribute ignoreCase is only available by editing the XML manually. By default the regular expressions are evaluated case sensitive. |
Subjects | |
<subjects><subjectname="General"/><subjectname="Subject1"/> ... </subjects> | A list of one or more values for the subject attribute in Across. The part is valid when the list of values of the subject attribute assigned to the project the task belongs to matches the specified list.
The comparison of subject values is not case sensitive. |
Relations | |
<relations><relationname="Relation1"/><relationname="Relation2"/> .... </relations> | A list of one or more values for the relation attribute in Across. The part is valid when the list of values of the relation attribute assigned to the project the task belongs to matches the specified list.
The comparison of relation values is not case sensitive. |
Workflows | |
<workflows><workflowname="Translation"/><workflowname="Translation and correction"/> ... </workflows> | A list of one or more workflow names. The part is valid when the task belongs to one of the specified workflows. The comparison of workflow names is not case sensitive. |
Task Templates | |
<taskTemplates><taskTemplatename="Document translation"/><taskTemplatename="Document correction"/> ... </taskTemplates> | A list of one or more task template names. The part is valid when the task template name of the task matches one of the specified task template names. The comparison of task template names is not case sensitive. For the task finish event filtering (review case), enter the name of the following task here. |
Source Languages | |
<sourceLanguages><languagelcid="1033"/><languagelcid="1031"/> ... </sourceLanguages> | A list of one or more LCIDs. The part is valid when the source language LCID of the task matches one of the specified LCIDs. Tip Ensure to use the correct Across LCIDs for special languages like Chinese. |
Target languages | |
<targetLanguages><languagelcid="1036"/><languagelcid="1033"/> ... </targetLanguages> | A list of one or more LCIDs. The part is valid when the target language LCID of the task matches one of the specified LCIDs. Tip Ensure to use the correct Across LCIDs for special languages like Chinese. |
Assigned Performers | |
<assignedPerformer><performername="Default Supervisor"/><performername="My Across Crowd"/> ... </assignedPerformer> | A list of one or more user names or crowd names. The part is valid when the name of the user or crowd assigned to the task matches one of the specified names. The comparison of user names and crowd names is not case sensitive. Please note that user name in this case does NOT mean the login name. |