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

We are happy to announce the new Windchill Customization board! Learn more.

How can I get the user that approve a promotion request using alias attributes?

wneves
1-Newbie

How can I get the user that approve a promotion request using alias attributes?

I'm trying to use alias attribute to dsiplat some informations from a promotion request as attributes on a document.

I got to display the promotion request number and the promotion date using alias attributes, but I also need to display the user that aproves this promotion request.

For date and number promotion request, I use the following mapping:

roleBObject@wt.maturity.PromotionTarget~roleAObject^wt.maturity.PromotionNotice~promotionDate

roleBObject@wt.maturity.PromotionTarget~roleAObject^wt.maturity.PromotionNotice~number

But for approver, I use the following mapping but no value is displayed:

roleBObject@wt.maturity.PromotionTarget~roleAObject^wt.maturity.PromotionNotice~roleBObject^wt.workflow.engine.WfVotingEventAudit~workCompletedBy

If anyone could provide some support, I would appreciate it.

Wesley

5 REPLIES 5
Vinay_S
15-Moonstone
(To:wneves)

Hi @wneves,

I am currently working on the same process. May I know if this solved your issue since it is not working for me. Your help would be greatly appreciated. 

Vinay S.
CADOpt Technologies Private Limited
Bengaluru.
rbhoraskar
12-Amethyst
(To:wneves)

  • Use following syntax in the Alias Attribute mapping on the EPMDocument:
roleBObject@wt.maturity.PromotionTarget~roleAObject^wt.maturity.PromotionNotice~primaryBusinessObject@wt.workflow.work.WorkItem~theWorkItemReference@wt.workflow.engine.WfVotingEventAudit~userRef^wt.org.WTPrincipal~name

  • Notes:
    • This will get all users related to the Review and Approve and other tasks related to the promotion request
    • The users will be displayed as comma separated value for the attribute
    • The values are mapped only if the tasks have been completed
Vinay_S
15-Moonstone
(To:rbhoraskar)

Hi @rbhoraskar,

Thank you for your time. I have solved this issue few days ago. 

Vinay S.
CADOpt Technologies Private Limited
Bengaluru.
rbhoraskar
12-Amethyst
(To:Vinay_S)

You can mark this Topic as solved then.

No one will reply after that 🙂

 

Cheers,

Rahul

Top Tags