PLM 360 General

Reply
Contributor
Asingh5
Posts: 27
Registered: ‎09-13-2012
Message 1 of 3 (114 Views)
Accepted Solution

Milestone Scripting HELP!

114 Views, 2 Replies
04-18-2013 10:50 AM

Below is a example script for an Enter State milestone.

 

How do I script a Leave State Milestone? Please note I have tried the line below and it does not work.

milestone.milestoneType = 'LEAVE'; 

 

var milestone = item.addMilestone(); 

milestone.setWorkflowState('Short name'); 
milestone.milestoneType = 'ENTER'; 
milestone.milestoneDate = new Date(); 
milestone.warnThreshold = 10; 
milestone.progress = 50;
Product Support
Andrew.Shaw
Posts: 44
Registered: ‎01-09-2012
Message 2 of 3 (109 Views)

Re: Milestone Scripting HELP!

04-18-2013 11:15 AM in reply to: Asingh5

Dear Amrit,

 

The two values for milestones.milestoneType are ENTER and EXIT.

 

You can find the relevant scripting reference in the wiki here: Scripting Reference

 

Best regards,



Andrew Shaw
Premium Support Specialist PLM/PDM
Global Services
Autodesk, Inc.

Contributor
Asingh5
Posts: 27
Registered: ‎09-13-2012
Message 3 of 3 (101 Views)

Re: Milestone Scripting HELP!

04-18-2013 11:30 AM in reply to: Andrew.Shaw
Thank you for your help

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Ask the Community