You can add an attachment to a variable to simulate the attachment that a running process would normally receive and send. You can also add properties to the attachment and then manipulate properties with the
function. For details, see
Custom Functions for Manipulating Attachments
For a discussion of simulation, see
Simulating Execution of a BPEL Process.
To add attachments to a variable for simulation:
From the Process Editor canvas, select a receive, invoke, onMessage, or onEvent activity.
In the Properties view, under Simulation, do one of the following:
For a receive, onMessage, onEvent, click the
Dialog (...) Button
at the end of the
For an Invoke, click the Dialog (...) Button at the end of the
dialog, select either
for an attachment location, and browse to select an attachment.
Notice that known content properties are identified. For example, if you attach a GIF image, the Content Type is
Note that the
property that is added to indicate the size of the attachment in bytes.
If desired, edit the known properties, or add a new property as follows:
to open the
Type in a
. Note that the property must be a known property of the attachment.
to close the
To add another attachment, select
dialog, and continue adding an attachment.
After adding attachments, start simulation, as described in
Starting and Ending Simulation of a BPEL Process.
During simulation, open the process variables that have attachments. As the process receives, sends, or copies attachments, you can view the results in the Process Variables view.
Attachment properties must conform to known properties. For details, see abx:getAttachmentProperty in