Quantcast
Channel: PTC Community: Message List - Windchill
Viewing all articles
Browse latest Browse all 8876

Re: How to pass an object for an Info Engine task in the Info Engine Task Editor?

$
0
0

Hi Ismail,

 

I want to invoke the IE task through java code.

So, I want to pass that object via Java code.

The code snippet is as followed:

 

Task task = new Task();

System.out.println("Start");

task.setTaskURI("com/ptc/windchill/ws/create.xml");

task.addParam("INSTANCE", "com.cts.wccoe.Windchill");

task.addParam("supporting-adapter", "com.cts.wccoe.Windchill");

task.addParam("FIELD","name='C-3102'");

task.addParam("FIELD","number='3102'");

task.addParam("FIELD","containerReference='OR:wt.pdmlink.PDMLinkProduct:116778'");

task.addParam("FIELD","typeIdentifier='wt.part.WTPart'");

task.addParam("TYPE","wt.part.WTPart");

System.out.println("End");

task.invoke();


Viewing all articles
Browse latest Browse all 8876

Trending Articles



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