Date Posted:
Product: TIBCO Spotfire®
Product: TIBCO Spotfire®
Problem:
Display custom message when user cancels an Custom Automation Service task
Solution:
When running an Automation Job locally, 'Execute Locally' uses the TIBCO Spotfire installed client’s internal progress framework to execute jobs. This allows for better progress of the execution and the ability to cancel/abort the job execution.
To do this, use ProgressCanceledException to provide a custom message when a user cancels the job.
For example:
try { if (valid condition not met) { return new TaskExecutionStatus(false); } catch (Spotfire.Dxp.Framework.ApplicationModel.ProgressCanceledException ex) { return new TaskExecutionStatus(false,"The job execution was cancelled by the user."); }Documentation:
Comments
0 comments
Article is closed for comments.