API Fields

  • "type" must always be specified as "application".
  • "_type" must always be specified as "application".
  • "description" must be a descriptive string without spaces.
  • "config" must always be specified as "com.accenture.aspire:app-slide-extractor".
  • "appType" must always be specified as "slide-extractor".
  • "appName" must always be specified as "Slide Extractor".


FieldRequiredDefaultMultipleNotesExample
propertiesYes-NoConfiguration object
setTempFileYestrueNo

The path to the folder where the temporal files were processed. Furthermore, you can set a System Variable "user.dir" with the path

true/false
tempFilesPath

No

"${aspire.home}/temp"No

The path to the folder where the temporal files were being processed

"${aspire.home}/temp"
maxFileSizeYesfalseNo

Maximum characters for the file loaded into memory to be parsed. (False will be set to unlimited)

true/false
charactersNo1000000No

The max number of characters as a limit for the number of characters to be processed, to prevent memory consumption

1000000
addParentInfoYesfalseNo

Check if you want to add extra info from the parent to every slide of the file

true/false
parentFieldNo"datamodel"No

Specify the name of the field from the parent job to add as extra info to every slide

"datamodel"
threadTimeoutYes15No

Maximum time (in minutes) for the processing thread to wait for the parsing result

15
subJobSleepYes60000No

Time to wait (in milliseconds) until all sub jobs are done

60000
debugNofalseNoSet to true to enable debug messages.true/false



Create example


POST /aspire/_api/workflows/:id/rules
# All languages
{
    "type": "application",
    "_type": "application",
    "description": "sample-slide-extractor",
    "config": "com.accenture.aspire:com.accenture.aspire:app-slide-extractor",
    "appType": "slide-extractor",
    "appName": "Slide Extractor",
    "properties": {
  		"setTempFile": true,
  		"tempFilesPath": "${aspire.home}/temp",
  		"maxFileSize": true,
  		"characters": "1000000",
 		"addParentInfo": true,
		"parentField": "datamodel",
  		"threadTimeout": 15,
  		"subJobSleep": 60000,
  		"debug": false
	} 
}
  • No labels