I copied the concepts from the tutorial using create, update, delete person.
I have had a hard time (Mostly i just dont understand the mini lang stuff).
I got my create and delete to work ok, but my update is giving the error:
Error running the simple-method: Entity value not found with name: lookedUpValue Method = updateEdiHeader on the line setting non pk fields
This is my simple method
<simple-method method-name="updateEdiHeader" short-description="update a EDIHeader">
<entity-one entity-name="EdiHeader" value-field="lookedUpValue"/>
<set-nonpk-fields map="parameters" value-field="lookedUpValue"/>
<store-value value-field="lookedUpValue"/>
<log level="info" message="=======EDIHeader record updated for EDIHeaderId=====${lookedUpValue.EDIHeaderId}"/>
</simple-method>
Here is my service def entry
<service name="updateEdiHeader" default-entity-name="EDIHeader" engine="simple"
location="component://edi/script/org/tcg/edi/EDIServices.xml" invoke="updateEdiHeader" auth="true">
<description>Update a EDI Header</description>
<auto-attributes include="pk" mode="IN" optional="false"/>
<auto-attributes include="nonpk" mode="IN" optional="true"/>
</service>
Any ideas as to what I am missing would be of great help.
I know I got delete working, but still am not sure what I changed. I think I might of used the wrong case on the entity, I fissed with it a bit and finally in the end its back to what I started with.
<simple-method method-name="deleteEdiHeader" short-description="delete a EDIHeader">
<entity-one entity-name="EdiHeader" value-field="lookedUpValue" auto-field-map="true"/>
<remove-value value-field="lookedUpValue"/>
<log level="info" message="=======EDIHeader record deleted for EDIHeaderId=====${lookedUpValue.EDIHeaderId}"/>
</simple-method>
Joel Fradkin