国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

Shark中的ToolAgent用法-JavaScriptToolAgent

2019-11-18 11:33:24
字體:
來源:轉載
供稿:網友

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)

  • Javascript工具有兩種用法:

    1、當application mode設為0時,javascript代碼以文件的形式給出。文件需以.js形式保存并放在:安裝路徑/C:/Shark-1.0/lib/engine/sharktoolagent-standard.jar中。假設文件名javascript.js,給出的AppName必須為javascript。

    2、當application mode設為1時,直接將要執行的代碼寫在AppName的參數行中。



    發表評論 共有條評論
    用戶名: 密碼:
    驗證碼: 匿名發表
    主站蜘蛛池模板: 中江县| 鹰潭市| 新闻| 渝中区| 石楼县| 平阳县| 阿坝县| 万年县| 休宁县| 霍山县| 屏南县| 抚远县| 灯塔市| 阿拉善盟| 九台市| 德保县| 宾阳县| 海丰县| 阿克陶县| 阜康市| 巴彦县| 兰考县| 眉山市| 江北区| 巫溪县| 恩施市| 松潘县| 旺苍县| 江山市| 临清市| 西吉县| 高要市| 兴国县| 泾源县| 和龙市| 平昌县| 醴陵市| 乳山市| 无极县| 康保县| 拜城县|