Skip to main content
13-Aquamarine
April 8, 2015
Question

How to detect domain in OIR?

  • April 8, 2015
  • 2 replies
  • 1673 views

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

1-Visitor
April 9, 2015

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

23-Emerald II
April 17, 2015

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.