うーん、私がフローを行ってから少し経ちましたが、あなたの例は単純です(例のためだけに、私は願っています)。
不足しているのは、フローの最初のアクションです。showProductsとしての「表示」フローアクションは、showProductsgspPOSTSのときに何をすべきかを示しているだけであることに注意してください。showProducts.gspで使用するモデルを作成する必要があるshowProductsに送信したアクションです。
def ShoppingCartFlow = {
initialize {
action { // note this is an ACTION flow task
// perform some code
[ model: modelInstance ] // this model will be used in showProducts.gsp
}
on ("success").to "showProducts"
// it's the above line that sends you to showProducts.gsp
}
showProducts {
// note lack of action{} means this is a VIEW flow task
// you'll get here when you click an action button from showProducts.gsp
on("checkout").to "enterPersonalDetails"
on("continueShopping").to "displayCatalogue"
}
// etc. (you'll need an enterPersonalDetails task,
// displayCatalogue task, and they
// should both be ACTION tasks)
}
わかる?