PopCommerce の Detail.xml には、画面に渡されるパラメーター productId があります。そのパラメーターを service-call に渡すにはどうすればよいですか?
サービスコールで以下のコードを試しましたが、うまくいきません
<field-map field-name="productId" from="productId"/>
画面内のパラメータは
<parameter name="productId" required="true"/>
そして私が定義したサービスは
<transition name="createProductReview">
<service-call name="create#ProductReview" web-send-json-response="true">
<field-map field-name="productStoreId" value="POPC_DEFAULT"/>
<field-map field-name="productId" from="how do I use the productId parameter here ?"/>
<field-map field-name="userId" from="ec.user.userAccount.userId"/>
<field-map field-name="statusId" value="PrvwPending"/>
</service-call>
<default-response type="none"/>
</transition>