Arbortext Publishing Engine Programmer's Guide > The Arbortext Publishing Engine Sub-Process > Writing Arbortext PE アプリケーションs in VBScript
Writing Arbortext PE アプリケーションs in VBScript
An Arbortext PE アプリケーション written in VBScript is a VBScript subroutine which takes no parameters. The Arbortext PE Request Manager processes requests for VBScript applications by passing requests whose f parameters have the value vbscript to the Request Function com.arbortext.e3.FunctionVbscript. The request function allocates an Arbortext PE サブプロセス and passes the request to the Arbortext PE アプリケーション Context (described in The Arbortext PE サブプロセス Application Context). The Arbortext PE アプリケーション Context allocates request and response objects, as for a Java application, and stores references to them in global variables. Then it calls the VBScript function indicated by the request's function parameter. The function must have been defined in a .vbs file in a custom\init directory or in a .vbs file in custom\scripts which is loaded from custom\init.
VBScript Arbortext PE アプリケーションs are specifically for Windows systems. The VBScript Arbortext PE アプリケーション is called without any parameters. It obtains request and sets response information by invoking methods in the packages PEAppRequest and PEAppResponse, which access the request and response objects allocated by the Arbortext PE アプリケーション Context.
The return value of the VBScript Arbortext PE アプリケーション function is ignored. Whether it succeeds or produces an error response, everything to be returned to the client must be stored in the response object.
Unlike a Java Arbortext PE アプリケーション, a VBScript application has no initialization or termination components.
これは役に立ちましたか?