Script Types: Scheduled Workflow Action Script

Four action script triggers (on-create, on-edit, on-demand and workflow) were introduced in the post on action script type. There is another trigger: scheduled script, which is a subtle but very useful feature. Now let's walk through it to round off all the action script triggers.

Scheduled Workflow Action Script, as its name suggested, is an action script which is scheduled to run on a workflow state. For each workflow state in PLM, an action can be set up to perform after the configured number of days since the state is entered. Running an action script is one of the optional actions. To set up a scheduled script for a workflow state, go to: [Administration -> Workspace Manager -> workspace –> Workflow Editor -> double click a state -> Escalation tab]. After enabling the escalation, configure when the escalated action will be triggered (must be in Integer days). In our case, we select “Run a script” as the type so that we are able to arrange an action script.

Capture

Three noteworthy things about this feature:

  • After the scheduled script is triggered, it won’t be rescheduled again until the workflow state is re-entered.
  • The scheduled script is usually used to notify certain users about current workflow state, automatically move the workflow forward and so on. But again, it is your script, so all up to you.
  • Don’t expect the timer offering a second accuracy, so this feature is not for firing a rocket.

— Michal


Comments

2 responses to “Script Types: Scheduled Workflow Action Script”

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading