Store Content in IDOL Server > Process Data before you Index > Perform an ACI Action > Set up an ACI Task

Set up an ACI Task
To set up an ACI task
1.
Open the IDOL server configuration file in a text editor.
2.
In the [IndexTasks] section, add a new subsection for the task. The name that you give this section must be unique. For example:
[MyACITask]
3.
Set Module to ACI, to identify the task as an ACI task. For example:
Module=ACI
4.
Set Host to the IP address (or host name) of the IDOL server to send the ACI action to. Set Port to the ACI port of this IDOL server. For example:
Host=123.4.5.67
Port=9000
 
NOTE The Port is always the ACI port, and not the index port.
5.
Set Action to the action that you want IDOL server to execute. For example:
Action=Summarize
6.
Set Params to a list of one or more action parameters to use in the ACI action. Separate multiple action parameters with commas (there must be no space before or after a comma). Set Values to a list of the corresponding parameter values. For example:
Params=Summary,Sentences
Values=Concept,1
7.
Set Fields to the names of fields to use for dynamic parameters. Set ReMapToFields to the parameter to which they map. IDOL server uses the value of this field in the document as the value of the specified parameter. To use more than one field, separate them with commas (there must be no space before or after the commas). For example:
Fields=DRECONTENT
ReMapToFields=Text
8.
Set XMLPaths to the full path to the XML fields that contain result information. Set XMLFieldNames to the fields to store these results in. For example:
XMLPaths=autnresponse/responsedata/autn:summary
XMLFieldNames=DRETITLE
9.
SeparateDuplicateXMLFields=true
XMLFieldSeparator=*.*
10.
Save the IDOL server configuration file and restart IDOL server for your configuration changes to take effect.
Related Topics 
*
Example
In the following example, an ACI task automatically generates titles for incoming documents using a Summarize action. It uses the following configuration:
[MyACITask]
Module=ACI
Host=127.0.0.1
Port=9000
Action=Summarize
Params=Summary,Sentences
Values=Concept,1
Fields=DRECONTENT
ReMapToFields=Text
SeparateDuplicateXMLFields=True
XMLPaths=autnresponse/responsedata/autn:summary
XMLFieldNames=DRETITLE
NextTask=MyIndexTask
Every time IDOL server performs this task on an incoming document, it executes a Summarize action with the parameter Summary set to Concept, the parameter Sentences set to 1 and the parameter Text set to the content of the incoming document's DRECONTENT field:
action=Summarize&Summary=Concept&Sentences=1&Text=DRECONTENTvalue
When the action returns its result, IDOL server creates a DRETITLE field in the document and uses it to store the content of the result's autn:summary field.
IDOL server performs the specified NextTask after this task completes (in this case, MyIndexTask).