PLM 360 General Discussion

PLM 360 General Discussion

Reply
Valued Contributor
j.hendrickson
Posts: 83
Registered: ‎11-11-2013
Message 1 of 3 (167 Views)
Accepted Solution

Automatically Advance Workflow Based On Item Details

167 Views, 2 Replies
11-20-2013 05:28 PM

Hi, I'm at another loss here.  Is it possible to have a workflow advance (transition performed) without user interaction?  Here's the setup:

 

  • Two checkbox fields on the Item Details tab: Task A and Task B
  • Item is in state 03a
  • When both checkboxes are checked item is automatically transitioned from state 03a to 03b without requiring anyone to do a Workflow Action

Can this be done and what's the basic methodology to do so?

 

Thank you!

Hi,

You could consider adding a new OnEdit script that will check to see if the checkbox is selected, and if it is perform the workflow transition to next state.

The method to use is item.performWorkflowTransition().

I hope this helps.

Regards,

 

Product Support
mazerab
Posts: 207
Registered: ‎11-20-2012
Message 2 of 3 (141 Views)

Re: Automatically Advance Workflow Based On Item Details

11-22-2013 03:26 PM in reply to: j.hendrickson

Hi,

You could consider adding a new OnEdit script that will check to see if the checkbox is selected, and if it is perform the workflow transition to next state.

The method to use is item.performWorkflowTransition().

I hope this helps.

Regards,

 



Bastien Mazeran
Support Specialist
Product Support
Autodesk, Inc.
Valued Contributor
j.hendrickson
Posts: 83
Registered: ‎11-11-2013
Message 3 of 3 (139 Views)

Re: Automatically Advance Workflow Based On Item Details

11-22-2013 04:49 PM in reply to: mazerab
Perfect, that's what I needed. I missed this method in the Scripting Reference but now I see it.

Thank you!
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.