类 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

        public Javascript​(String taskReferenceName,
                          String script)
        Javascript tasks are executed on the Conductor server without having to write worker code

        Use 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 code

        Use 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.
        返回:
      • test

        public Object test​(Map<String,​Object> input)
        Helper method to unit test your javascript. The method is not used for creating or executing workflow but is meant for testing only.
        参数:
        input - Input that against which the script will be executed
        返回:
        Output of the script