类 Javascript
- java.lang.Object
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.Task<Javascript>
-
- cn.feiliu.taskflow.sdk.workflow.def.tasks.Javascript
-
public class Javascript extends Task<Javascript>
JQ Transformation task See https://stedolan.github.io/jq/ for how to form the queries to parse JSON payloads
-
-
构造器概要
构造器 构造器 说明 Javascript(String taskReferenceName, InputStream stream)
Javascript tasks are executed on the Conductor server without having to write worker codeJavascript(String taskReferenceName, String script)
Javascript tasks are executed on the Conductor server without having to write worker code
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 String
getExpression()
Object
test(Map<String,Object> input)
Helper method to unit test your javascript.Javascript
validate()
Validates the script.-
从类继承的方法 cn.feiliu.taskflow.sdk.workflow.def.tasks.Task
description, getChildrenTasks, getDescription, getInput, getName, getParentTasks, getStartDelay, getTaskReferenceName, getType, getWorkflowDefTasks, input, input, input, input, input, input, input, input, input, input, isOptional, name, setName, setOptional, setStartDelay, setTaskReferenceName, toWorkflowTask, updateWorkflowTask
-
-
-
-
构造器详细资料
-
Javascript
public Javascript(String taskReferenceName, String script)
Javascript tasks are executed on the Conductor server without having to write worker codeUse
validate()
method to validate the javascript to ensure the script is valid.- 参数:
taskReferenceName
-script
- script to execute
-
Javascript
public Javascript(String taskReferenceName, InputStream stream)
Javascript tasks are executed on the Conductor server without having to write worker codeUse
validate()
method to validate the javascript to ensure the script is valid.- 参数:
taskReferenceName
-stream
- stream to load the script file from
-
-
方法详细资料
-
getExpression
public String getExpression()
-
validate
public Javascript validate()
Validates the script.- 返回:
-
-