Last updated
Last updated
In a Test Method you create and provide all the necessary information that is needed in the script. The Test Method creates the (see ) and passes it to the script.
The ScriptContext
has the following properties:
See in the following chapter how to set and pass a content to a Process Script.
IMPORTANT
Process Properties need a little bit more effort. You need to provide
the Process Property Component Id (b91d87a4-7e8b-4a98-8ea8-a85e32bb5677
) and
the Process Property Value Key (fcc4749d-5135-4eaa-a9cf-1b2ddc1ad12
)
Process Property Ids are system independent. This means, these IDs won't change even if you copy or export process properties to a different account. The Ids remain the same!
In this section you will learn how to initialize properties in a Test class to use them in a script. If you want to know how to access (read/write) properties in a Boomi Script, read here:
Use the Document.fromText()
factory method to add any number of documents to the ProcessScriptContext.inputDocuments
list. Dynamic Dcoument Properties are represented as , which is a key : value
list.
How to initialize documents, process and document properties