如何修复Tibco BW强制映射错误?

时间:2014-02-17 19:38:58

标签: tibco

我有一个要映射到mapper的anyType元素, 但是当我按照指令在左侧面板“Process Data”中选择xsd时,我在右侧的“Activity Input”中看到了一个红色的错误

强制错误:替换类型“Employee”不是元素类型的子类型(Check Coercion List);

这个Employee.xsd非常简单:

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema>
<xsd:element name="Employee">
    <xsd:annotation>
        <xsd:documentation>
            This generates emp statue change event whenever
            any part of Employees change (retire, resign, leave,)
        </xsd:documentation>
    </xsd:annotation>
    <xsd:complexType>
        <xsd:sequence>
            <xsd:element name="EmployeeID">
                <xsd:annotation>
                    <xsd:documentation>
                        This is the EmployeeID which is equivalent
                        to emp_ID Unique identifier for a specific  Employee;
                    </xsd:documentation>
                </xsd:annotation>
                <xsd:simpleType>
                    <xsd:restriction base="xsd:string">
                        <xsd:maxLength value="50"/>
                    </xsd:restriction>
                </xsd:simpleType>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:element>
</xsd:schema>
但是为什么它不能被强制?

由于

1 个答案:

答案 0 :(得分:1)

这听起来好像你试图用强制覆盖现有元素。 强制只适用于“任何”元素! 您是否介意将实际流程上传到您想要应用的位置?

干杯          SEB

相关问题