Skip to main content

JavaScript Processor

The JavaScript Processor gives Simflofy Administrators the ability to access some vital pieces of the Repository Document API in order to modify documents while they are being processed for indexing or migration.

ECMA 5.1 Only

Not all JavaScript functions are supported by the processor. See the specification for more information.

The task utilizes Java's Nashorn engine, which uses the ECMA 5.1 specification to execute the JavaScript against the native Java API. Any method that can be called against the repository document can be called using JavaScript syntax. See the API for more information about what can be executed.

For more advanced usages of the API, see Oracle's examples.

You will notice that some of these examples invoke java classes directly. For security reasons, only the following classes may be accessed directly:

  • java.util.Date
  • java.util.HashSet
  • java.util.ArrayList
  • java.util.HashMap
  • java.lang.String
  • com.simflofy.core.integration.document.VersionInfoBean
  • com.simflofy.core.integration.document.RepositoryObjectType
  • com.simflofy.core.integration.document.RenditionInfoBean
  • com.simflofy.core.integration.document.SimflofyRelationship