【问题标题】:How to get flowId in transform activity in Oracle SOA 12c如何在 Oracle SOA 12c 中的转换活动中获取 flowId
【发布时间】:2016-06-22 10:39:29
【问题描述】:

Oracle 12c 我们有 flow id 方法来跟踪服务请求。在分配活动中,我可以使用 ora:getFlowId() 方法获取流 ID,但在转换活动中我看不到这种方法。所以,我的问题是如何在转换活动中获得这个流 id?。

【问题讨论】:

    标签: soa


    【解决方案1】:

    考虑这样的事情。将 ora:getFlowId() 作为参数传递给 xquery,然后将其分配到您想要的任何位置。

    xquery version "1.0" encoding "utf-8";
    
    (:: OracleAnnotationVersion "1.0" ::)
    
    declare variable $flowId as xs:string external;
    
    declare function local:func($flowId as xs:string)
                                 as element() {
    
      <result>
      {$flowId}
      </result>
    
    };
    
    local:func($flowId as xs:string)
    

    这可能无法回答您直接获取 flowId 的问题。但这可能是您的问题的解决方法。

    希望对你有帮助

    【讨论】:

      【解决方案2】:

      为您的转换中的流 id 分配一个硬代码值。转换后只有一个分配,其中用函数覆盖已经填充的流ID。这应该可以解决问题。

      没有特定的函数可以在转换中得到相同的结果。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-12-01
        • 2017-11-22
        • 1970-01-01
        • 2018-01-31
        • 1970-01-01
        • 1970-01-01
        • 2014-09-11
        • 1970-01-01
        相关资源
        最近更新 更多