Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Performing the Save As operation in text analyzer

Updated on July 5, 2022

Use the pxSaveAsTextAnalyzer API to save a text analyzer into a new class when creating a new IVA channel.

This API has the following input properties:

pxSaveAsTextAnalyzer API input properties

ParameterDescription
PurposeThe text analyzer purpose.
DescriptionThe text analyzer description.
AppliesToThe applicable class of the text analyzer.
ExistingRuleNameThe name of the source text analyzer.
ExistingRuleAppliesToThe class of the source text analyzer.
RuleSetThe target ruleset of the new text analyzer.
RuleSetVersionThe target ruleset version of the new text analyzer.
CopyModelsIf set to true, the API checks whether the models in the text analyzer are accessible from the target Applies-To class. If not, the API copies the models together with the text analyzer.

The following table presents how the pxSaveAsTextAnalyzer API behaves, based on various combinations of the source and target text analyzer class and the model class:

pxSaveAsTextAnalyzer API behavior in various scenarios

CopyModels settingSource text analyzer classModel classTarget classOutcome
trueData-Decision-Request-EmailData-Decision-RequestData-Decision-Request-MCPThe model is not copied.
trueData-Decision-Request-EmailData-Decision-Request-Email and Data-Decision-RequestData-Decision-Request-MCPThe model is copied into the target class because it was specialized in the source class.
trueData-Decision-Request-EmailData-Decision-Request-EmailWork-The model is copied into the target class because the source model is not accessible from the target class.
trueData-Decision-Request-EmailData-Decision-Request-EmailData-Decision-Request-EmailThe model is not copied because the source class and the destination class are the same.
trueData-Decision-Request-EmailData-Decision-Request-EmailData-Decision-Request-MCP (a model with the same name is already present)The model is not copied because a model with the same name already exists in the target class.
trueData-Decision-RequestData-Decision-RequestData-Decision-Request-EmailThe model is not copied because the target class is a child class of the parent.
trueData-Decision-Request-EmailData-Decision-Request and Data-Decision-Request-EmailData-Decision-Request-MCPThe Save As operation completes successfully but the target rule refers to a model from the Data-Decision-Request class.
trueData-Decision-Request-EmailData-Decision-Request-EmailWork-The Save As operation fails because the target rule is unable to find the model.

Have a question? Get answers now.

Visit the Support Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us