Académique Documents
Professionnel Documents
Culture Documents
LIVE
~::::::::==.===
/ '
lnfo*Engine
Dennis G. Kapatos
Cory Skradski
J.D. Felkins (FELCO Solutions, Inc.)
Date: June 6
planet PTe
LIVE
Agenda
planet PTe
LIVE
NASAKSC
planet PTe
LIVE
planet PTe
LIVE
JSP Pages
- Provide a web-based UI for custom tools
planet PTe
LIVE
Demonstration
planet PTe
LIVE
Process Overview
planet PTe
LIVE
1.
2.
3.
4.
NASAKSC
NASAKSC
planet PTe
LIVE
Additional Information
lnfo*Engine is installed in every Windchill installation and is free to use
within the PTC products.
No additional licenses are required unless using lnfo*Engine to connect
with third party applications.
PTC supports lnfo*Engine
Does not require a skilled programmer or Java experience
Easy to implement
NASAKSC
10
planet PTe
LIVE
lnfo*Engine Architecture
talks to Windchill
talks to JDBC data source
*Requires lnfo*Engine user licenses
11
planet PTe
LIVE
fl 0: \ptc\pdmlink\Windchill\tasks\ext\test\queryObjects.xml - Notepad++
~dit
Eile
~ o
2_earch
Y.iew
Encoding
61 ~ ~:~ ~ ~@ a
~anguage
Cb G1
Settings
Macro
Run
TextFX
c e '11
Plugins
~indow
Ct3 t3 ~
z.
11 ~~ e1
[!)
rn
~ 11
~ queryObjects.xml
1
4
5
6
7
8
9
10
11
12
13
~--------------------------------------------------------------------------------------------------------------~---------,
<' --Query a ll containers i n hlinchi ll - - >
- < ie: TJebject name = " Query-Objects "
type = " OBJ " >
< ie: param name =" IHSTAlJCE "
data= " com.ptc .ptc - tt:aininq .Windchill"/>
< ie: param name =" authorization " data= " $( @SERVER(]AUTHORIZATIOIJ[O]) " I >
< ie:param name ="type "
data= "wt.in.f.container.WTContainer " / >
< ie: par am name ="l'There "
data= " () " / >
< ie: par am 1'lame=" at tribute"
data= " class,containerin.fo.naJRe" de l irn=" ,"/>
< ie:param name = " qroup_out"
data= " containers " / >
</ ie: TJebject >
NASA KSC
12
planet PTe
LIVE
NASAKSC
13
planet PTe
LIVE
Structure of a Webject
Webjects are the basic form to do most significant actions in lnfo*Engine.
They are custom tag libs. Webjects supported by the Windchill adapter
accept parameters that specify database user credentials and query
criteria.
type = "OBJ">
dat a = "com . ptc . pt c -training . Windc hill"/>
data = ''wcadmin "/> E
data = ''w admin "/> ~E----'
data = ''wt . part . WTPart "/ > ~---
data = "(life ;y 1 Stat =IHW RK} "/>
data = "(nu mb r=A*)"/ >
data = "CADUa.:m , na m , numb r , v r s i o n , l ifeCy1eS
data ="obj e sSea h d"/ >
H. group_out
NASAKSC
14
planet PTe
LIVE
Webject Adapters
Webjects are the basic form to do most significant actions in lnfo*Engine.
They are custom tag libs. Webjects supported by the Windchill adapter
accept parameters that specify database user credentials and query
criteria.
Type
Webjects
Description
ACT
Action
OBJ
Object or Query
GRP
Group
DSP
Display
IMG
IMG
MGT
Management
WES
MSG
Messaging
ADM
Administrative
15
planet PTe
LIVE
Prefix
Servlet Prefix
XML Path
NASAKSC
16
Demonstration
planet PTe
LIVE
NASAKSC
17
planet PTe
LIVE
What is a JSP?
Java Server Pages (JSP) is a core technology of J2EE (the Java 2
Platform, Enterprise Edition) and solutions based upon EJB (Enterprise
Java Beans).
lnfo*Engine supports the development of enterprise custom Java
applications and provides a JSP processor as an extension of the
lnfo*Engine servlet engine. The JSP processor dynamically translates JSP
pages into servlets.
Usually, a JSP page is an HTML page with some additional JSP tags and
some embedded Java code. However, inclusion of JSP tags or embedded
Java is not mandatory, so a page containing only HTML is a legitimate
JSP page.
JSP pages that interact with lnfo*Engine usually contain a simple set of
JSP tags and a set of custom lnfo*Engine tags that define the Webjects
that are then executed when the page is accessed.
18
ce?
~
planet PTe
LIVE
What is a JSP?
JSP pages can include HTML, Java Classes, Java Scripts, Scriptlets, and
lnfo*Engine code (Webjects).
JSP pages are resided on a server
A very simple example of a JSP page is shown below.
HTML>
<BODY>
<%
//This is a scriptlet.
System.out.println( .. Evaluating date now .. );
java.util.Date date= new java.util.Date();
%>
Hello! The time is now <%= date %>
</BODY>
</HTML>
19
planet PTe
liVE
NASAKSC
20
planet PTe
liVE
NASAKSC
21
planet PTe
li VE
'Webjects
<'@eaglib uri"beep://vvv.pec.com{intoengine/eaglib/core"
<ie: gecService varName="ieService"/>
retix"ie~,>
cype="GRP">
daca"objectsSearched"/>
data"narne"/>
data"objectsSearcbed"/>
HTML Section
</body>
</html>
NASAKSC
22
Demonstration
planet PTe
LIVE
., ,, .
~~- ,~~""~"'-"'..._,..,_-"""'"" -:=,_
fie
((i:
!_'lew
Ftytries
Icds
==::JC< >emw.~>
- i;,y",
_j P-"-1
111asterRefer
-----
....
dteckotlaf
amber
Design
A.DesigoP11r1
!J:>e,ii!J'
ANTJ_KICKBACK_220
n..ign
AUGER_BIT
auger_bil:
AIR_FTLTER_COVER_400
air_fik~_Cm'O'"_400
eli
Des;gn
A.Desigo Pan
aoti_kidcback_220 eli
wtpan. WTPart
c>i
ut.part. WTPatt
AXLE_F Asn:NER_SLPRT
uk_tasteuer_sl.pt eli
ut.pmt.WTPIIrl
AXLE_LATCH_SLPRT
u!<Jatcb_sl.pt
eli
"'t.pmt.WTPart
JLXI..E_SLEEVE_SLPRT
.u~e_-.-e_sl.pt
eli
ut.pan.\\'TPmt
;Design
wt.pllrl. WTPmt
VR.:wt.part. \VJ'PDrt:80642:6932713iS-
D.sis
class
1 92~pe:c-tnliniog.ptc .com
192@-p<c -,..;,;,g.p<c.eom
Des;gn
obid
VR:ut.pllrl WTPart:164101:69ll7 13751190160078 187- 10483841-100-150-1 68-
192@p<c-.,..;.,;,g.p<c.com
NASA KSC
23
----------------
-----
planet
PTe
LIVE
0
O
L-------------------------------------------- 0
INumber
Status State
- [Container
jtype
JPart
air_filter_cover_400 AIR_FILTER_COVER_400
janti_kick:back:_220 jA1'111_KICKBACK_220
jADesign c.li
lauger_bit
IADesign cJi
ADesign cJi
JAUGER_BIT
laxle_fastener_slprt ,AXLE_FASTENER_SLPRT
'version
~Part
jPart
l axl~_latch_d~ ,AXLE_LATCH_SLPRT
ADesign c.li - INWORK[St;erLit;G~eart fP~ ,
1
[~~sl~e~AXLE_SLEEVE-=-SLPRT - ADesign c.;;- INWORK j SuperLiteGolf~-~Part
---
NASAKSC
----
---
24
Demonstration
planet PTe
LIVE
NASAKSC
25
planet PTe
liVE
Adapter Guide:
WCAdapterGuide.pdf
User Guide:
IEUsersGuide.pdf
Java Adapter Development Kit:
IEJADKGuide.pdf
Java Naming Directory Interface
Adapter Guide:
JNDIAdapterGuide.pdf
Felco Solutions Website:
http://www.felcosolutions.com
26