How to Validate Workflows?
By: Richard Glaser, University of Utah - Revised: 2009-07-17 richardValidate a Single Workflow
To validate a work named workflow_name.pwf, use the following command:
pcastconfig --validate_workflow workflow_name
For example...
# pcastconfig --validate_workflow Blog
Workflow: Blog (/System/Library/PodcastProducer/Workflows/Blog.pwf) is VALID
Note, do not include the extension (i.e. pwf) with this command just the workflow name without the extension. If you do include the extension, you will get the following error:
Unknown workflow: workflow_name.pwf
Validate Single Workflow by Path
To validate a work by path use the following command:
pcastconfig --validate_workflow_at_path /path/to/workflow_name.pwf
For example...
# pcastconfig --validate_workflow_at_path /System/Library/PodcastProducer/Workflows/Blog.pwf
Workflow: /System/Library/PodcastProducer/Workflows/Blog.pwf is VALID
Note, include the extension (i.e. pwf) with this command, else you will get an error:
NOT VALID
ERROR: undefined method `infoDictionary' for nil:NilClass
Validate All Workflows
To validate all workflows stored in:
Default Workflows...
/System/Library/PodcastProducer/Workflows
Custom workflows...
/Library/PodcastProducer/Workflows
Use the following command:
pcastconfig --validate_all_workflows