An example is provided here of how to work with the VWAttachmentPanel bean to access attachments. These attachments are stored in object stores by Java™ Step Processors or Launch Step Processors.
The following example assumes that you declare and initialize these three variables near the top of the class definition:
VWStepElement vwStepElement = null;
Frame parentFrame = null;
VWSession vwSession = null;
JComponent newJComponent = null;
if (vwStepElement.getParameters(VWFieldType.FIELD_TYPE_ATTACHMENT, VWStepElement.FIELD_USER_DEFINED) != null)
newJComponent = (JComponent)Beans.instantiate(getClass().getClassLoader(), "filenet.vw.toolkit.runtime.step.beans.VWAttachmentPanel");
if (newJComponent != null)
\\While it is not shown here, you should include code to add the JComponent to the
\\containing VWPanel to expose the attachment list to the end user.
if (newJComponent instanceof IVWStepProcessorComponent)
((IVWStepProcessorComponent)newJComponent).init(vwStepElement, parentFrame, vwSession);