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

Invoking InfoEngine tasks directly with a URL

SOLVED
Highlighted
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=c...()

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-Quer...()

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

Re: Invoking InfoEngine tasks directly with a URL

4 REPLIES 4

Re: Invoking InfoEngine tasks directly with a URL

Re: Invoking InfoEngine tasks directly with a URL

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

Re: Invoking InfoEngine tasks directly with a URL

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

Re: Invoking InfoEngine tasks directly with a URL

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">

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

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

<ieSmiley Tonguearam name="TYPE" data="wt.doc.WTDocument"/>

<ieSmiley Tonguearam name="WHERE" data="()"/>

</ie:webject>