Skip to main content
13-Aquamarine
February 11, 2013
Question

WTDocument Best Practice

  • February 11, 2013
  • 8 replies
  • 1550 views
I am in the process of defining WTDocuments and I was wondering if it was a best practice to soft type the WTDocument object so as to not "tarnish" the OOTB WTDocument object? I have heard this is a best practice for WTParts but I was wondering about WTDocuments. Thanks in advance.

Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image001.jpg@01CE0838.22E29AF0]

8 replies

12-Amethyst
February 11, 2013
If you need only one light type of document now, then it is possible that
you might need another light type of document in the future.

If you add soft attributes to the Document node, then any future subtype
will inherit those attributes - somthing that may not make sense for your
new type.

As a result, you are better off making a sub type to add your attributes
and a new icon and new rules so that in the future if you ever need
another, then you are free to wither subtype your subtype, or (more
likely) make an entirely new type that isn't encumbered by the original
subtypes' attributes, icon, rules, etc.

Al







[solutions] - WTDocument Best Practice

Williams, Patrick
1-Visitor
February 11, 2013

I agree with Al. We always keep OOTB types (WTPart, WTDocument, Change Objects etc) as it is and when needed, create a sub-type.

13-Aquamarine
February 11, 2013
So in your experience it is best to always soft type the WTDocument for a specific purpose (attributes, life cycle, workflow) and if need be create additional soft types as children of the original soft type or of WTDocument itself?

Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image001.jpg@01CE0845.B0A03CA0]
13-Aquamarine
February 11, 2013
What about soft typing links? For example I want to add an additional attribute to the Part Usage Link. Would you soft type this link to add the new attribute? How do I then force the soft typed Part Usage Link to be used?

Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image002.jpg@01CE0846.6F22AF00]
1-Visitor
February 11, 2013

Yes, soft-typing has always been helpful to us. We never created soft-types of links though.

13-Aquamarine
February 11, 2013
Does that mean you never had a reason to soft type a link? Or did you just modify the OOTB link?

Patrick Williams | Engineering Systems | c: 616.947.2110
[cid:image001.jpg@01CE0847.9B1B4940]
1-Visitor
February 11, 2013

We never needed soft-types of links.

12-Amethyst
February 11, 2013
Yes. Avoid directly adding attributes and constraints to the root level
in order to save yourself trouble in the future.

Al