Package org.compiere.process
Class ProcessInfo
java.lang.Object
org.compiere.process.ProcessInfo
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
WProcessInfo
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:
-
Constructor Summary
ConstructorDescriptionProcessInfo
(String Title, int AD_Process_ID) ConstructorProcessInfo
(String Title, int AD_Process_ID, int Table_ID, int Record_ID) ConstructorProcessInfo
(String Title, int AD_Process_ID, int Table_ID, int Record_ID, String Record_UU) Constructor -
Method Summary
Modifier and TypeMethodDescriptionvoid
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 addSummaryMethod getAD_Client_IDint
int
Method getAD_PInstance_IDint
Method getAD_Process_IDint
Method getAD_User_IDMethod getClassNameint
Method getEstSecondsGet Export FileGet Export File Extensionint[]
getIDs()
Method getIDsMethod getJsonDataint
Get ASCII Log InfogetLogInfo
(boolean html) Set Log of Process.Method getLogListgetLogs()
Method getLogsGet ParameterGet PDF file generate to Jasper ReportgetPO()
int
Method getRecord_IDMethod getRecord_UUint
Method getSerializableObjectGet Show HelpMethod getSummaryint
Method getTable_IDgetTitle()
Method getTitleGet transaction name for this processMethod getTransientObjectboolean
isBatch()
Batch - i.e.boolean
boolean
isError()
Method isErrorboolean
isExport()
Is this a export or print process?boolean
boolean
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
Determines, if current tab content should be replaced, or a new tab should be openedboolean
Is this a reporting process ?boolean
boolean
Timeout - i.e process did not completesaveLog
(ProcessInfoLog logEntry) Save Log to DB immediatelysaveProgress
(int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg) Save Progress Log to DB immediatelysaveStatus
(int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg) Save Status Log to DB immediatelyvoid
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_Scheduler_ID
(int AD_Scheduler_ID) 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
setIsCloudStorage
(boolean isCloudStorage) void
setIsSummary
(boolean isSummary) void
setIsTimeout
(boolean timeout) Timeoutvoid
setJsonData
(String jsonData) Set JsonDatavoid
setLanguageID
(int languageID) void
setLogList
(ArrayList<ProcessInfoLog> logs) Method setLogListvoid
setNotifyRecipients
(boolean isNotifyRecipients) void
setParameter
(ProcessInfoParameter[] parameter) Set Parametervoid
setPDFFileName
(String fileName) void
setPDFReport
(File f) Set PDF file generate to Jasper Reportvoid
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
setRecord_UU
(String Record_UU) Method setRecord_UUvoid
setRecord_UUs
(List<String> Record_UUs) void
Sets, if current tab content should be replaced, or a new tab should be openedvoid
setReportingProcess
(boolean f) Set is this a reporting processvoid
setReportType
(String reportType) void
setRowCount
(int rowCount) void
setSerializableObject
(Serializable SerializableObject) Method setSerializableObjectvoid
setShowHelp
(String showHelp) Set Show Helpvoid
setSummary
(String summary) Set Summaryvoid
setSummary
(String translatedSummary, boolean error) Method setSummaryvoid
setTable_ID
(int AD_Table_ID) Method setTable_IDvoid
Method setTitlevoid
setTransactionName
(String trxName) Set transaction name from this processvoid
setTransientObject
(Object TransientObject) Method setTransientObjecttoString()
String representationboolean
updateLog
(ProcessInfoLog logEntry) Update existing Log immediatelyboolean
updateProgress
(String pInstanceLogUU, int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg) Update Progress Log to DB immediately
-
Constructor Details
-
ProcessInfo
Constructor- Parameters:
Title
- TitleAD_Process_ID
- AD_Process_IDTable_ID
- AD_Table_IDRecord_ID
- Record_ID
-
ProcessInfo
Constructor- Parameters:
Title
- TitleAD_Process_ID
- AD_Process_IDTable_ID
- AD_Table_IDRecord_ID
- Record IDRecord_UU
- Record UUID
-
ProcessInfo
Constructor- Parameters:
Title
- TitleAD_Process_ID
- AD_Process_ID
-
-
Method Details
-
getLanguageID
public int getLanguageID() -
setLanguageID
public void setLanguageID(int languageID) -
getReportType
-
setReportType
-
setIsSummary
public void setIsSummary(boolean isSummary) -
isSummary
public boolean isSummary() -
setShowHelp
Set Show Help- Parameters:
showHelp
-
-
getShowHelp
Get Show Help- Returns:
- String
-
toString
String representation -
setJsonData
Set JsonData- Parameters:
jsonData
- jsonData (valid json string)
-
getJsonData
Method getJsonData- Returns:
- String
-
setSummary
Set Summary- Parameters:
summary
- summary (will be translated)
-
getSummary
Method getSummary- Returns:
- String
-
setSummary
Method setSummary- Parameters:
translatedSummary
- Stringerror
- boolean
-
addSummary
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
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
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
Method getClassName- Returns:
- String or null
-
setClassName
Method setClassName- Parameters:
ClassName
- String
-
getTransientObject
Method getTransientObject- Returns:
- Object
-
setTransientObject
Method setTransientObject- Parameters:
TransientObject
- Object
-
getSerializableObject
Method getSerializableObject- Returns:
- Serializable
-
setSerializableObject
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
-
getRecord_UU
Method getRecord_UU- Returns:
- String
-
setRecord_UU
Method setRecord_UU- Parameters:
Record_UU
- int
-
getTitle
Method getTitle- Returns:
- String
-
setTitle
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
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
Method getAD_User_ID- Returns:
- Integer
-
getParameter
Get Parameter- Returns:
- Parameter Array
-
setParameter
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
Add to Log- Parameters:
Log_ID
- Log IDP_ID
- Process IDP_Date
- Process DateP_Number
- Process NumberP_Msg
- Process Message
-
addLog
Add to Log- Parameters:
P_ID
- Process IDP_Date
- Process DateP_Number
- Process NumberP_Msg
- Process Message
-
addLog
Add to Log- Parameters:
logEntry
- log entry
-
getLogs
Method getLogs- Returns:
- ProcessInfoLog[]
-
saveStatus
Save Status Log to DB immediately- Parameters:
P_ID
- Process IDP_Date
- Process DateP_Number
- Process NumberP_Msg
- Process Message- Returns:
- String AD_PInstance_Log_UU
-
saveProgress
Save Progress Log to DB immediately- Parameters:
P_ID
- Process IDP_Date
- Process DateP_Number
- Process NumberP_Msg
- Process Message- Returns:
- String AD_PInstance_Log_UU
-
saveLog
Save Log to DB immediately- Parameters:
logEntry
- log entry- Returns:
- String AD_PInstance_Log_UU
-
updateProgress
public boolean updateProgress(String pInstanceLogUU, int P_ID, Timestamp P_Date, BigDecimal P_Number, String P_Msg) Update Progress Log to DB immediately- Parameters:
pInstanceLogUU
- AD_PInstance_Log_UUP_ID
- Process IDP_Date
- Process DateP_Number
- Process NumberP_Msg
- Process Message- Returns:
- true if log is successfully updated
-
updateLog
Update existing Log immediately- Parameters:
logEntry
- log entry- Returns:
- true if log is successfully updated
-
getIDs
public int[] getIDs()Method getIDs- Returns:
- int[]
-
getLogList
Method getLogList- Returns:
- ArrayList
-
setLogList
Method setLogList- Parameters:
logs
- ArrayList
-
getTransactionName
Get transaction name for this process- Returns:
- String
-
getAD_Process_UU
-
setAD_Process_UU
-
setTransactionName
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
Set PDF file generate to Jasper Report- Parameters:
f
- PDF 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
Get Export File Extension -
setExportFileExtension
Set Export File Extension- Parameters:
exportFileExtension
-
-
getExportFile
Get Export File- Returns:
-
setExportFile
Set Export File- Parameters:
exportFile
-
-
getRecord_IDs
-
setRecord_IDs
-
getRecord_UUs
-
setRecord_UUs
-
setRowCount
public void setRowCount(int rowCount) -
getRowCount
public int getRowCount() -
setPO
-
getPO
-
getPDFFileName
-
setPDFFileName
-
isProcessRunning
Validates to inform a user running again a process that is already in execution.- Returns:
- true if the same process is already running
-
setProcessUI
-
getProcessUI
-
isReplaceTabContent
public boolean isReplaceTabContent()Determines, if current tab content should be replaced, or a new tab should be opened- Returns:
- true, if current tab content should be replaced
-
setReplaceTabContent
public void setReplaceTabContent()Sets, if current tab content should be replaced, or a new tab should be opened -
getAD_Scheduler_ID
public int getAD_Scheduler_ID()- Returns:
- AD_Scheduler_ID or 0 if not running from scheduler
-
setAD_Scheduler_ID
public void setAD_Scheduler_ID(int AD_Scheduler_ID) - Parameters:
AD_Scheduler_ID
-
-
isNotifyRecipients
public boolean isNotifyRecipients()- Returns:
- true if scheduler should notify scheduler recipients with process execution result
-
setNotifyRecipients
public void setNotifyRecipients(boolean isNotifyRecipients) - Parameters:
isNotifyRecipients
- if true, scheduler should notify scheduler recipients with process execution result
-
isCloudStorage
public boolean isCloudStorage() -
setIsCloudStorage
public void setIsCloudStorage(boolean isCloudStorage)
-