Solution
There are APIs and Change Events available to support closure of Change Objects associations using flexible links.
The Related Information section includes references to the APIs and code samples.
Prerequisite Knowledge
To complete this process you must have an understanding of the following
Basic development involving JAVA
Defining workflow expressions
Solution Elements
Element
Type
Description
com.ptc.windchill.pdmlink.change.server.impl.WorkflowProcessHelper
Class
This class contains static methods to support the change management workflow processes. The static methods in this class are intended to be called by routing expressions and synchronization robot expressions.
wt.change2.ChangeProcessLink
Class
The flexible change association link class.
wt.change2.AddressedBy
Class
Deprecated association link for Change Request to Change Notice.
wt.change2.FormalizedBy2
Class
Deprecated association link for Problem Reports or Variances to Change Request.
handlesClosure
boolean
A Boolean property that can be specified as a workflow template property variable to specify if a change object workflow process is able to close itself.
CHILD_CHANGE_OBJECT_STATE_CHANGE
ChangeService2Event
The state was changed on child change object. The event target contains the parent change object and have the child as a secondary target
PARENT_CHANGE_OBJECT_STATE_CHANGE
ChangeService2Event
The state was changed on parent change object. The event target contains the child change object and have the parent as a secondary target.
isRelatedParentsInStates
WorkflowProcessHelper API
Looks up the related parent change objects and determines if each one is in one of the given states.
isRelatedChildrenInStates
WorkflowProcessHelper API
Looks up the related child change objects and determines if each one is in one of the given states.
setResolutionDate
WorkflowProcessHelper API
This method sets the resolution date of a change object. It does not set the resolution state.
closeChangeChildren
WorkflowProcessHelper API
Looks up the children of the given change object and closes them with the given states.
closeChangeParents
WorkflowProcessHelper API
Looks up the parents of the given change object and closes them with the given states.
도움이 되셨나요?