Passing arguments by using smart parameters

Smart parameters are action arguments that get evaluated at run time.

Datacap provides various special variables (@<variable_name>) that you can use within smart parameters to access dynamic information at run time. You can use smart parameters to do the following tasks:

  • Get information from the application configuration file
  • Get (or set) the value of an object in the document hierarchy (typically a variable or a field value)
  • Get job information such as the task name, ID of the operator who is running the batch
  • Get system information such as the current date, time

Smart parameters can also include strings, navigation elements, and combinations of strings, navigation elements, and special variables.

You use a few smart parameters in the TravelDocs sample application. For example, when you create the ExportXML ruleset you use @BatchID to set the export file name equal to the ID of the current batch:

xml_SetFileName("@BatchID")

Since the value of @BatchID is different each time you run a batch through the workflow, you can create a unique export file for each batch.

You can update the TravelDocs application to export the line item grid data to an XML file. This update requires the use of various smart parameters.