-[AMWorkflowController stop:] does not stop the workflow from being executed
Originator: | vincent.gable | ||
Number: | rdar://6454810 | Date Originated: | 17-Dec-2008 11:55 PM |
Status: | Duplicate/4088120 | Resolved: | |
Product: | Mac OS X | Product Version: | 10.5.6 / 9G55 |
Classification: | Serious Bug | Reproducible: | Always |
Summary: When an AMWorkflow is run by sending an AMWorkflowController a run: message, sending the AMWorkflowController a -stop: message does not stop the AMWorkflow from completing. Steps to Reproduce: Sample project at http://vgable.com/code/AutomatorTestProject.zip 1) in Automator create a workflow, "test.workflow" that has a 10-second pause, then displays a dialog or does something else noticeable. 2) Create an AMWorkflowController, that controls test.workflow. 3) Send the AMWorkflowController a -run: message to start executing test.workflow 4) Before the pause in test.workflow completes, send the AMWorkflowController a -stop: message 5) Note that test.workflow completes it's final action. Expected Results: -[AMWorkflowController stop:] should immediately stop the workflow from running. Any actions after the pause should not be executed. Actual Results: -[AMWorkflowController stop:] did not stop the workflow from running. Actions after the pause should were executed. Regression: Unknown Notes: Sample project at http://vgable.com/code/AutomatorTestProject.zip
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!
A partial workaround
http://vgable.com/blog/2009/01/12/stopping-an-amworkflow-workaround/