Browse Prior Art Database

Method for Abstracting Function Calls in Script Languages To Provide RunTime Determination of the Function to Call

IP.com Disclosure Number: IPCOM000028199D
Original Publication Date: 2004-May-03
Included in the Prior Art Database: 2004-May-03
Document File: 2 page(s) / 47K

Publishing Venue

IBM

Abstract

Disclosed here is a method for determining the identifier of and running a script-function ( in an interpreted scripting language such as IBM's Workflow Development Language) at runtime, rather than at interpretation time.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 52% of the total text.

Page 1 of 2

Method for Abstracting Function Calls in Script Languages To Provide RunTime Determination of the Function to Call

Main Idea

    When writing in a scripting environment, where a Graphical User Interface is involved, the interpreted environment generally requires all functions to be known in advance, or included through the use of hard-coded directives that are evaluated in the pre-processing of the script file. So in a scripting language, such as IBM's Workflow Development Language, it is difficult to allow multiple developers access to different parts of a particular GUI panel file, since all the functions required to display the window and process all the buttons must be included and specified in the file. It is also difficult to allow run-time evaluation of a function call in response to a user-clicked button or control.

    The core of the disclosure lies in two capabilities built into the core script interpreter, and a method for exploiting them to accomplish the goal of dynamic evaluation of the function in response to the user click.
1) The ability of the interpreter to find a script file in the "path" that matches the name of an unknown function call
2) The interpreter's ability to execute a string variable's contents as script code
3) A generic, simplified button click handler that handles all button clicks is used in the GUI scripting environment. To enable modularization of code, and provide the developer an exact way to find the code executed for the button, this handler can either build a standardized function-call-string based on the name/text of the button clicked, or look up a database entry to find the function name to execute. The generic handler then executes the string via the ability in #2. If the function is not co...