All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.almworks.jira.structure.api.process.ProcessInfo Maven / Gradle / Ivy

There is a newer version: 17.25.3
Show newest version
package com.almworks.jira.structure.api.process;

import com.almworks.jira.structure.api.util.I18nText;
import com.atlassian.jira.user.ApplicationUser;
import org.jetbrains.annotations.Nullable;

/**
 * 

ProcessInfo allows communication between process owner and process itself.

* *

If you know processId, you can access its state using {@link ProcessHandleManager#getInfo(Long)} method.

*/ public interface ProcessInfo { /** * @return Actual status of the process. Null if there is no such process */ @Nullable ProcessStatus getStatus(); /** * @return Process display parameters (process name, buttons). Null if there is no such process */ @Nullable ProcessDisplayParameters getParameters(); /** * @param user User key * @return true if state is visible for the user. false if there is no such process */ boolean isVisibleTo(@Nullable ApplicationUser user); /** * @return A short description of the current activity. Null if there is no such process. */ @Nullable I18nText getActivity(); /** * @return Process completion percentage, 0 to 100. -1 if progress is unknown/indeterminate or there is no such process */ int getPercentComplete(); /** * Ask the process to stop. It's up to the process to decide what to do about this request. * No effect if there is no such process. */ void cancel(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy