Class ImplementationPlanFormDelegate
java.lang.Object
com.ptc.core.components.forms.DefaultObjectFormProcessorDelegate
com.ptc.windchill.enterprise.change2.forms.delegates.ImplementationPlanFormDelegate
- All Implemented Interfaces:
ObjectFormProcessorDelegate
A class to process additional operations once the change notice has been
created or updated. Currently processes the change plan if it is supported
and the handles deletion of change tasks from the implementation plan step in
a create or edit change notice wizard.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateChangePlan(NmCommandBean clientData, ObjectBean objectBean, ChangeOrder2 changeNotice) Creates the change plan for a given change notice and the associated change tasks if change planning is supported.doOperation(NmCommandBean clientData, List<ObjectBean> objectBeans) This method gets items marked for removal, iterates through the items, and for each item that is a ChangeActivity2, it adds the item to a set.protected StringgetTableId(ObjectBean objectBean, String className) This method will return the valid table ID for the given table.postProcess(NmCommandBean clientData, List<ObjectBean> objectBeans) Processing the change plan if change planning is supported.Methods inherited from class com.ptc.core.components.forms.DefaultObjectFormProcessorDelegate
postTransactionProcess, preProcess, setValue, setValueInTypeInstance, setValueInTypeInstance
-
Method Details
-
doOperation
public FormResult doOperation(NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException This method gets items marked for removal, iterates through the items, and for each item that is a ChangeActivity2, it adds the item to a set. After each item is inspected, the set is passed to a multi-object delete API to delete the ChangeActivity2 objects.
Supported API: true- Specified by:
doOperationin interfaceObjectFormProcessorDelegate- Overrides:
doOperationin classDefaultObjectFormProcessorDelegate- Parameters:
clientData-objectBeans-- Returns:
- FormResult with status set to FormProcessingStatus.SUCCESS
- Throws:
WTException
-
postProcess
public FormResult postProcess(NmCommandBean clientData, List<ObjectBean> objectBeans) throws WTException Processing the change plan if change planning is supported.
Supported API: true- Specified by:
postProcessin interfaceObjectFormProcessorDelegate- Overrides:
postProcessin classDefaultObjectFormProcessorDelegate- Parameters:
clientData-objectBeans-- Returns:
- FormResult with status set to FormProcessingStatus.SUCCESS
- Throws:
WTException
-
createChangePlan
protected void createChangePlan(NmCommandBean clientData, ObjectBean objectBean, ChangeOrder2 changeNotice) throws WTException Creates the change plan for a given change notice and the associated change tasks if change planning is supported. The sequence numbers for the associated change task are retrieved from the given object bean. The names of input fields that hold sequence numbers for the change tasks are generate using the change task reference id and the column id "changeTaskSequence". For example a generated id for aWTChangeActivity2would beVR:wt.change2.WTChangeActivity2:1234_changeTaskSequence.
Supported API: true- Parameters:
clientData-objectBean-changeNotice-- Throws:
WTException- See Also:
-
getTableId
This method will return the valid table ID for the given table. The implementing subclasses are required to implement the methodsgetDelegateName()andgetDefaultTableId()used by this method.
Supported API: true- Parameters:
objectBean-className-- Returns:
- The table ID.
-