You are here: Business Intelligence Exchange (BIX) > Command-line BIX extractions

Command-line BIX extractions

In addition to running a BIX extract from within the Designer Studio, you can directly call the ExtractImpl Java class in the Pega Platform application libraries to define and run an extract process. Specify the data to be extracted and the output format by referencing an Extract rule that you have created in the Pega Platform. ExtractImpl can either access the Extract rule in the Pega Platform database or read an XML file containing the XML representation of the rule. BIX in the command-line executes in its own Java Virtual Machine (JVM) instance.

During command-line BIX extraction, a stand-alone instance of the PegaEngine is started, therefore the database user running the command-line BIX extraction must have all of the privileges needed to start the engine.

You can add other optional parameters that filter the data by any property, including date ranges, and specify other processing options. For more information, see Setting optional command-line BIX parameters.

Running an Extract rule from the command line works in the following way:

  1. BIX accesses the Pega Platform (source) database using the information defined in the BIX prconfig.xml file.
  2. BIX prbootstrap.properties starts up the PegaEngine with the Pega Platform (source) database details provided and gets the ExtractImpl.class code.
  3. Using the information configured in the bix.xml file and specified in the Extract rule, BIX extracts the specified data from the Pega Platform (source database).
  4. The extracted data is output in the output format specified in the Extract rule.