高级自定义 > 业务逻辑自定义 > 自定义 MPMLink > 使用工作流事件传播更改
使用工作流事件传播更改
您可以使用工作流事件而不是在 BOM 变换器中使用将更改传播到下游操作来将上游结构与下游结构同步。为此,请在 detectAndResolve 方法中指定参数的值,或为协调服务覆盖此方法。此方法可在位于 com\ptc\windchill\associativity\reconciliationReconciliationService.java 文件中找到。
已给出 detectAndResolve 方法的参数:
/**
* Accepts upstream context(mandatory), downstream context, upstream NC, downstream NC, application name, change
* criteria, criteria type, criteria type input and discrepancy types as input. If downstream context is
* not given, derives it from the input upstream context. If upstream or downstream NC is not given, gets it from
* the Associativity user level preferences. If application name is not given, takes BOM Transformer as the default
* application name. If criteria type is not given, takes OutOfDateCriteria as default. If discrepancy types are not
* specified, takes all discrepancy types as default. When all inputs are in place, calls the detect and resolve
* action.
*
* @param upstreamContext Upstream context for detect and resolve action.
* @param downstreamContext Downstream context for detect and resolve action.
* @param upstreamNC Upstream NC for detect and resolve action.
* @param downstreamNC Downstream NC for detect and resolve action.
* @param applicationName Name of application in which detect and resolve action is to be performed.
* @param changeCriteria Change criteria/number.
* @param criteriaType Criteria type for detect and resolve action.
* @param criteriaTypeInput Input for the selected criteria type if required.
* @param discrepancyTypes Discrepancy types to be considered for detect and resolve action.
*
* @return Discrepancies resolved and messages if any, separated by delimiter |
*/
public String detectAndResolve(WTPart upstreamContext, WTPart downstreamContext, NavigationCriteria upstreamNC, NavigationCriteria downstreamNC, String applicationName, String changeCriteria, String criteriaType, String criteriaTypeInput, String discrepancyTypes);
}
这对您有帮助吗?