Quantcast
Channel: PTC Community : Unanswered Discussions - Windchill
Viewing all articles
Browse latest Browse all 3592

How i can send Attributes values of Problem report sent through Workflow email

$
0
0

Hi All,

 

My requirement is, to send the list of attribute values related to that Problem report to users through Workflow message.

we are using OOTB problem report Workflow.

 

1. created variables  like name, category

2. add below code to expression robot in workflow,

 

wt.change2.WTChangeIssue thisPR = (wt.change2.WTChangeIssue) primaryBusinessObject;

java.util.Locale locale = wt.session.SessionHelper.getLocale();
com.ptc.core.lwc.server.PersistableAdapter obj = new com.ptc.core.lwc.server.PersistableAdapter(thisPR,null,locale,null);
obj.load("name","number","description","Category");
Object nameValue = obj.get("name");
Object numberValue = obj.get("number");
Object descriptionValue = obj.get("description");
Object CategoryValue = obj.get("Category");

name = nameValue.toString();
number = numberValue.toString();
description = descriptionValue.toString();
category = CategoryValue.toString();

=======================

when i try to compile it, facing issue, as shown in image,

2015-12-24 2-12-24 PM.jpg

 

the mentioned class is not present at that location, but i think this is stranded class which comes with OOTB windchill installation.


here is my workflow, please check it let me help.

any kind of help will be grate.




Viewing all articles
Browse latest Browse all 3592

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>