Class Diagram and APIProgress bar is a transient property of GenericBOModel. It is supposed to be initialized by workflow script and it will not be saved to DB (i.e. within persistent workflows).
Progress bar is used to visualize information stored on object and on its surrounding objects. Transformation of information from object (e.g. from several status attributes and attributes of related object) is done by a workflow script. On this account, the progress bar is customizable via the rich client only (not on the web client), too. In the example below, the progress bar for a scenario of an object life-cycle is defined just before the object is displayed in a view. Script Create the pbTicketProcessing Progress Bar: pb = dlgWizard.createProgressBar("pbTicketProcessing") Translations are defined in bundle "progressBars/Tasks" Define Tasks for the pbTicketProcessing Progress Bar: pb.addTask("analyse", VM.PB_TASK_ACTIVE) Force the progress bar to be refreshed on GUI: pb.updateGUI() Change the states of tasks analyze and approve: pb.getTask("analyse").setState(VM.PB_TASK_DONE) Update the GUI: dlgWizard.progressBar.updateGUI() API Publish in API only minimal set of methods of core Progressbar object. Task get/setState(int sState) setNameTranslationArgs(String[] anArgs) setTooltipTranslationArgs(String[] anArgs) ProgressBar clear() addTask(String aName, int aState) addTask(String aName, int aState, String[] aNameArgs, String[] aTooltipArgs) removeTask(String aName) ApiBObject createProgressBar(String aName) get/setProgressBar(ProgressBar aProgressBar)
pb = dlgWizard.getProgressBar() # setProgressBar() updates GUI immediately dlgWizard2.setProgressBar(pb) | |||||