Cancel
Showing results for 
Search instead for 
Did you mean: 

JAVA API and Naming Rule for item_id

Genius
Genius

How to use item_id generation when Naming Rule appied with TC JAVA API( or may be SOA) ?

 

I have a naming rule with 2 patterns for example:

 

A-nnnnnn

B-nnnnnn

 

I use Java API function tccomponent_item_type.create(item_id,rev_id,item_type, item_name,item_desc,uom_tag)

 

If we need item_id generated by TC we just set item_id parameter as NULL.

But how to get new Item_ID if the Nameing Rule with two patterns exist for this item?

2 REPLIES

Re: JAVA API and Naming Rule for item_id

Hello Alex,

Just speaking from memory, most probably the UID of the new element is present in the 'Created' field of the service response. Once obtained, the new Item with its generated id's could be read back from Teamcenter.

 

 

 

Re: JAVA API and Naming Rule for item_id

Genius
Genius