Class MWE2WorkflowComponentBridge<T extends IWorkflowComponent>

java.lang.Object
de.uka.ipd.sdq.workflow.mdsd.xtext.MWE2WorkflowComponentBridge<T>
Type Parameters:
T - the generic type
All Implemented Interfaces:
IJob, IPrePostJob
Direct Known Subclasses:
MWE2BlackboardWorkflowComponentBridge

public class MWE2WorkflowComponentBridge<T extends IWorkflowComponent> extends Object implements IPrePostJob
A bridge allowing the simple execution of MWE2 IWorkflowComponents used in XText projects.
  • Field Details

  • Constructor Details

    • MWE2WorkflowComponentBridge

      public MWE2WorkflowComponentBridge(T job, IWorkflowContext ctx, String name)
      Constructor of the oAW bridge.
      Parameters:
      job - The oAW job to wrap for execution in the Palladio workflow engine
      ctx - the ctx
      name - the name
  • Method Details

    • preExecute

      public void preExecute()
      Description copied from interface: IPrePostJob
      Executed prior execute().
      Specified by:
      preExecute in interface IPrePostJob
    • postExecute

      public void postExecute()
      Description copied from interface: IPrePostJob
      Executed after execute().
      Specified by:
      postExecute in interface IPrePostJob
    • execute

      public void execute(IProgressMonitor monitor) throws JobFailedException, UserCanceledException
      Description copied from interface: IJob
      Execute the job. In case of an error throw an exception with a meaningful name which can be understood by a user.
      Specified by:
      execute in interface IJob
      Parameters:
      monitor - the monitor
      Throws:
      JobFailedException - the job failed
      UserCanceledException - the user has chosen to abort the job
    • getName

      public String getName()
      Description copied from interface: IJob
      Supply a name of this job. This could be used for a progress monitor.
      Specified by:
      getName in interface IJob
      Returns:
      the name of the job
    • cleanup

      public void cleanup(IProgressMonitor monitor) throws CleanupFailedException
      Description copied from interface: IJob
      Clean up all temporary side effects of this job. This method will always be called after executing this job to remove automatically created files and to leave the environment in a state in which the whole workflow run can be started again with the same results (i.e. in which executed can be called again). Usually, cleanup is called after the whole workflow is completed to allow other jobs to use intermediate results. In some cases, cleanup can be called earlier. However, in those cases, later jobs might not be able to access the intermediate data anymore.
      Specified by:
      cleanup in interface IJob
      Parameters:
      monitor - the monitor
      Throws:
      CleanupFailedException - Thrown if a critical error occurred during clean up so that the whole workflow should abort cleaning up further jobs.