Shark中的ToolAgent用法-JavaScriptToolAgent

王朝html/css/js·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

Shark的文档中叙述如下:

javascriptToolAgent - Executes Java script. If you set application mode to 0 (zero), tool agent will search for a java script file given as applicationName parameter (this file has to be in the class path), and if it founds it, it will try to execute it. Otherwise, it will consider applicationName parameter to be the script itself, and will try to execute it. So far, we defined few java script files that execute simple arithmetic operations, generation of random number, and one that performs waiting.

This tool agent is able to "understand" the extended attributes with the following names:

AppName - value of this attribute should represent the name of script file to execute (this file has to be in class path)

Script - the value of this represents the script to be executed. I.e. this extended attribute in XPDL can be defined as follows:

<ExtendedAttribute Name="Script" Value="c=a-b;"/>

(a, b and c in above text are Formal parameter Ids from XPDL Application definition)

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航