ワークフローイベントを使用した変更の適用
BOM トランスフォーマで「変更を下流に適用」操作を使用する代わりに、ワークフローイベントを使用して上流構造を下流構造と同期できます。このためには、detectAndResolve メソッドでパラメータの値を指定するか、調整サービスでこのメソッドをオーバーライドします。このメソッドは com/ptc/windchill/associativity/reconciliation にある ReconciliationService.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);
}