cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Windchill Variable

rstav
1-Newbie

Windchill Variable

Windchill Gurus,



I would like to create a variable in the Problem Report
workflow to display the affected objects of the Problem Report. When I
create the variable there is a very long list of Windchill classes to
choose from.



Does anyone know which one to pick to display the affected objects of
the Problem report?



Thanks

Rich



Richard Stavish
Pro/E System Administrator
Sargent Controls & Aerospace



E-mail:
Office:
Fax:

RStavish@sargentcontrols.com
520-744-1000 Ext. 570
520-744-7529
7 REPLIES 7
ddemay
1-Newbie
(To:rstav)

You can't do it with one variable or one class. The affect objected objects
are relationships to the WTChangeIssue PBO in the workflow. Let me know if
you need any other help.



_____

What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.



Steve D.


I developped this feature to be able to send informative mails at PR creation time. you need to do a query then walk downe the result :

CI = (wt.change2.WTChangeIssue) primaryBusinessObject;

try{
// Articles Affectés
wt.fc.QueryResult AI = wt.change2.ChangeHelper2.service.getChangeables(CI);
while(AI.hasMoreElements()) {
wt.fc.Persistable persistable = (wt.fc.Persistable)AI.nextElement();
if(persistable instanceof wt.part.WTPart){
wt.part.WTPart pieceAffectee = (wt.part.WTPart)persistable;
wt.part.WTPartMaster maitre = (wt.part.WTPartMaster) pieceAffectee.getMaster();
articleCourant = maitre.getName();
}



In Reply to Stephen Drzewiczewski:

What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.



Steve D.


I developped this feature to be able to send informative mails at PR creation time. you need to do a query then walk downe the result :

CI = (wt.change2.WTChangeIssue) primaryBusinessObject;

try{
// Articles Affectés
wt.fc.QueryResult AI = wt.change2.ChangeHelper2.service.getChangeables(CI);
while(AI.hasMoreElements()) {
wt.fc.Persistable persistable = (wt.fc.Persistable)AI.nextElement();
if(persistable instanceof wt.part.WTPart){
wt.part.WTPart pieceAffectee = (wt.part.WTPart)persistable;
wt.part.WTPartMaster maitre = (wt.part.WTPartMaster) pieceAffectee.getMaster();
articleCourant = maitre.getName();
}



In Reply to Stephen Drzewiczewski:

What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.



Steve D.


I developped this feature to be able to send informative mails at PR creation time. you need to do a query then walk downe the result :

CI = (wt.change2.WTChangeIssue) primaryBusinessObject;

try{
// Articles Affectés
wt.fc.QueryResult AI = wt.change2.ChangeHelper2.service.getChangeables(CI);
while(AI.hasMoreElements()) {
wt.fc.Persistable persistable = (wt.fc.Persistable)AI.nextElement();
if(persistable instanceof wt.part.WTPart){
wt.part.WTPart pieceAffectee = (wt.part.WTPart)persistable;
wt.part.WTPartMaster maitre = (wt.part.WTPartMaster) pieceAffectee.getMaster();
articleCourant = maitre.getName();
}



In Reply to Stephen Drzewiczewski:

What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.



Steve D.


I developped this feature to be able to send informative mails at PR creation time. you need to do a query then walk downe the result :

CI = (wt.change2.WTChangeIssue) primaryBusinessObject;

try{
// Articles Affectés
wt.fc.QueryResult AI = wt.change2.ChangeHelper2.service.getChangeables(CI);
while(AI.hasMoreElements()) {
wt.fc.Persistable persistable = (wt.fc.Persistable)AI.nextElement();
if(persistable instanceof wt.part.WTPart){
wt.part.WTPart pieceAffectee = (wt.part.WTPart)persistable;
wt.part.WTPartMaster maitre = (wt.part.WTPartMaster) pieceAffectee.getMaster();
articleCourant = maitre.getName();
}



In Reply to Stephen Drzewiczewski:

What is your goal? Are you trying to display these on the Task Form? If so
you may want to look at the ability to customize the JSP task forms. There
is some good info on them in the Customizer's Guide.



Steve D.


Oops, sorry for the multiple posts

Vincent

Top Tags