类 Switch


  • public class Switch
    extends Task<Switch>
    +----------------------+ | switch (expression) | +----------------------+ | v +----------------------+ | case 张三 | +----------------------+ | v +----------------------+ | do something task | +----------------------+ | v +----------------------+ | default: | +----------------------+ | v +----------------------+ | do something task | +----------------------+
    • 构造器详细资料

      • Switch

        public Switch​(String taskReferenceName,
                      String caseExpression,
                      boolean useJavascript)
        Switch case (similar to if...then...else or switch in java language)
        参数:
        taskReferenceName -
        caseExpression - An expression that outputs a string value to be used as case branches. Case expression can be a support value parameter e.g. ${workflow.input.key} or ${task.output.key} or a Javascript statement.
        useJavascript - set to true if the caseExpression is a javascript statement
      • Switch

        public Switch​(String taskReferenceName,
                      PathExpression expression,
                      boolean useJavascript)
      • Switch

        public Switch​(String taskReferenceName,
                      String caseExpression)
        Switch case (similar to if...then...else or switch in java language)
        参数:
        taskReferenceName -
        caseExpression -