You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

MarkLogic CPF流水线是否必须线性/非循环?分支与循环实现咨询

MarkLogic CPF Pipeline Branching and Looping Support

Great questions about CPF pipeline behavior! Let me walk you through how this works clearly:

Conditional Branching (State B → State C or F)

Absolutely, MarkLogic CPF supports conditional branching, exactly as @rjrudin referenced using action domains. Here's the breakdown:

  • When setting up actions for State B, you can embed logic that evaluates specific conditions—this could be based on document properties, content within the document, external system checks, or any custom criteria you need.
  • Depending on whether the condition passes, fails, or matches different criteria, your action can trigger a transition to either State C or State F. The linear pipeline shown in documentation is just a basic example; CPF is flexible enough to handle non-linear, conditional flows by configuring the next state dynamically in your action logic.

Looping Back to a Previous State (State K → State B or L)

Yes, you can absolutely create iterative processing by transitioning back to an earlier state. Here's how to implement it:

  • In the actions defined for State K, add a condition check that determines if the document is ready to move forward—for example, "has the iterative processing completed all required steps?" or "does the document meet the final quality threshold?".
  • If the condition isn't met, configure the action to transition back to State B, allowing the processing steps there to run again. Once the condition is satisfied, you can instead transition to State L to exit the loop and continue the pipeline.
  • Important note: Always include a clear exit condition to prevent infinite loops—you want to make sure the pipeline will eventually move past the iterative phase!

内容的提问来源于stack exchange,提问作者Fan Li

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.12 04:13:31