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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Promotion Request OIR question

rstav
1-Newbie

Promotion Request OIR question

Windchill Admins,

When we create a Promotion Request it is automatically stored it the root Product location. We would like the Promotion Request to be stored in the folder with the objects the Promotion Request references.

Here is the code from the Promotion Request OIR.

<attrvalue<br/> id="folder.id"
algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm"
ignore="false"
force="false"
final="false">
<arg>/Default</arg>
</attrvalue>

<attrconstraint<br/> id="folder.id"
algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints"
ignore="false"
force="false"
final="false">
<value algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue">

</value>
</attrconstraint>

When we create a document it is created within the folder that we want it, but it does not work the same way for Promotion Requests. Does this happen to anyone else? We are using Windchill 9.0 M050.

Thanks
Rich

Richard Stavish
Pro/E System Administrator

[cid:image001.jpg@01CB9072.BC521AC0]

E-mail:
Office:
Fax:
Mobile:

RStavish@sargentaerospace.com
520-744-1000 x4570
520-744-7529
520-437-5811
8 REPLIES 8
MikeLockwood
22-Sapphire I
(To:rstav)

<arg>/Default/PromotionRequests</arg>

I was going to reply like that, but I though maybe you wanted to very
that location which I thinks might be doable, but I would have to think
a lot harder.

Does what Mike says here answer your questions?

--Bob


On 11/30/2010 9:05 AM, Lockwood,Mike,IRVINE,R&D wrote:
>
> <arg>/Default/PromotionRequests</arg>
>
> *From:*Stavish, Richard [
>
>
> algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm"
>
> ignore="false"
>
> force="false"
>
> final="false">
>
> <arg>/Default</arg>
>
> </attrvalue>
>
> <attrconstraint<br/>>
> id="folder.id"
>
> algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints"
>
> ignore="fal...



































rstav
1-Newbie
(To:rstav)

Correct me if I am wrong...but the solution that Mike sent would place EVERY Promotion Request in the PromotionRequests folder.

I have several folders in my Product location, so I would like the Promotion Requests to be placed in the different folders along with the documents that the Promotion request references.

Rich

Richard Stavish
Pro/E System Administrator

[cid:image001.jpg@01CB907E.47EF8670]

E-mail:
Office:
Fax:
Mobile:

RStavish@sargentaerospace.com
520-744-1000 x4570
520-744-7529
520-437-5811
ddemay
1-Newbie
(To:rstav)

This cannot be done without writing custom code in a rule algorithm as you don't have access to the documents when the OIR executes.

You are better moving the promotion request from a hidden folder (via acl's or something) using the runtime workflow to do the folder move.

David DeMay



Sent from my Verizon Wireless BlackBerry

hi,

basically this just needs a few lines of code in a trigger - but which
folder to chose if your promotion targets reside in different folders?

cheers, martin

On 11/30/2010 10:05 AM, Stavish, Richard wrote:
That is correct - that was what I was wondering when I saw your
message. I think you can do what you want, but I think you might have
to point at a new class. I have done similar things before but will
have to go look up what I did.

> Correct me if I am wrong...but the solution that Mike sent would place
> EVERY Promotion Request in the PromotionRequests folder.
>
> I have several folders in my Product location, so I would like the
> Promotion Requests to be placed in the different folders along with
> the documents that the Promotion request references.
>
> Rich
>
> *Richard Stavish****
> *Pro/E System Administrator
>
>
>
> E-mail:
> Office:
> Fax:
> Mobile:
>
>
>
> RStavish@sargentaerospace.com
> 520-744-1000 x4570
> 520-744-7529
> 520-437-5811
>
> ______________________________________________________________________________________________
> The information contained herein may be confidential and proprietary
> and is intended only for the use of
> the addressee. This email does not contain any Department of Defense
> confidential, sensitive or official
> information and this disclaimer relates only to the internal policies
> of Sargent Aerospace & Defense. Any
> unauthorized dissemination or disclosure of this communication is
> strictly prohibited. If you have received
> this communication in error, please notify the sender immediately. The
> information herein is not warranted
> to be free of virus or any other defect.
>
> *From:*Bob Lehman [
> *Subject:* [solutions] - Promotion Request OIR question
>
> Windchill Admins,
>
> When we create a Promotion Request it is automatically stored it the
> root Product location. We would like the Promotion Request to be
> stored in the folder with the objects the Promotion Request references.
>
> Here is the code from the Promotion Request OIR.
>
> <attrvalue<br/>>
> id="folder.id"
>
>
> algorithm="com.ptc.core.foundation.folder.server.impl.FolderPathAttributeAlgorithm"
>
> ignore="false"
>
> force="false"
>
> final="false">
>
> <arg>/Default</arg>
>
> </attrvalue>
>
> <attrconstraint<br/>>
> id="folder.id"
>
> algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints"
>
> ignore="false"
>
> force="false"
>
> final="false">
>
> <value <br="/>> algorithm="com.ptc.core.rule.server.impl.GetServerPreGeneratedValue">
>
> </value>
>
> </attrconstraint>
>
> When we create a document it is created within the folder that we want
> it, but it does not work the same way for Promotion Requests. Does
> this happen to anyone else? We are using Windchill 9.0 M050.
>
> Thanks
>
> Rich
>
> *Richard Stavish
> *Pro/E System Administrator
>
>
>
> E-mail:
> Office:
> Fax:
> Mobile:
>
>
>
> RStavish@sargentaerospace.com <">mailto:RStavish@sargentaerospace.com>
> 520-744-1000 x4570
> 520-744-7529
> 520-437-5811
>
> ______________________________________________________________________________________________
> The information contained herein may be confidential and proprietary
> and is intended only for the use of
> the addressee. This email does not contain any Department of Defense
> confidential, sensitive or official
> information and this disclaimer relates only to the internal policies
> of Sargent Aerospace & Defense. Any
> unauthorized dissemination or disclosure of this communication is
> strictly prohibited. If you have received
> this communication in error, please notify the sender immediately. The
> information herein is not warranted
> to be free of virus or any other defect.
>
> -----End Original Message-----
>
> ------------------------------------------------------------------------
>
> This e-mail (including any attachments) is confidential and may be
> legally privileged. If you are not an intended recipient or an
> authorized representative of an intended recipient, you are prohibited
> from using, copying or distributing the information in this e-mail or
> its attachments. If you have received this e-mail in error, please
> notify the sender immediately by return e-mail and delete all copies
> of this message and any attachments.
>
> Thank you.
>
> -----End Original Message-----
>
> -----End Original Message-----
>
> -----End Original Message-----

ssenthil
1-Newbie
(To:rstav)

Collectively storing the promotion requests in one specific folder seems to
be most widely used approach. If you navigate to document/any other objects
details page, you can trace back to the responsible promotion notice page.
As indicated in the response mails, one can meet this requirement in many
ways. Curious to know the driving business requirement.



Thank you and have a great time.

Best Regards

Swamy Senthil

Principal Solutions Architect

973 216 0456(M); 973 324 2729(W); 866 908 6561(F)

Work Email: swamy.senthil@swasen.com

LinkedIn Profile:
MikeLockwood
22-Sapphire I
(To:rstav)

I completely agree on this. Can't think of any reason to store the promotion requests in the same folder as the objects promoted on them.
Top Tags