Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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
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
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.