cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

How to detect domain in OIR?

pwilliams-3
11-Garnet

How to detect domain in OIR?

Hi Everyone,

Windchill 10.1 M040. Is it possible to detect the domain within an OIR? I need to create some logic to set the proper lifecycle based upon the domain that an EPMDocument is being created in. Has anyone done this?

Thanks,

Patrick Williams

2 REPLIES 2

Hi Patrick,

There is some documentation regarding OIRs that support basic logic and custom algorithms.

http://support.ptc.com/cs/help/windchill_hc/wc102_hc/index.jspx?id=ObjRuleRuleContentRef&action=show

Good Luck,

Jarrett

LoriSood
22-Sapphire II
(To:pwilliams-3)

Since the folder determines, which domain will be used could you do some sort of logic that checks the folder?

One problem I see is that OIRs are evaluated when the wizard is initialized. I don't believe they are re-evaluated any time after that. Therefore, if a user changes the folder location after the wizard has initialized the OIR will not be used to update the lifecycle information. You may be better off with some sort of listener/validator that would check the folder/domain info once the EPM Document is submitted for creation.

Top Tags