Guidewire ContactManager中API提交数据变更时预更新规则是否执行?
Answer to Guidewire ContactManager API Rule Execution Question
Core Conclusion
Pre-update rule sets (like your ABContactPreupdate under config\Rule Sets\Preupdate\) will run for API-initiated contact record edits, exactly the same way they work for UI operations.
Key Details & Analysis
- Guidewire's rule execution is tied to business entity lifecycle events, not the trigger channel (UI vs API). Preupdate rules are part of the mandatory validation layer that runs before an entity is persisted. Any operation that triggers an update to the contact entity—whether from UI form submissions or API calls (e.g., REST API PUT/PATCH requests)—will trigger these rules.
- For your specific rule example: If you attempt to assign a Home Office as the parent of another Home Office via API, the operation will fail. The preupdate rule will catch the invalid hierarchy, block the record from being saved, and return a validation error in the API response (matching the error message defined in your
.grsrule file). - If you want to confirm this behavior quickly, you can run a test: send an API request that violates the rule, then check the response. You'll typically get a
400 Bad Requeststatus along with the rule-specific error details.
内容的提问来源于stack exchange,提问作者Matt Campbell
相关产品推荐
相关产品推荐

