Interface IBmTask<T>

    • Method Detail

      • getName

        String getName()
        Gets the localized name of the task to be displayed on the UI, logs, etc.
        Returns:
        the name of the task, never null.
      • getId

        Object getId()
        Gets the ID of the task.
        Returns:
        the ID of the task or null.
      • getServiceId

        Object getServiceId()
        Gets the ID of the service executing this task.
        Returns:
        the ID of the service or null.
      • execute

        T execute​(IBmTransaction transaction,
                  org.eclipse.core.runtime.IProgressMonitor progressMonitor)

        The method called by the task executor with an active transaction. The method code must not commit or rollback the transaction.

        If the task is not supposed to return a result, then it may be parameterized with Void and return null.

        Parameters:
        transaction - The active transaction. May not be null.
        progressMonitor - The monitor to indicate the progress. May not be null.
        Returns:
        execution result, may be null.