Please help me in this. \\\\\\
Thanks
Roop
Please help me in this. \\\\\\
Thanks
Roop
We have Revision Series loaded in system with some legacy=true value, so that those revisions can be imported for legacy data, i.e. I,O,Q,S,X,Z. At the same time we have added Revision attribute and enabled RevisionPicker in New Part Creation Form, so that user can enter required revision manually . Also in preference settings we have set this preference Allow Override On Revise = yes so that user can give required revision while revise, e.g. bumping up revision skipping next available be default.
Due to these settings, system is allowing to create new parts with Revision which are defined as legacy=true. But we dont want system to allow to create parts with these values. Any suggestions how can we restrict legacy revisions for new parts.
Hi John,
depending on the process, as an Administrator, if you open the running process from the Routing Status table, you should be able to select the running task on the workflow and then use the buttons on the top to complete manually that task. It will reflect that an Administrator has completed it in the process status table.
Regards
Thanks Iker.
It is ture that Admin can do that. Nevertheless, if the task cannot be completed due to a syntax error in it, how can we ignore that task and continue to the next one?
If there is a dependency on the syntax for the task getting completed, then there is no possible way to skip it. You must correct the syntax in the workflow process template, check it in, and then re-initiate the workflow process. It will grab the latest iteration of the process template and then there will be no bug when it gets back to that task again.
Thank you Ben,
Does this mean that the previous tasks need to be completed again?
Regards
John
Yes, someone will need to click through the tasks again to bring the new workflow process instance up to the same place that the previous workflow failed.
Thank you.
Essentially what you're saying is that you have 2 attributes and a sequence. And you want the number of the object to be a concatenation of those 3 attributes. Is that what you're asking?
I can't remember where I got this code from. I think there is an article on it. But I couldn't find it doing a quick search. But I have a WTDocument OIR that will set the name as a concatenation based on 2 things:
<AttrValue id="name" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator" ignore="false" force="false" final="false"> <Attr id="partQualGenPartNumber"/> <Arg>: PART QUALIFICATION PROCESS</Arg> </AttrValue>
So if you wanted to set the number of the object based on 2 attributes and a sequence, perhaps something like this would work?:
<AttrValue id="name" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator" ignore="false" force="false" final="false"> <Attr id="customerNumberIBAinternalName"/> <Attr id="productFamilyIBAinternalName"/> <Attr id="runningNumber"/><Arg>{GEN:wt.enterprise.SequenceGenerator:YOUR_DATABASE_SEQUENCE:3:0}</Arg><AttrValue>
Thanks for your valuable reply sir.
Will try and let you know if I face any difficulties.
Abhishek,
I thought there might be a way to access BLOB type data elements using a Java Method with QueryBuilder. I'd already found the reference you provide and that does not point directly at accessing the contents of the BLOB. Specifically I'm interested to access the RuleData for an LWCBASICCONSTRAINT e.g. legal list values from QueryBuilder using a Java Method. If you have a snippet of code along these lines I would very much appreciate being able to reference it.
Regards,
Greg Montgomery
John - I have a few - when I get back to my laptop I can send them
Hello Guys,
I am working in one PLM system for PTC Windchill 11. Here i am going through one issue that created alternate part from main part doesn't getting exported to my PLM System.
How do i get it? Kindly help me out here.
Thanks,
Sunil
Hello Sir,
It still doesn't take up the second value.
The original OIR I created was,
(Single attribute)
<AttrValue id="number" algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator" ignore="false" force="false" final="false">
<Value algorithm="wt.rule.algorithm.CaseBranch">
<Value algorithm="wt.rule.algorithm.StringEqualsTest">
<Attr id="Customer"/>
<Arg>******</Arg>
</Value>
<Arg>001</Arg>
<Value algorithm="wt.rule.algorithm.StringEqualsTest">
<Attr id="Customer"/>
<Arg>******</Arg>
</Value>
<Arg>002</Arg>
<Value algorithm="wt.rule.algorithm.StringEqualsTest">
<Attr id="Customer"/>
<Arg>******</Arg>
</Value>
<Arg>003</Arg>
<Value algorithm="wt.rule.algorithm.StringEqualsTest">
<Attr id="Customer"/>
<Arg>*****</Arg>
</Value>
<!-- ***** is the customer name-->
</Value>
<Arg>{GEN:wt.enterprise.SequenceGenerator:test:3:0}</Arg>
</AttrValue>
The above OIR works for single attribute alone.
When I try to concatenate two attributes, it still takes up the first attribute and doesn't take the value of second one.
Hi Alexandru,
could you writte me if you have solved this issue. It seems that I have the same one.
Thank you
David
Hi David,
Did you try the suggestions that Kumar mentioned? (no spaces in folder names)
For me this and restarting the installation did the trick.
Alex
I remember running this to the same issue and PTC mentioned that it is an expected behaviour. The only way to get around this is by adding a customization, like a validator
How to print environmental variables or customized messages in the method server log during startup?
John English Here are two examples - one allows you to search for related Changes notices where you can specify a state and the other lets you search for a part and enter a reference designator and find Parts in a BOM that meet that criteria