Skip to main content
2-Explorer
July 22, 2014
Solved

Invoking InfoEngine tasks directly with a URL

  • July 22, 2014
  • 1 reply
  • 5678 views

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)

...

Best answer by AntonBagryanov

Look this thread

http://communities.ptc.com/message/249382#249382

1 reply

1-Visitor
July 22, 2014
tstacy2-ExplorerAuthor
2-Explorer
July 22, 2014

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

tstacy2-ExplorerAuthor
2-Explorer
July 22, 2014

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