读书人

jBPM Developers Guide(jBPM开发指南)

发布时间: 2012-10-14 14:55:08 作者: rapoo

jBPM Developers Guide(jBPM开发指南)--Chapter 3. BPMN 2.0(第五部分)

3.8.12.?Task: Script Task(脚本任务)

?? ?A script task is aan automatic activity upon which the process engine will execute a script whenthe task is reached. The script task is used as follows:

?

?? ?脚本任务时一个自动活动,当任务到达的时候 流程引擎会执行一个脚本。脚本任务使用方式如下:

?? ?The script task,besides the required?id?and the optional?name, allows for specifying a?scriptLanguage and a?script. Since we're using JSR-223('Scripting for the Java platform'), changing the script language involves

?

?? ?脚本任务,除了必须的id和可选的?name之外,还允许指定?scriptLanguagescript。因为我们使用了JSR-223(java平台的脚本语言),修改脚本语言就需要:

changing the?scriptLanguage?attribute to the JSR-223 compliant name把scriptLanguage?属性修改为JSR-223兼容的名称adding the ScriptEngine implementation of the JSR specification to the classpath在classpath下添加JSR规范的ScriptEngine实现
读书人网 >软件架构设计

热点推荐