How to provide input arguments in call teamcenter service in mendix ?

0
Have anybody worked on the mendix teamcenter integration and have any insight related to the call teamcenter service in mendix with TCConnector module ? 
asked
1 answers
1

Hi. This is a very powerful capability in the Connector which means you can call any service in Teamcenter from Mendix, so there are no limits in your app.

You need to look through the API documentation to find the service you require and then provide a JSON operation mapping file, to map your Mendix domain model to the inputs and outputs of the service.

For example, if you want to call saveAsNewItem, you look it up in the docs and see:

image.png

So the activity CallTeamcenterService needs to be populated with the correct URL and the Operation Mapping can look something like this:

{
	"ServiceOperation": "Core-2007-01-DataManagement\/saveAsNewItem",
	"InputType": "MyModule.SaveAsInput",
	"ResponseType": "",
	"ObjectMapping": "",
	"OperationInput": {
		"info": [
			{
				"clientId": "saveAsNewItem",
				"itemRevision": "$Input\/MyModule.itemRevision",
				"itemId": "",
				"revId": "",
				"name": "$Input\/Name",
				"description": "$Input\/Description",
				"folder": ""
			}
		]
	},
	"OperationResponse": {
	}
}

And the corresponding domain model to fit this mapping is:

image.png

answered