BookmarkSubscribeRSS Feed
David_Burnham

Super User

Joined:

Jul 13, 2011

Activity Status Class

This class can be used to display an activity status window.  It is designed to show progress when stepping through a sequence of time consuming steps:

 

activity_status.gif

 

 

Example Usage:

// reference to the ActivityStatusClass
include("ActivityStatusClass.jsl");
// list of notification messages for each activity
lst = {
	"Linear Kinetic Model",			
	"Accelerating Kinetic Model",	
	"Decelerating Kinetic Model",	
	"Power Kinetic Model"			
	};
// create an activity status object
status = newObject(ActivityStatusClass(lst));
// do activity 1 ...
status:start();
wait(2);
// do task 2
status:startNextTask();
wait(2);
// do task 3
status:startNextTask();
wait(2);
// do task 4
status:startNextTask();
Wait(2);
// finish the activity status (closes the window) and delete the object
status:finish();
status << delete;

The 'Waits' in this example are simply placeholders where you would perform real tasks within your script.

 

See alsohttp://www.pega-analytics.co.uk/blog/activity-status-class/

 

Note: classes are new to version 14 of JMP.

 

 

Article Tags
Contributors