The Xml Summarizer Executor can be configured using the Rest API. 

Create Xml Summarizer Executor


Field

Required

Default

Multiple

NotesExample
typeYes-No

The value must be "application".

"application"

_typeYes-No

The value must be "application".

"application"

appNameYes-NoThe name of the application"Xml-Executor"
appTypeYes-NoThe value must be "xml-summarize-executor"."xml-summarize-executor"
configYes-NoThe value must be "com.accenture.aspire:app-xmlsummarize-executor"."com.accenture.aspire:app-xmlsummarize-executor"
descriptionYes-NoThe description

"Xml-Executor"

propertiesYes-NoConfiguration object
rootNodeYes"/"NoThe root node which contains the sub-jobs to publish. "/path/rootNode/"
characterEncodingNo"UTF-8"NoThe character encoding of the XML file to be read, if not UTF-8."UTF-8"
cleanseNotrueNoEnable if you want to clean the XML content from non-readable characters.ASCII code 15
honorDTDNotrueNoFetch XML's DTD.true
limitNestedNofalseNoLimit how many levels in a nested structures should be flattened.false
maxLevelNo10NoThe maximum nested level to be flatten.10
limitArraysNofalseNoLimit how many entries in array structures should be processed.false
arraysLimitNo10NoThe maximum number of array entries to process.10
debugNofalseNoDebug messages will be enabled.false
threadPoolNo5NoThe number of threads to use for parallel processing.5
logFrequencyNo5NoThe frequency for reporting the processed rows.5
useSamplingNofalseNoProcess only a random sample of the table rows. This option could increase the memory usage.false
minimumSamplesNo10NoThe minimum of randoms samples that will be gathered from the table.10
maxSamplesNo2000NoThe maximum of randoms samples that will be gathered from the table.2000
minimumPercentNo0.35NoThe minimum percentage of the total rows to process from table.0.35
limitRowsNofalseNoLimit how many rows from the table will be read.false
maxRowsToReadNo10NoThe maximum of row from the table that will be read.10
filterRowsNofalseNoCheck to filter the rows to process.false
useFilterFileNotrueNoEnable to use a groovy file to filter.true
useScriptFileNotrueNoEnable to specify a script file or disable to specify an uploaded resource file.true
groovyPathYes-NoThe path of the groovy script that contains the filter logic.  It must return a boolean value. If true, the row will be filtered."C:\\Aspire\\config\\rowsGroovyFilter.txt"
groovyScriptNo-NoScript used to filter the rows. It must return a boolean value. If true, the row will be filtered."row.getBoolean(\"sensitive\") == true"

Example

POST /aspire/_api/workflows/{workflow}/rules
{
  "type": "application",
  "_type": "application",
  "description": "Xml-Executor",
  "config": "com.accenture.aspire:app-xmlsummarize-executor",
  "appType": "xml-summarize-executor",
  "appName": "Xml Summarize Executor",
  "properties": {     
	"rootNode": "/",
  	"characterEncoding": "UTF-8",
  	"cleanse": true,
  	"honorDTD": true,
  	"limitNested": false,
  	"limitArrays": false,
  	"debug": false,
  	"threadPool": 5,
  	"logFrequency": 5,
  	"useSampling": false,
  	"filterRows": false
    "useFilterFile": false,
    "groovyScript": "// This script must return a boolean.\n// The references of the job, doc, component, row and table objects are available.\n// Javadoc references \n// Row (row) - http://{manager}/javadocs/com/accenture/aspire/services/summarization/Row.html\n// Table (table) - http://{manager}/javadocs/com/accenture/aspire/services/summarization/Table.html\nrow.getBoolean(\"sensitive\") == true"
  }
}

Update Xml Summarizer Executor


Field

Required

Default

Multiple

NotesExample
typeYes-No

The value must be "application".

"application"

_typeYes-No

The value must be "application".

"application"

appNameYes-NoThe name of the application"Xml-Executor"
appTypeYes-NoThe value must be "xml-summarize-executor"."xml-summarize-executor"
configYes-NoThe value must be "com.accenture.aspire:app-xmlsummarize-executor"."com.accenture.aspire:app-xmlsummarize-executor"
descriptionYes-NoThe description

"Xml-Executor"

propertiesYes-NoConfiguration object
rootNodeYes"/"NoThe root node which contains the sub-jobs to publish. "/path/rootNode/"
characterEncodingNo"UTF-8"NoThe character encoding of the XML file to be read, if not UTF-8."UTF-8"
cleanseNotrueNoEnable if you want to clean the XML content from non-readable characters.ASCII code 15
honorDTDNotrueNoFetch XML's DTD.true
limitNestedNofalseNoLimit how many levels in a nested structures should be flattened.false
maxLevelNo10NoThe maximum nested level to be flatten.10
limitArraysNofalseNoLimit how many entries in array structures should be processed.false
arraysLimitNo10NoThe maximum number of array entries to process.10
debugNofalseNoDebug messages will be enabled.false
threadPoolNo5NoThe number of threads to use for parallel processing.5
logFrequencyNo5NoThe frequency for reporting the processed rows.5
useSamplingNofalseNoProcess only a random sample of the table rows. This option could increase the memory usage.false
minimumSamplesNo10NoThe minimum of randoms samples that will be gathered from the table.10
maxSamplesNo2000NoThe maximum of randoms samples that will be gathered from the table.2000
minimumPercentNo0.35NoThe minimum percentage of the total rows to process from table.0.35
limitRowsNofalseNoLimit how many rows from the table will be read.false
maxRowsToReadNo10NoThe maximum of row from the table that will be read.10
filterRowsNofalseNoCheck to filter the rows to process.false
useFilterFileNotrueNoEnable to use a groovy file to filter.true
useScriptFileNotrueNoEnable to specify a script file or disable to specify an uploaded resource file.true
groovyPathYes-NoThe path of the groovy script that contains the filter logic.  It must return a boolean value. If true, the row will be filtered."C:\\Aspire\\config\\rowsGroovyFilter.txt"
groovyScriptNo-NoScript used to filter the rows. It must return a boolean value. If true, the row will be filtered."row.getBoolean(\"sensitive\") == true"

Example

PUT /aspire/_api/workflows/{workflow}/rules/{id}
{
  "id": "61014782-442a-4587-ab85-ba1439a7f7b5", 
   "type": "application",
  "_type": "application",
  "description": "Xml-Executor",
  "config": "com.accenture.aspire:app-xmlsummarize-executor",
  "appType": "xml-summarize-executor",
  "appName": "Xml Summarize Executor",
  "properties": {     
	"rootNode": "/",
  	"characterEncoding": "UTF-8",
  	"cleanse": true,
  	"honorDTD": true,
  	"limitNested": true,
  	"maxLevel": 10,
  	"limitArrays": true,
  	"arraysLimit": 10,
  	"debug": true,
  	"threadPool": 5,
  	"logFrequency": 5,
  	"useSampling": true,
  	"minimumSamples": 10,
  	"maxSamples": 2000,
  	"minimumPercent": 0.35,
  	"limitRows": true,
  	"maxRowsToRead": 10,
  	"filterRows": true,
  	"useFilterFile": false,
    "groovyScript": "// This script must return a boolean.\n// The references of the job, doc, component, row and table objects are available.\n// Javadoc references \n// Row (row) - http://{manager}/javadocs/com/accenture/aspire/services/summarization/Row.html\n// Table (table) - http://{manager}/javadocs/com/accenture/aspire/services/summarization/Table.html\nrow.getBoolean(\"sensitive\") == true"
  }
}
  • No labels