An input document is a file on the local file system, a URL, or a hard-coded string.
You can define the input document in the script or in input parameters. The procedure for the main input document differs from the procedure for additional documents.
Main Input
In the script, you can define a main input document to read when you run the project in the Developer. You can also define a list of documents to read in the production environment and in the Developer.
Use the
example_source
property of the main parser, mapper, or serializer to define the main input document for the project when you run it in the Developer.
Use the
sources_to_extract
property of the main parser to define a list of input documents for both the Developer and the production environment.
If you define the
sources_to_extract
property and you want to specify the input document with the input parameters, you must configure the
sources_to_extract
pre_processor
property to be the same as the
example_source
pre_processor
property.
When you use the CM_console command to run the service from the repository in the production environment, use the -f, -u, or -t option to specify the input document for the main input. When you use another API, use the applicable input parameters.
AdditionalInputPort
In the script, you can define an additional input document to read when you run the project in the Developer.
Use the
example_source
property of the
AdditionalInputPort
to define the input document for the port when you run the project in the Developer.
When you use the CM_console command to run the service from the repository in the production environment, use the -xf, -xu, or -xt option to specify the input document for the port. When you use another API, use the applicable input parameters.