LiteFlow LiteFlow
💒Home
📚Documents
💖Donation
🚀Plugin
  • About LiteFlow
  • Update Record
Community
Users
Gitee (opens new window)
Github (opens new window)
  • 简体中文 (opens new window)
  • English (opens new window)
💒Home
📚Documents
💖Donation
🚀Plugin
  • About LiteFlow
  • Update Record
Community
Users
Gitee (opens new window)
Github (opens new window)
  • 简体中文 (opens new window)
  • English (opens new window)
  • 🍤Introduction
  • 🍓Features
  • 🍟Quick Start(Hello world)

    • 🍄Notice
    • 🌿Springboot environment

      • 🧬Dependency
      • ⚙️Config
      • 🛫Execute
    • 🌱Spring environment

      • 🧬Dependency
      • ⚙️Config
      • 🛫Execute
    • 🌵Other environment

      • 🍄Notice
      • 🧬Dependency
      • ⚙️Config
      • 🛫Execute
  • 🍢Configuration item

    • 🍄Notice
    • 🌿Springboot environment
    • 🌱Spring environment
    • 🌵Other environment
  • 🗂Rules file

    • 📔Rules file format
    • 📕Local rule file
    • 📗Zookeeper source
    • 📘SQL database source
    • 📋Nacos source
    • 🗄Etcd source
    • 📙Custom source
  • 🔗General components

    • 📎Common component
    • ✂️Switch component
    • 📌If component
    • 🧬For component
    • ⛓While component
    • 🧿Break component
  • 🧩How to write EL rules

    • 🍄Notice
    • 🌴Serial mode
    • 🎋Parallel mode
    • 🌾Switch mode
    • 🌵If mode
    • 🌳Loop mode
    • 🍁Use sub chain
    • 🍂Use sub variables
    • 💐Complex example
    • 🌻About semicolons
    • 🌰About comments
    • 🐚Component Name Package
  • 🌮Data context

    • 🍄Notice
    • 🌯Definition and use
    • 🪶Pass initialized context
  • 🛩Flow executor

    • 🍄Notice
    • 🎡Executor method
    • 🎢Chain input parameter
    • 🎈LiteflowResponse object
  • 🍋Script component

    • 🍫Choose a script language
    • 🍕Define script component
    • 🌯Define file script
    • 🍣Interact with java
    • 🍘Dynamic refresh script
  • 🍇Declarative component

    • 🥭What is a declarative component
    • 🧅Class level declaration
    • 🥥Method level declaration
  • 🎲Dynamic rules

    • 🍄Notice
    • 🎯How to build
  • 🎨Advanced features

    • 🍒Pre & Finally components
    • 🥠Substitute component
    • 🍉Component Parameters
    • 🍑Component alias
    • 🍍Component tag
    • 🥝Component event
    • 🥑Implicit chain
    • 🍕Private delivery
    • 🍣Component retry
    • 🍖Smooth hot refresh
    • 🍪Component aspect
    • 🍡Step information
    • 🧊Exceptions
    • 🧇Printing details
    • 🧁Custom request id
    • 🌭Multiple type rules
    • 🥗Asynchronous thread pool
    • 🍿Custom component executor
    • 🍥Simple monitor
    • 🧉DTD in Xml
  • ⛱Test cases and demo

    • 🪁Test cases
    • 🪀Demo
  • 🪂Performance
  • v2.9.X文档
  • 🍢Configuration item
铂赛东
2022-06-06

🌿Springboot environment

    #rule file path
    liteflow.rule-source=config/flow.el.xml
    #-----------------The following configs are optional-----------------
    #Whether liteflow is enabled, the default is true
    liteflow.enable=true
    #Whether the banner of liteflow is enabled, the default is true
    liteflow.print-banner=true
    #The node of zkNode, only works when zk is used as the configuration source
    liteflow.zk-node=/lite-flow/flow
    #Maximum number of slots for context, default is 1024
    liteflow.slot-size=1024
    #The number of threads of the execute2Future of FlowExecutor, the default is 64
    liteflow.main-executor-works=64
    #FlowExecutor's execute2Future's custom thread pool Builder, LiteFlow provides the default Builder
    liteflow.main-executor-class=com.yomahub.liteflow.thread.LiteFlowDefaultMainExecutorBuilder
    #Custom request ID generation class, LiteFlow provides a default generation class
    liteflow.request-id-generator-class=com.yomahub.liteflow.flow.id.DefaultRequestIdGenerator
    #Thread pool Builder for parallel nodes, LiteFlow provides default Builder
    liteflow.thread-executor-class=com.yomahub.liteflow.thread.LiteFlowDefaultWhenExecutorBuilder
    #The longest waiting time in seconds for asynchronous threads (only for when), the default value is 15
    liteflow.when-max-wait-seconds=15
    #The maximum number of threads in the global asynchronous thread pool of the when node, the default is 16
    liteflow.when-max-workers=16
    #When node global asynchronous thread pool waiting queue number, the default is 512
    liteflow.when-queue-limit=512
    #Whether to parse the rules at startup, the default is true
    liteflow.parse-on-start=true
    #Global retries, default is 0
    liteflow.retry-count=0
    #Whether to support mixing of different types of loading methods, the default is false
    liteflow.support-multiple-type=false
    #Global default node executor
    liteflow.node-executor-class=com.yomahub.liteflow.flow.executor.DefaultNodeExecutor
    #Whether to print the log during execution, the default is true
    liteflow.print-execution-log=true
    #Whether monitoring is enabled, it is disabled by default
    liteflow.monitor.enable-log=false
    #Monitoring queue storage size, the default value is 200
    liteflow.monitor.queue-limit=200
    #Monitor how many milliseconds to delay execution at the beginning, the default value is 300000 milliseconds, which is 5 minutes
    liteflow.monitor.delay=300000
    #how many milliseconds the monitoring log print. The default value is 300000 milliseconds, which is 5 minutes.
    liteflow.monitor.period=300000
    
    liteflow:
      #rule file path
      rule-source: config/flow.el.xml
      #-----------------The following configs are optional-----------------
      #Whether liteflow is enabled, the default is true
      enable: true
      #Whether the banner of liteflow is enabled, the default is true
      print-banner: true
      #The node of zkNode, only works when zk is used as the configuration source
      zk-node: /lite-flow/flow
      #Maximum number of slots for context, default is 1024
      slot-size: 1024
      #The number of threads of the execute2Future of FlowExecutor, the default is 64
      main-executor-works: 64
      #FlowExecutor's execute2Future's custom thread pool Builder, LiteFlow provides the default Builder
      main-executor-class: com.yomahub.liteflow.thread.LiteFlowDefaultMainExecutorBuilder
      #Custom request ID generation class, LiteFlow provides a default generation class
      request-id-generator-class: com.yomahub.liteflow.flow.id.DefaultRequestIdGenerator
      #Thread pool Builder for parallel nodes, LiteFlow provides default Builder
      thread-executor-class: com.yomahub.liteflow.thread.LiteFlowDefaultWhenExecutorBuilder
      #The longest waiting time in seconds for asynchronous threads (only for when), the default value is 15
      when-max-wait-seconds: 15
      #The maximum number of threads in the global asynchronous thread pool of the when node, the default is 16
      when-max-workers: 16
      #When node global asynchronous thread pool waiting queue number, the default is 512
      when-queue-limit: 512
      #Whether to parse the rules at startup, the default is true
      parse-on-start: true
      #Global retries, default is 0
      retry-count: 0
      #Whether to support mixing of different types of loading methods, the default is false
      support-multiple-type: false
      #Global default node executor
      node-executor-class: com.yomahub.liteflow.flow.executor.DefaultNodeExecutor
      #Whether to print the log during execution, the default is true
      print-execution-log: true
      #monitor config
      monitor:
        #Whether monitoring is enabled, it is disabled by default
        enable-log: false
        #Monitoring queue storage size, the default value is 200
        queue-limit: 200
        #Monitor how many milliseconds to delay execution at the beginning, the default value is 300000 milliseconds, which is 5 minutes
        delay: 300000
        #how many milliseconds the monitoring log print. The default value is 300000 milliseconds, which is 5 minutes.
        period: 300000
    
    // Make sure to add code blocks to your code group

    notice

    rule-source is required whenever rules are used.

    But if you construct rules dynamically with code, then the rule-source configuration is automatically invalid. Because code constructs use code to assemble rules, no rules files are required. For details, please refer to Dynamic Rules.

    Help us improve this document (opens new window)
    last update: 2022/10/13, 00:02:27
    🍄Notice
    🌱Spring environment

    ← 🍄Notice 🌱Spring environment→

    Theme by Vdoing | Copyright © 2020-2022 铂赛东 | MIT License
    • 跟随系统
    • 浅色模式
    • 深色模式
    • 阅读模式