Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Description

  • org.joget.report.service.ReportManager
  • Under wflow-core module
  • Service methods used to collect data for reporting purpose

Code Sample

Code Block
languagejava
import java.util.Collection;
import org.joget.apps.app.service.AppUtil;
import org.joget.report.model.ReportRow;
import org.joget.report.service.ReportManager;
 
ReportManager reportManager = (ReportManager) AppUtil.getApplicationContext().getBean("reportManager");
 
//get sla report for process instances of CRM app
Collection<ReportRow> processSla = reportManager.getWorkflowProcessSlaReport("crm", null, null, null, null, null); 

Methods

getReportAppList
public java.util.Collection<org.joget.report.model.ReportApp> getReportAppList(java.lang.String sort, java.lang.Boolean desc, java.lang.Integer start, java.lang.Integer rows)

Retrieves list of all app from report table

getReportApp
public org.joget.report.model.ReportApp getReportApp(java.lang.String appId, java.lang.String appVersion, java.lang.String appName)

Gets an app data from report table

getReportAppListSize
public long getReportAppListSize()

Retrieves the number of app from report table

getReportWorkflowActivity
public org.joget.report.model.ReportWorkflowActivity getReportWorkflowActivity(ReportWorkflowProcess reportWorkflowProcess, java.lang.String activityDefId, java.lang.String activityName)

Gets activity data from report table

getReportWorkflowActivityInstance
public org.joget.report.model.ReportWorkflowActivityInstance getReportWorkflowActivityInstance(java.lang.String activityInstanceId)

Gets activity instance data from report table

getReportWorkflowActivityInstanceList
public java.util.Collection<org.joget.report.model.ReportWorkflowActivityInstance> getReportWorkflowActivityInstanceList(java.lang.String appId, java.lang.String appVersion, java.lang.String processDefId, java.lang.String activityDefId, java.lang.String sort, java.lang.Boolean desc, java.lang.Integer start, java.lang.Integer rows)

Retrieves list of activity instances from report table

getReportWorkflowActivityInstanceListSize
public long getReportWorkflowActivityInstanceListSize(java.lang.String appId, java.lang.String appVersion, java.lang.String processDefId, java.lang.String activityDefId) 

Retrieves the number of activity instances from report table

getReportWorkflowActivityList
public java.util.Collection<org.joget.report.model.ReportWorkflowActivity> getReportWorkflowActivityList(java.lang.String appId, java.lang.String appVersion, java.lang.String processDefId, java.lang.String sort, java.lang.Boolean desc, java.lang.Integer start, java.lang.Integer rows)

Retrieves list of activities from report table

getReportWorkflowActivityListSize
public long getReportWorkflowActivityListSize(java.lang.String appId, java.lang.String appVersion, java.lang.String processDefId)

Retrieves the number of activities from report table

getReportWorkflowPackage
public org.joget.report.model.ReportWorkflowPackage getReportWorkflowPackage(ReportApp reportApp, java.lang.String packageId, java.lang.String packageVersion, java.lang.String packageName)

Gets workflow package data from report table

getReportWorkflowProcess
public org.joget.report.model.ReportWorkflowProcess getReportWorkflowProcess(ReportWorkflowPackage reportWorkflowPackage, java.lang.String processDefId, java.lang.String processName)

Gets process data from report table

getReportWorkflowProcessInstance
public org.joget.report.model.ReportWorkflowProcessInstance getReportWorkflowProcessInstance(java.lang.String processInstanceId)

Gets process instance data from report table

getReportWorkflowProcessInstanceList
public java.util.Collection<org.joget.report.model.ReportWorkflowProcessInstance> getReportWorkflowProcessInstanceList(java.lang.String appId, java.lang.String appVersion, java.lang.String processDefId, java.lang.String sort, java.lang.Boolean desc, java.lang.Integer start, java.lang.Integer rows)

Retrieves list of process instances from report table

getReportWorkflowProcessInstanceListSize
public long getReportWorkflowProcessInstanceListSize(java.lang.String appId, java.lang.String appVersion, java.lang.String processDefId)

Retrieves the number of process instances from report table

getReportWorkflowProcessList
public java.util.Collection<org.joget.report.model.ReportWorkflowProcess> getReportWorkflowProcessList(java.lang.String appId, java.lang.String appVersion, java.lang.String sort, java.lang.Boolean desc, java.lang.Integer start, java.lang.Integer rows)

Retrieves list of processes from report table

getReportWorkflowProcessListSize
public long getReportWorkflowProcessListSize(java.lang.String appId, java.lang.String appVersion) 

Retrieves the number of processes from report table

getWorkflowActivitySlaReport
public java.util.Collection<org.joget.report.model.ReportRow> getWorkflowActivitySlaReport(java.lang.String appId, java.lang.String appVersion, java.lang.String processDefId, java.lang.String sort, java.lang.Boolean desc, java.lang.Integer start, java.lang.Integer rows)

Retrieves an activity SLA report 

getWorkflowProcessSlaReport
public java.util.Collection<org.joget.report.model.ReportRow> getWorkflowProcessSlaReport(java.lang.String appId, java.lang.String appVersion, java.lang.String sort, java.lang.Boolean desc, java.lang.Integer start, java.lang.Integer rows) 

Retrieves a process SLA report 

saveReportWorkflowActivityInstance
public java.lang.Boolean saveReportWorkflowActivityInstance(ReportWorkflowActivityInstance workflowActivityInstance)

Save an activity instance data to report table 

saveReportWorkflowProcessInstance
public java.lang.Boolean saveReportWorkflowProcessInstance(ReportWorkflowProcessInstance workflowProcessInstance)

Save a process instance data to report table