QN A
QN A
4. What are different type of attributes: Local, Global etc, explain differrence
between local and global attribute.
Modeled : modeled in Java class using @GeneratedProperty
Local or standard : stored directly in object's table and have only single
value
Global : is stored in different tables according to type and can be multi
valued
Calculated : calculated from some another attribute and
Alias : calculated from abo
6. There are two lifecycles defined in org level: LCA and LCB, in productA, if part
is created, the part should follow LCA and if in productB a part is created it
should follow LCB. How to achieve it.
10. Explain action framework, how do you identify actions and how is jsp recognized
for an action.
The abilty to configure new actions and actionModels in the system.
Identifying action :
Using jcaDebug
action*.xml and actionmodel*.xml contains model names and their respective
actions
Recognizing JSP:
explicit : under action tag when we use command or component tag we can
specify url attribute which will point the location at which we have store the jsp.
<command windowType="wizard_step"
url="netmarkets/jsp/com/philips/cplm/principalpicker/principalPickerCD_step.jsp"/>
Form Processor :
NmCommandBean :
FormP
12. What is a datautility, which class to extend your datautility and explain the
registration process and also explain the methods of datautility.
Datauitily is a way by which we can show ui components values with some extra
modification as required to Business. ex : suppose business wants their orgs
initials infront of the object numbers in ui though those are stored as pure
number in DB.
while registering we give duplicate because This will create a new instance
of the data utility each time one is requested.
if given singleton every time this utilty is called it will not create a new
instance.
13. What is getDataValue, tell its parameters, what is the difference between
getDataValue and setmodelcontext method.
15. How do you track events in windchill, suppose you want to know what is the
event generated when an object is revised?
17. Explain the step by step procedure to write a listener for check in event.
19. What is the difference between Java Collection and Windchill WTCollection.
20. What is queryspec, which apis you have used to form a queryspec and execute it
to get the results from DB.
21. What is the MVC framework. What is the difference between JCA Table and MVC
Table.
MVC stands for model view controller. MVC allows us to separate the
development work for backend and frontend.
It provides us wth annotations and data builders so that we can render
appropriate data on jsp's using java apis.
JCA stand for Java clien architecture. Its a jsp tag based architecture in
which each tag represents a java class.
by using these tags we can show appropriate data on Ui
22. What are taglibraries that you used in your jsp development.
component
mvc
core for infoengine
23. Explain the complete process of using mvc table in Windchill, what were the
different methods you used and which class you extended?
--> in actions
--> Import taglib/mvc in jsp
24. What are the APIs used for persisting object in windchill. What is the
difference between PersistenceServerHelper and PersistenceHelper
Persistable
Workable
PersistanceManager -->Interface
PerstanceHelper --> utilty methods for PersistanceManager
PersistableAdapter --> to find /update attributes values
PersistenceHelper.manager.save()
--> Invokes the modify method if the given object is persistent,
otherwise the save method invokes the store method.
PersistenceHelper.manager.modify()
--> Method of interface PersistanceManager --> Updates the given
Persistable object in the datastore
--> modify(Persistable obj, java.lang.String attrName, ObjectMappable
objAttr)
Updates the given Persistable object in the datastore with the
values specified in the ObjectMappable attribute.
PersistenceHelper.manager.store()
--> Stores the specified Persistable object in the datastore.
apply()
Validate all loaded data against all loaded constraints.
Throws an exception if any constraint is violated.
--> first we need to create frame of table for that we will use describetable
and describecolumn tags with setcomponentproperty tags
and we will declare varible var to call this table from other part of
jsp
<jca:describeTable var="partReport"
type="wt.doc.WTDocument"
id="partReportID"
label="Document Report Table_JCA"
configurable="true"
>
<jca:setComponentProperty key="selectable" value="true"/>
<jca:setComponentProperty key="variableRowHeight"
value="true"/>
<jca:describeColumn id="number"
dataUtilityId="describeDocumentReport" />
<jca:describeColumn id="name"
dataUtilityId="describeDocumentReport"/>
</jca:describeTable>
--> Then we have to get the data which we want to render in the above
described table for that we use getModel tag and we will call our custom class to
get the data
we will also pass the NMCommandBean as parameter to in this tag which
will be used by our class to get required info
we will provide var of above table as descrpter
<jca:getModel var="tableModel" descriptor="${partReport}"
serviceName="ext.philips.migration.validate.GenerateReportForPart1"
methodName="getDescribeDocumentForJcaTable" >
<jca:addServiceArgument value="${commandBean}"
type="com.ptc.netmarkets.util.beans.NmCommandBean" />
</jca:getModel>
--> after this we have to render the model in our table for that we will use
renderTable tag and give var of getModel as model in tage
28. Associations
Active
2. Contributing Image :
This association combines representation and attribute passing. Although a
Contributing Image does not 'drive' structure,
it participates in the product structure of a parent object.
For example, a flexible component (cable) may occur, say, two times in an
assembly, but routed differently in each case.
While Creo Parametric requires separate model files for each routing, these
models can be associated to a single part.
One model file has an Owner link and the other has a Contributing Image link.
The resultant product structure would show two occurrences of a single part.
Association allows a maximum of one Owner link and one Contributing Image
link to a part.
However, additional configurations of the cable, if required, could be added
using an Image link.
Passive(EPMDescribeLink)
1. content :
CAD document describes the part but does not drive structure, pass
attributes, nor provide a representation