Create a part and classify it

Note:

Classification has to exist in Teamcenter. Demonstratet classification “Cuboid” is not ootb Teamcenter.

This example pipeline demonstrates how to create a part and classify it in Teamcenter.


Pipeline consisting of six snaps to demonstrate a classification use case.

Note:

Classification has to exist in Teamcenter.

Steps

1: Create a JSON document which contains type and attribute of the part. The JSON Generator is a placeholder for external system which could send a JSON message to Snaplogic. On validation, the Snap displays the json in output.

[
  {
    "object_type": "Part",
    "attributes": {
      "object_desc": "Test Create with Snap",
      "object_name": "Classification_Test",
      "fnd0CurrentLocationCode": "55"
    },
    "expandAttributes": [
      "object_type",
      "object_name",
      "object_desc",
      "item_id",
      "item_revision_id",
      "uom_tag",
      "creation_date",
      "fnd0IcsClassNames",
      "is_modifiable",
      "ics_classified",
      "owning_user",
      "fnd0CurrentLocationCode",
      "checked_out"
    ]
  }
]

2: Configure the Tc Create and Update Snap to pass the data. On validation, the Snap displays the part revision created for the input.

Snap configuration

Snap output


Settings of Tc Create and Update Snap using properties from JSON input document to fill fields e.g. 'Object Type' and 'Object attributes Path'.


JSON output document of Tc Create and Update Snap including metadata of created object.

3: Configure the Tc Classification Get Snap to read classification of the part revision. On validation, the Snap displays the classification information.

Snap configuration

Snap output


Settings of Tc Classification Get Snap using property 'UID' from JSON input document to fill field 'Object ID'.


JSON output document of Tc Classification Get Snap including currently empty result list for newly created object.

4: Configure a router to route message to Tc Classification Create Snap in case no classification exists.

Snap configuration


Router Snap with logic to ga to first branch in case result list object is empty and to second branch otherwise.

5: Configure the Tc Classification Create Snap to create classification infomraiton and add it to the part revision. On validation, the Snap displays the newly created classificiation information.

Snap configuration

Snap output


Settings of Tc Classification Create Snap using property from JSON input document to fill field 'Object ID'. Classification 'Class ID' and attributes are hard written.


JSON output document of Tc Classification Create Snap with metadata of newly created classification object.

6: Configure again a Tc Classification Get Snap to read classification of the part revision. On validation, the Snap displays the classification information as object in a result list.

Snap configuration

Snap output


Settings of Tc Classification Get Snap using property 'UID' of original.original object from JSON input document to fill field 'Object ID'.


JSON output document of Tc Classification Get Snap including result list with one classification object.