Class TaskAntsAppointmentHistory
java.lang.Object
fr.paris.lutece.plugins.workflow.modules.appointmentants.business.history.TaskAntsAppointmentHistory
Class that represents the history of a specific / unique ANTS Workflow task.
Used to save the result returned by the task.
-
Constructor Summary
ConstructorsConstructorDescriptionStandard constructorTaskAntsAppointmentHistory(int idResourceHistory, int idTask, boolean taskSuccessState, String antsApplicationNumbers) Construct a TaskAntsAppointmentHistory object with specific parameters -
Method Summary
Modifier and TypeMethodDescriptionGet the ANTS application numbers used in this taskintGet the task's resource history IDintGet the task's IDbooleanGet the task's success resultvoidsetAntsApplicationNumbers(String antsApplicationNumbers) Set the value of the ANTS application numbersvoidsetIdResourceHistory(int idResourceHistory) Set the task's resource history's IDvoidsetIdTask(int idTask) Set the task's IDvoidsetTaskSuccessState(boolean taskSuccessState) Set the task's success result: true = successful, false = failed
-
Constructor Details
-
TaskAntsAppointmentHistory
public TaskAntsAppointmentHistory()Standard constructor -
TaskAntsAppointmentHistory
public TaskAntsAppointmentHistory(int idResourceHistory, int idTask, boolean taskSuccessState, String antsApplicationNumbers) Construct a TaskAntsAppointmentHistory object with specific parameters- Parameters:
idResourceHistory- Task's resource history IDidTask- Task's IDtaskSuccessState- Task's success state: true = successful, false = failedantsApplicationNumbers- ANTS application numbers as a String
-
-
Method Details
-
getIdTask
public int getIdTask()Get the task's ID- Returns:
- The task's ID
-
setIdTask
public void setIdTask(int idTask) Set the task's ID- Parameters:
idTask- Task's ID
-
getIdResourceHistory
public int getIdResourceHistory()Get the task's resource history ID- Returns:
- The resource history's ID
-
setIdResourceHistory
public void setIdResourceHistory(int idResourceHistory) Set the task's resource history's ID- Parameters:
idResourceHistory- Resource history's ID
-
isTaskSuccessful
public boolean isTaskSuccessful()Get the task's success result- Returns:
- The task's success result: true = successful, false = failed
-
setTaskSuccessState
public void setTaskSuccessState(boolean taskSuccessState) Set the task's success result: true = successful, false = failed- Parameters:
taskSuccessState- The task's success result
-
getAntsApplicationNumbers
Get the ANTS application numbers used in this task- Returns:
- a String containing the application numbers' value
-
setAntsApplicationNumbers
Set the value of the ANTS application numbers- Parameters:
antsApplicationNumbers- ANTS application numbers as a String
-