JiGlue.Util Reference

This section describes the method supported by the JiGlue.Util object:

Tip To use the JiGlue COM Bridge in Visual Basic, add it to your current project. To use the JiGlue COM Bridge in VBScript, in a non-Web WorkFlo application, register the file on the web server.

newInstance()

The method creates an COM object that represents the specified Java object. In most cases, you need only to create an instance of the VWSession object to be able to access other objects in the eProcess APIs. This is the most often used method in the Web WorkFlo application.

Note The Jiglue.newInstance method can only instantiate an object whose class has a default constructor (that is, without any argument).

Syntax

newInstance(className)

Parameters

set vwAttachment = JiGlue.newInstance("filenet.vw.api.VWAttachment")

Visual Basic example:

Dim objJiGlue As New JiGlue.JiGlueUtil
Dim objAttachment As Object
Set objAttachment = objJiGlue.newInstance("filenet.vw.api.Attachment")

VBScript example:

dim objJiGlue, objAttachment
set objJiGlue = CreateObject("JiGlue.Util")
set objAttachment = objJiGlue.newInstance("filenet.vw.api.Attachment")

Returns

A COM object representing the Java class specified in the className parameter.

Back to top.