Execute Info*Engine Services with the OData Connector
To use the OData connector to execute Info*Engine tasks, first configure the out-of-the-box OData connector ptc-windchill-OData-connector to connect to the Info*Engine domain Windchill OData REST services. Then you can use Windchill OData REST services to execute Info*Engine tasks.
Follow these steps to execute Info*Engine tasks:
2. Click on the Services tab.
3. For
RefreshEndpointCache, click
. The
Execute Service window opens.
4. Click Execute. You should receive the message: Success. Your service was successfully executed.
5. Click Done.
6. For
InvokeIETask, click
.
7. In the Input window, add the following information in JSON format:
◦ Task— The XML file for the Info*Engine task. The file is located here: <Windchill Installation>/<Windchill_Home>/tasks/.
| Make sure that the task is enabled for execution. To do this, verify that the following markup appears at the head of the XML file: <%@page language="java" access="http"%> |
◦ Params—(Optional) A JSON array that contains name-value pairs to pass as a parameter to the Info*Engine task.
Example:
{
"Task": "wt/federation/delegates/windchill/QueryObjects.xml",
"Params": [
{ "Name": "type", "Value": "wt.part.WTPart" },
{ "Name": "where", "Value": "name=SOME_PART_NAME" }
]
}
8. Click Execute to start the Info*Engine task. The output of the service is in JSON format and contains the following properties:
◦ @odata.context—The context URL for the payload.
◦ Value—A JSON array that contains JSON objects with Groupname and Element properties.
9. To execute another Info*Engine task, repeat steps 1–7.
| The endpoints of the OData connector might not work as expected on ThingWorx Navigate, and as a result, you might need to make changes. For details and instructions on configuring OData services on Windchill data, see the Windchill REST Services Help Center. |