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

We are happy to announce the new Windchill Customization board! Learn more.

Invoking InfoEngine tasks directly with a URL

tstacy
1-Newbie

Invoking InfoEngine tasks directly with a URL

Does anyone know how to invoke an InfoEngine task directly in the browser with a URL? In Windchill V9.1, we used this method to create administrative tasks to correct data in our Windchill environment or to see if something was created when the attributes were not displayed in the UI. In Windchill 10.2, I keep getting an IEForbiddenException and I'm trying to see what needs to be changed. Is it the way we are using InfoEngine tasks or is there some configuration that is needed to allow this? Here is an example of how we were invoking the task in V9.1:

https://www.myCompany.com/Windchill/servlet/IE/tasks/com/ptc/core/dca-Query.xml?supporting-adapter=com.myCompany.www.Windchill&object_type=wt.change2.WTChangeRequest2&where=()

In Windchill 10.2, the same query looks like this because of the change to the tasks:

https://www.myCompany.com/Windchill/servlet/IE/tasks/com/ptc/windchill/enterprise/search/search-Query.xml?supporting-adapter=com.myCompany.www.Windchill&object_type=wt.change2.WTChangeRequest2&where=()

I checked in the Apache conf files and they are very different between V9.1 and V10.2.

Is there some configuration changes I need to make? Or, do I need to forgo using the tasks directly and write some JSPs to invoke them?

The error I get is this:

2014-07-22 13:08:41,846 ERROR [ajp-bio-8010-exec-1] wt.adapter.exception wcadmin - WTAdapterImpl

com.infoengine.exception.fatal.IEForbiddenException

at com.infoengine.SAK.Task.checkAccessIfcs(Task.java:2332)

at com.infoengine.SAK.Task.invoke(Task.java:1803)

at com.infoengine.SAK.Task.invokeAndCheckExternalAccess(Task.java:1703)

at wt.method.WTAdapterImpl.processTask(WTAdapterImpl.java:711)

at wt.method.WTAdapterImpl.processRequest(WTAdapterImpl.java:481)

at com.infoengine.procunit.adapter.Adapter.send(Adapter.java:198)

at com.infoengine.IeServlet$RequestDispatcher.run(IeServlet.java:464)

at com.infoengine.IeServlet.doGet(IeServlet.java:247)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:621)

...

1 ACCEPTED SOLUTION

Accepted Solutions
4 REPLIES 4

I had to create the .delegateInfo file in the ootb task directories in order to use the search-Query.xml task. Thanks.

tstacy
1-Newbie
(To:tstacy)

Spoke too soon. It seems to work for the ootb tasks, but custom tasks are not working yet.

Try this code for the custom IE task:

<%@page language="java" access="http"%>

<%@taglib uri="http://www.ptc.com/infoengine/taglib/core" prefix="ie"%>

<ie:webject name="Query-Objects" type="OBJ">

<ie:param name="INSTANCE" data="$(@FORM[]supporting-adapter[*])" delim="!" valueSeparator="!

" default="<%=com.infoengine.au.NamingService.getVMName()%>"/>

<ie:param name="TYPE" data="wt.doc.WTDocument"/>

<ie:param name="WHERE" data="()"/>

</ie:webject>

Top Tags