zoukankan      html  css  js  c++  java
  • 工作框架各种使用整理 --创建的时候使用前面创建成功的输出

    <service verb="create" noun="TelecomNumber">
    <in-parameters>
    <auto-parameters entity-name="mantle.party.contact.TelecomNumber" include="nonpk"/>
    <parameter name="partyId" required="true"/>
    <parameter name="contactMechPurposeId" required="true"/>
    </in-parameters>
    <out-parameters>
    <parameter name="contactMechId" required="true"/>
    </out-parameters>
    <actions>
    <entity-make-value entity-name="mantle.party.contact.ContactMech" value-field="contactMech" map="[contactMechTypeEnumId:'CmtTelecomNumber']"/>
    <entity-sequenced-id-primary value-field="contactMech"/>
    <entity-create value-field="contactMech"/>
    <set field="contactMechId" from="contactMech.contactMechId"/>
    <entity-make-value entity-name="mantle.party.contact.TelecomNumber" value-field="telecomNumber"/>
    <set field="telecomNumber.contactMechId" from="contactMech.contactMechId"/>
    <entity-set value-field="telecomNumber" include="nonpk"/>
    <entity-create value-field="telecomNumber"/>
    <service-call name="create#mantle.party.contact.PartyContactMech" in-map="context"/>
    </actions>
    </service>

    等价于 只是不同的写法:
    <service verb="create" noun="TelecomNumber">
    <in-parameters>
    <auto-parameters entity-name="mantle.party.contact.TelecomNumber" include="nonpk"/>
    <parameter name="partyId" required="true"/>
    <parameter name="contactMechPurposeId" required="true"/>
    </in-parameters>
    <out-parameters>
    <parameter name="contactMechId" required="true"/>
    </out-parameters>
    <actions>
    <service-call name="create#mantle.party.contact.ContactMech" out-map="context" in-map="context + [contactMechTypeEnumId:'CmtTelecomNumber']"/>
    <service-call name="create#mantle.party.contact.TelecomNumber" in-map="context"/>
    <service-call name="create#mantle.party.contact.PartyContactMech" in-map="context"/>
    </actions>
    </service>


  • 相关阅读:
    新安装的Apache和php,测试可以解析phpinfo,但是无法打开drupal网站
    Drupal7安装注意事项
    drupal7 为视图添加 过滤标准 内容类型
    Drupal网站报错:PDOException: in lock_may_be_available()
    窗口聚合函数与分组聚合函数的异同
    Linux环境下段错误的产生原因及调试方法小结(转)
    gzip 所使用压缩算法的基本原理(选摘)
    InfluxDB使用纪录
    子网掩码解释(转)
    列存的压缩原理学习
  • 原文地址:https://www.cnblogs.com/dream-to-pku/p/5643040.html
Copyright © 2011-2022 走看看