Package org.compiere.process
Class ProcessInfo
- java.lang.Object
-
- org.compiere.process.ProcessInfo
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
WProcessInfo
public class ProcessInfo extends Object implements Serializable
Process Information (Value Object)- Version:
- $Id: ProcessInfo.java,v 1.2 2006/07/30 00:54:44 jjanke Exp $
- Author:
- Jorg Janke, victor.perez@e-evolution.com see FR 1906632 https://sourceforge.net/p/adempiere/feature-requests/382/
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ProcessInfo(String Title, int AD_Process_ID)
ConstructorProcessInfo(String Title, int AD_Process_ID, int Table_ID, int Record_ID)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLog(int Log_ID, int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg)
Add to Logvoid
addLog(int Log_ID, int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg, int tableId, int recordId)
void
addLog(int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg)
Add to Logvoid
addLog(int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg, int tableId, int recordId)
void
addLog(ProcessInfoLog logEntry)
Add to Logvoid
addSummary(String additionalSummary)
Method addSummaryInteger
getAD_Client_ID()
Method getAD_Client_IDint
getAD_InfoWindow_ID()
int
getAD_PInstance_ID()
Method getAD_PInstance_IDint
getAD_Process_ID()
Method getAD_Process_IDString
getAD_Process_UU()
Integer
getAD_User_ID()
Method getAD_User_IDString
getClassName()
Method getClassNameint
getEstSeconds()
Method getEstSecondsFile
getExportFile()
Get Export FileString
getExportFileExtension()
Get Export File Extensionint[]
getIDs()
Method getIDsint
getLanguageID()
String
getLogInfo()
Get ASCII Log InfoString
getLogInfo(boolean html)
Set Log of Process.ArrayList<ProcessInfoLog>
getLogList()
Method getLogListProcessInfoLog[]
getLogs()
Method getLogsProcessInfoParameter[]
getParameter()
Get ParameterString
getPDFFileName()
File
getPDFReport()
Get PDF file generate to Jasper ReportPO
getPO()
IProcessUI
getProcessUI()
int
getRecord_ID()
Method getRecord_IDList<Integer>
getRecord_IDs()
String
getReportType()
int
getRowCount()
Serializable
getSerializableObject()
Method getSerializableObjectString
getSummary()
Method getSummaryint
getTable_ID()
Method getTable_IDString
getTitle()
Method getTitleString
getTransactionName()
Get transaction name for this processObject
getTransientObject()
Method getTransientObjectboolean
isBatch()
Batch - i.e.boolean
isError()
Method isErrorboolean
isExport()
Is this a export or print process?boolean
isPrintPreview()
Is print preview instead of direct print ?boolean
isProcessRunning(MPInstancePara[] params)
Validates to inform a user running again a process that is already in execution.boolean
isReportingProcess()
Is this a reporting process ?boolean
isSummary()
boolean
isTimeout()
Timeout - i.e process did not completevoid
setAD_Client_ID(int AD_Client_ID)
Method setAD_Client_IDvoid
setAD_InfoWindow_ID(int infoWindowID)
void
setAD_PInstance_ID(int AD_PInstance_ID)
Method setAD_PInstance_IDvoid
setAD_Process_ID(int AD_Process_ID)
Method setAD_Process_IDvoid
setAD_Process_UU(String AD_Process_UU)
void
setAD_User_ID(int AD_User_ID)
Method setAD_User_IDvoid
setClassName(String ClassName)
Method setClassNamevoid
setError(boolean error)
Method setErrorvoid
setEstSeconds(int EstSeconds)
Method setEstSecondsvoid
setExport(boolean export)
Set Exportvoid
setExportFile(File exportFile)
Set Export Filevoid
setExportFileExtension(String exportFileExtension)
Set Export File Extensionvoid
setIsBatch(boolean batch)
Batchvoid
setIsSummary(boolean isSummary)
void
setIsTimeout(boolean timeout)
Timeoutvoid
setLanguageID(int languageID)
void
setLogList(ArrayList<ProcessInfoLog> logs)
Method setLogListvoid
setParameter(ProcessInfoParameter[] parameter)
Set Parametervoid
setPDFFileName(String fileName)
void
setPDFReport(File f)
Set PDF file generate to Jasper Reportvoid
setPO(PO po)
void
setPrintPreview(boolean b)
Set print preview flag, only relevant if this is a reporting processvoid
setProcessUI(IProcessUI processUI)
void
setRecord_ID(int Record_ID)
Method setRecord_IDvoid
setRecord_IDs(List<Integer> Record_IDs)
void
setReportingProcess(boolean f)
Set is this a reporting processvoid
setReportType(String reportType)
void
setRowCount(int rowCount)
void
setSerializableObject(Serializable SerializableObject)
Method setSerializableObjectvoid
setSummary(String summary)
Set Summaryvoid
setSummary(String translatedSummary, boolean error)
Method setSummaryvoid
setTable_ID(int AD_Table_ID)
Method setTable_IDvoid
setTitle(String Title)
Method setTitlevoid
setTransactionName(String trxName)
Set transaction name from this processvoid
setTransientObject(Object TransientObject)
Method setTransientObjectString
toString()
String representation
-
-
-
Constructor Detail
-
ProcessInfo
public ProcessInfo(String Title, int AD_Process_ID, int Table_ID, int Record_ID)
Constructor- Parameters:
Title
- TitleAD_Process_ID
- AD_Process_IDTable_ID
- AD_Table_IDRecord_ID
- Record_ID
-
ProcessInfo
public ProcessInfo(String Title, int AD_Process_ID)
Constructor- Parameters:
Title
- TitleAD_Process_ID
- AD_Process_ID
-
-
Method Detail
-
getLanguageID
public int getLanguageID()
-
setLanguageID
public void setLanguageID(int languageID)
-
getReportType
public String getReportType()
-
setReportType
public void setReportType(String reportType)
-
setIsSummary
public void setIsSummary(boolean isSummary)
-
isSummary
public boolean isSummary()
-
toString
public String toString()
String representation
-
setSummary
public void setSummary(String summary)
Set Summary- Parameters:
summary
- summary (will be translated)
-
getSummary
public String getSummary()
Method getSummary- Returns:
- String
-
setSummary
public void setSummary(String translatedSummary, boolean error)
Method setSummary- Parameters:
translatedSummary
- Stringerror
- boolean
-
addSummary
public void addSummary(String additionalSummary)
Method addSummary- Parameters:
additionalSummary
- String
-
setError
public void setError(boolean error)
Method setError- Parameters:
error
- boolean
-
isError
public boolean isError()
Method isError- Returns:
- boolean
-
setIsBatch
public void setIsBatch(boolean batch)
Batch- Parameters:
batch
- true if batch processing
-
isBatch
public boolean isBatch()
Batch - i.e. UI not blocked- Returns:
- boolean
-
setIsTimeout
public void setIsTimeout(boolean timeout)
Timeout- Parameters:
timeout
- true still running
-
isTimeout
public boolean isTimeout()
Timeout - i.e process did not complete- Returns:
- boolean
-
getLogInfo
public String getLogInfo(boolean html)
Set Log of Process.- Translated Process Message - List of log entries Date - Number - Msg
- Parameters:
html
- if true with HTML markup- Returns:
- Log Info
-
getLogInfo
public String getLogInfo()
Get ASCII Log Info- Returns:
- Log Info
-
getAD_PInstance_ID
public int getAD_PInstance_ID()
Method getAD_PInstance_ID- Returns:
- int
-
setAD_PInstance_ID
public void setAD_PInstance_ID(int AD_PInstance_ID)
Method setAD_PInstance_ID- Parameters:
AD_PInstance_ID
- int
-
getAD_InfoWindow_ID
public int getAD_InfoWindow_ID()
- Returns:
- int
-
setAD_InfoWindow_ID
public void setAD_InfoWindow_ID(int infoWindowID)
- Parameters:
infoWindowID
- int
-
getAD_Process_ID
public int getAD_Process_ID()
Method getAD_Process_ID- Returns:
- int
-
setAD_Process_ID
public void setAD_Process_ID(int AD_Process_ID)
Method setAD_Process_ID- Parameters:
AD_Process_ID
- int
-
getClassName
public String getClassName()
Method getClassName- Returns:
- String or null
-
setClassName
public void setClassName(String ClassName)
Method setClassName- Parameters:
ClassName
- String
-
getTransientObject
public Object getTransientObject()
Method getTransientObject- Returns:
- Object
-
setTransientObject
public void setTransientObject(Object TransientObject)
Method setTransientObject- Parameters:
TransientObject
- Object
-
getSerializableObject
public Serializable getSerializableObject()
Method getSerializableObject- Returns:
- Serializable
-
setSerializableObject
public void setSerializableObject(Serializable SerializableObject)
Method setSerializableObject- Parameters:
SerializableObject
- Serializable
-
getEstSeconds
public int getEstSeconds()
Method getEstSeconds- Returns:
- int
-
setEstSeconds
public void setEstSeconds(int EstSeconds)
Method setEstSeconds- Parameters:
EstSeconds
- int
-
getTable_ID
public int getTable_ID()
Method getTable_ID- Returns:
- int
-
setTable_ID
public void setTable_ID(int AD_Table_ID)
Method setTable_ID- Parameters:
AD_Table_ID
- int
-
getRecord_ID
public int getRecord_ID()
Method getRecord_ID- Returns:
- int
-
setRecord_ID
public void setRecord_ID(int Record_ID)
Method setRecord_ID- Parameters:
Record_ID
- int
-
getTitle
public String getTitle()
Method getTitle- Returns:
- String
-
setTitle
public void setTitle(String Title)
Method setTitle- Parameters:
Title
- String
-
setAD_Client_ID
public void setAD_Client_ID(int AD_Client_ID)
Method setAD_Client_ID- Parameters:
AD_Client_ID
- int
-
getAD_Client_ID
public Integer getAD_Client_ID()
Method getAD_Client_ID- Returns:
- Integer
-
setAD_User_ID
public void setAD_User_ID(int AD_User_ID)
Method setAD_User_ID- Parameters:
AD_User_ID
- int
-
getAD_User_ID
public Integer getAD_User_ID()
Method getAD_User_ID- Returns:
- Integer
-
getParameter
public ProcessInfoParameter[] getParameter()
Get Parameter- Returns:
- Parameter Array
-
setParameter
public void setParameter(ProcessInfoParameter[] parameter)
Set Parameter- Parameters:
parameter
- Parameter Array
-
addLog
public void addLog(int Log_ID, int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg, int tableId, int recordId)
-
addLog
public void addLog(int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg, int tableId, int recordId)
-
addLog
public void addLog(int Log_ID, int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg)
Add to Log- Parameters:
Log_ID
- Log IDP_ID
- Process IDP_Date
- Process DateP_Number
- Process NumberP_Msg
- Process Message
-
addLog
public void addLog(int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg)
Add to Log- Parameters:
P_ID
- Process IDP_Date
- Process DateP_Number
- Process NumberP_Msg
- Process Message
-
addLog
public void addLog(ProcessInfoLog logEntry)
Add to Log- Parameters:
logEntry
- log entry
-
getLogs
public ProcessInfoLog[] getLogs()
Method getLogs- Returns:
- ProcessInfoLog[]
-
getIDs
public int[] getIDs()
Method getIDs- Returns:
- int[]
-
getLogList
public ArrayList<ProcessInfoLog> getLogList()
Method getLogList- Returns:
- ArrayList
-
setLogList
public void setLogList(ArrayList<ProcessInfoLog> logs)
Method setLogList- Parameters:
logs
- ArrayList
-
getTransactionName
public String getTransactionName()
Get transaction name for this process- Returns:
- String
-
getAD_Process_UU
public String getAD_Process_UU()
-
setAD_Process_UU
public void setAD_Process_UU(String AD_Process_UU)
-
setTransactionName
public void setTransactionName(String trxName)
Set transaction name from this process- Parameters:
trxName
-
-
setPrintPreview
public void setPrintPreview(boolean b)
Set print preview flag, only relevant if this is a reporting process- Parameters:
b
-
-
isPrintPreview
public boolean isPrintPreview()
Is print preview instead of direct print ? Only relevant if this is a reporting process- Returns:
- boolean
-
isReportingProcess
public boolean isReportingProcess()
Is this a reporting process ?- Returns:
- boolean
-
setReportingProcess
public void setReportingProcess(boolean f)
Set is this a reporting process- Parameters:
f
-
-
setPDFReport
public void setPDFReport(File f)
Set PDF file generate to Jasper Report- Parameters:
f
- PDF File
-
getPDFReport
public File getPDFReport()
Get PDF file generate to Jasper Report
-
isExport
public boolean isExport()
Is this a export or print process?- Returns:
-
setExport
public void setExport(boolean export)
Set Export- Parameters:
export
-
-
getExportFileExtension
public String getExportFileExtension()
Get Export File Extension
-
setExportFileExtension
public void setExportFileExtension(String exportFileExtension)
Set Export File Extension- Parameters:
exportFileExtension
-
-
getExportFile
public File getExportFile()
Get Export File- Returns:
-
setExportFile
public void setExportFile(File exportFile)
Set Export File- Parameters:
exportFile
-
-
setRowCount
public void setRowCount(int rowCount)
-
getRowCount
public int getRowCount()
-
setPO
public void setPO(PO po)
-
getPO
public PO getPO()
-
getPDFFileName
public String getPDFFileName()
-
setPDFFileName
public void setPDFFileName(String fileName)
-
isProcessRunning
public boolean isProcessRunning(MPInstancePara[] params)
Validates to inform a user running again a process that is already in execution.- Returns:
- true if the same process is already running
-
setProcessUI
public void setProcessUI(IProcessUI processUI)
-
getProcessUI
public IProcessUI getProcessUI()
-
-