Started effort of cleaning up element and attribute names in simple-methods, there is a lot of work to do here to make things consistent; for more info and a list of all changes see the docs.ofbiz.org Simple Method Cleanup Effort page

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@666069 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
David E. Jones
2008-06-10 11:31:17 +00:00
parent 863c6572ac
commit bd2d32eaba
6 changed files with 70 additions and 86 deletions
@@ -36,15 +36,15 @@ under the License.
<!-- handle statusId change stuff; first put the current statusId in the oldStatusId result -->
<field-to-result field-name="lookedUpValue.statusId" result-name="oldStatusId"/>
<if-compare-field field-name="lookedUpValue.statusId" operator="not-equals" to-field-name="parameters.statusId">
<if-compare-field field="lookedUpValue.statusId" operator="not-equals" to-field="parameters.statusId">
<!-- if the record exists there should be a statusId, but just in case make it so it won't blow up -->
<if-not-empty field-name="lookedUpValue.statusId">
<if-not-empty field="lookedUpValue.statusId">
<!-- if statusId change is not in the StatusValidChange list, complain... -->
<entity-one entity-name="StatusValidChange" value-name="statusValidChange" auto-field-map="false">
<field-map field-name="statusId" env-name="lookedUpValue.statusId"/>
<field-map field-name="statusIdTo" env-name="parameters.statusId"/>
</entity-one>
<if-empty field-name="statusValidChange">
<if-empty field="statusValidChange">
<!-- no valid change record found? return an error... -->
<add-error><fail-property resource="ExampleUiLabels" property="ExampleErrorNoExampleStatusValidChange"/></add-error>
<check-errors/>
@@ -72,7 +72,7 @@ under the License.
<order-by field-name="-statusDate"/>
</entity-and>
<first-from-list entry-name="oldExampleStatus" list-name="oldExampleStatusList"/>
<if-not-empty field-name="oldExampleStatus">
<if-not-empty field="oldExampleStatus">
<set field="oldExampleStatus.statusEndDate" from-field="nowTimestamp"/>
<store-value value-name="oldExampleStatus"/>
</if-not-empty>
@@ -120,10 +120,10 @@ under the License.
<entity-one entity-name="Example" value-name="example"/>
<assert>
<not><if-empty field-name="example"/></not>
<if-compare-field field-name="example.exampleTypeId" to-field-name="createExampleMap.exampleTypeId" operator="equals"/>
<if-compare-field field-name="example.exampleName" to-field-name="createExampleMap.exampleName" operator="equals"/>
<if-compare-field field-name="example.statusId" to-field-name="createExampleMap.statusId" operator="equals"/>
<not><if-empty field="example"/></not>
<if-compare-field field="example.exampleTypeId" to-field="createExampleMap.exampleTypeId" operator="equals"/>
<if-compare-field field="example.exampleName" to-field="createExampleMap.exampleName" operator="equals"/>
<if-compare-field field="example.statusId" to-field="createExampleMap.statusId" operator="equals"/>
</assert>
<check-errors/>