Package com.nomagic.magicdraw.job
Interface Job
@OpenApiAll
public interface Job
An interface for performing some work in the application.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
execute
(ProgressStatus progressStatus) Executes the work.void
finished()
Cleanup should be done here after the job is finished.getName()
Human-readable name of the job to display to the user in GUI.boolean
Indicates if the job needs to be executed.
-
Method Details
-
needsExecute
boolean needsExecute()Indicates if the job needs to be executed. Environment or project/model conditions could be checked here.- Returns:
- true if job needs to be executed, false otherwise.
-
execute
Executes the work.- Parameters:
progressStatus
- progress status to indicate work pace.- Throws:
Exception
- if any error occurs
-
finished
void finished()Cleanup should be done here after the job is finished. -
getName
String getName()Human-readable name of the job to display to the user in GUI.- Returns:
- name of the job.
-