This page shows an example of how to manipulate documents in a Bonita BPM process using the Java APIs.
A document is treated in a similar way to a variable in Bonita BPM Engine database. It is defined in Bonita BPM Studio or programmatically, and is stored in the Bonita BPM Engine database. Inside a process instance, a document is a byte stream.
The code samples in this page are extracts from a complete example of a process integrated in an application. In the invoicing example, there are two documents, one internal and one external.