Tc Generate IDs

This Snap generate IDs for Teamcenter Objects. These IDs are generated considering Teamcenter generate ID rule. In next step ID can be used to create an object.

Supported Accounts

  • This is a Read-type Snap.
  • Support for Ultra Tasks: Works in Ultra Tasks if Wrap result is selected.

Settings tab of snap to show example values.

Prerequisites

  • A valid Teamcenter account with the required permissions.

Limitations

Used Type needs to have item_id attribute.

Snap views

Type Description Examples of upstream and downstream Snaps
Input

Optional.This Snap has at the most one document input view.

The required input of the snap is the Type of the object and count of IDs to be generated.

Output

This Snap has exactly one document output view.

The output of the snap is the next free ID(s) and revision ID(s) generated for given object type.

Learn more about Error handling.

Examples

Tc Generate IDs: Simple output example

Snap settings

Note: Learn about the common controls in the Snap settings dialog.
Field/Field set Description
Label

String
Specify a unique name for the Snap. Modify this to be more appropriate, especially if there are more than one of the same Snap in the pipeline.

Default value: Tc Generate IDs

Configure policy

Checkbox

Select this checkbox to run the Snap with a specific named Teamcenter policy. A policy determines the set of object properties that Teamcenter returns.

Learn more: Configure policy.

Default status: Deselected

Configure session context

Checkbox

Select this checkbox to run the Snap with a group, role, or project other than the one configured in the account.

Learn more: Configure session context.

Default status: Deselected

Type*

String/Expression/ Suggestion

Specify the name of the Teamcenter type.

In JSON document the content for path can look like this:

[
  {
    "object_type": "Part"
  }
]

Name of the JSON property has to be the technical name of a valid type in Teamcenter datamodel.

Default value: Item

Example: Part

Count*

Integer/Expression

Number of IDs to generate.

Default value: 1

Example: 2

Wrap result

Checkbox

Result can contain multiple elements, and these can be given back in one document containing “result” object with list of elements or as multiple documents for each element.

  • selected

    output document contains all elements in one document.

  • unselected

Response contains document for each element.

Works not in Ultra Tasks

Default value: Unselected

Example: Selected

Configure error handling

Checkbox

Select this checkbox to define how the Snap behaves when Teamcenter returns an error. Use these settings for analysis and debugging.

Learn more: Configure error handling.

Default status: Deselected

Snap execution

Dropdown list
Choose one of the three modes in which the Snap executes. Available options are:
  • Validate & Execute. Performs limited execution of the Snap and generates a data preview during pipeline validation. Subsequently, performs full execution of the Snap (unlimited records) during pipeline runtime.
  • Execute only. Performs full execution of the Snap during pipeline execution without generating preview data.
  • Disabled. Disables the Snap and all Snaps that are downstream from it.