Skip to content

Commit

Permalink
#10325 Implement missing report
Browse files Browse the repository at this point in the history
  • Loading branch information
cristinamghita committed Dec 18, 2020
1 parent 0dfed0d commit 7ffd30f
Show file tree
Hide file tree
Showing 2 changed files with 240 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,165 @@
-- 2020-12-15T15:34:00.976Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process SET JasperReport='@PREFIX@de/metas/docs/lmanufacturingorder/label_3_segment.jasper',Updated=TO_TIMESTAMP('2020-12-15 17:34:00','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Process_ID=584768
;

-- 2020-12-15T15:35:03.287Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process (AccessLevel,AD_Client_ID,AD_Org_ID,AD_Process_ID,AllowProcessReRun,Classname,CopyFromProcess,Created,CreatedBy,Description,EntityType,IsActive,IsApplySecuritySettings,IsBetaFunctionality,IsDirectPrint,IsNotifyUserAfterExecution,IsOneInstanceOnly,IsReport,IsServerProcess,IsTranslateExcelHeaders,IsUseBPartnerLanguage,JasperReport,LockWaitTimeout,Name,PostgrestResponseFormat,RefreshAllAfterExecution,ShowHelp,Type,Updated,UpdatedBy,Value) VALUES ('3',0,0,584773,'N','de.metas.report.jasper.client.process.JasperReportStarter','N',TO_TIMESTAMP('2020-12-15 17:35:03','YYYY-MM-DD HH24:MI:SS'),100,'Manufacturing order label (jasper)','U','Y','N','Y','Y','N','N','Y','N','Y','Y','@PREFIX@de/metas/docs/lmanufacturingorder/label.jasper',0,'Manufacturing order label ','json','N','N','JasperReportsSQL',TO_TIMESTAMP('2020-12-15 17:35:03','YYYY-MM-DD HH24:MI:SS'),100,'Manufacturing order simple label')
;

-- 2020-12-15T15:35:03.290Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Trl (AD_Language,AD_Process_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_ID=584773 AND NOT EXISTS (SELECT 1 FROM AD_Process_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_ID=t.AD_Process_ID)
;

-- 2020-12-15T15:38:42.924Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,Name,PrintName,Updated,UpdatedBy) VALUES (0,578616,0,TO_TIMESTAMP('2020-12-15 17:38:42','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Print label','Print label',TO_TIMESTAMP('2020-12-15 17:38:42','YYYY-MM-DD HH24:MI:SS'),100)
;

-- 2020-12-15T15:38:42.926Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Element_Trl (AD_Language,AD_Element_ID, CommitWarning,Description,Help,Name,PO_Description,PO_Help,PO_Name,PO_PrintName,PrintName,WEBUI_NameBrowse,WEBUI_NameNew,WEBUI_NameNewBreadcrumb, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Element_ID, t.CommitWarning,t.Description,t.Help,t.Name,t.PO_Description,t.PO_Help,t.PO_Name,t.PO_PrintName,t.PrintName,t.WEBUI_NameBrowse,t.WEBUI_NameNew,t.WEBUI_NameNewBreadcrumb, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Element t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y' OR l.IsBaseLanguage='Y') AND t.AD_Element_ID=578616 AND NOT EXISTS (SELECT 1 FROM AD_Element_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Element_ID=t.AD_Element_ID)
;

-- 2020-12-15T15:39:23.808Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Etikett drucken', PrintName='Etikett drucken',Updated=TO_TIMESTAMP('2020-12-15 17:39:23','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578616 AND AD_Language='de_CH'
;

-- 2020-12-15T15:39:23.874Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578616,'de_CH')
;

-- 2020-12-15T15:39:28.368Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y', Name='Etikett drucken', PrintName='Etikett drucken',Updated=TO_TIMESTAMP('2020-12-15 17:39:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578616 AND AD_Language='de_DE'
;

-- 2020-12-15T15:39:28.369Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578616,'de_DE')
;

-- 2020-12-15T15:39:28.390Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_ad_element_on_ad_element_trl_update(578616,'de_DE')
;

-- 2020-12-15T15:39:28.393Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Column SET ColumnName=NULL, Name='Etikett drucken', Description=NULL, Help=NULL WHERE AD_Element_ID=578616
;

-- 2020-12-15T15:39:28.394Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Process_Para SET ColumnName=NULL, Name='Etikett drucken', Description=NULL, Help=NULL WHERE AD_Element_ID=578616 AND IsCentrallyMaintained='Y'
;

-- 2020-12-15T15:39:28.395Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Field SET Name='Etikett drucken', Description=NULL, Help=NULL WHERE (AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=578616) AND AD_Name_ID IS NULL ) OR (AD_Name_ID = 578616)
;

-- 2020-12-15T15:39:28.411Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_PrintFormatItem pi SET PrintName='Etikett drucken', Name='Etikett drucken' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=578616)
;

-- 2020-12-15T15:39:28.412Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Tab SET Name='Etikett drucken', Description=NULL, Help=NULL, CommitWarning = NULL WHERE AD_Element_ID = 578616
;

-- 2020-12-15T15:39:28.414Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_WINDOW SET Name='Etikett drucken', Description=NULL, Help=NULL WHERE AD_Element_ID = 578616
;

-- 2020-12-15T15:39:28.415Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Menu SET Name = 'Etikett drucken', Description = NULL, WEBUI_NameBrowse = NULL, WEBUI_NameNew = NULL, WEBUI_NameNewBreadcrumb = NULL WHERE AD_Element_ID = 578616
;

-- 2020-12-15T15:39:30.194Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Element_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:39:30','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=578616 AND AD_Language='en_US'
;

-- 2020-12-15T15:39:30.195Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
/* DDL */ select update_TRL_Tables_On_AD_Element_TRL_Update(578616,'en_US')
;

-- 2020-12-15T15:40:03.372Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference (AD_Client_ID,AD_Org_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,IsOrderByValue,Name,Updated,UpdatedBy,ValidationType) VALUES (0,0,541238,TO_TIMESTAMP('2020-12-15 17:40:03','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','N','Print Label list',TO_TIMESTAMP('2020-12-15 17:40:03','YYYY-MM-DD HH24:MI:SS'),100,'L')
;

-- 2020-12-15T15:40:03.373Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Reference_Trl (AD_Language,AD_Reference_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Reference_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Reference t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Reference_ID=541238 AND NOT EXISTS (SELECT 1 FROM AD_Reference_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Reference_ID=t.AD_Reference_ID)
;

-- 2020-12-15T15:40:35.431Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value,ValueName) VALUES (0,0,542229,541238,TO_TIMESTAMP('2020-12-15 17:40:35','YYYY-MM-DD HH24:MI:SS'),100,'D','Y','Einfach',TO_TIMESTAMP('2020-12-15 17:40:35','YYYY-MM-DD HH24:MI:SS'),100,'S','Simple')
;

-- 2020-12-15T15:40:35.434Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Ref_List_ID=542229 AND NOT EXISTS (SELECT 1 FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;

-- 2020-12-15T15:40:40.184Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:40:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Ref_List_ID=542229
;

-- 2020-12-15T15:40:46.332Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y', Name='Simple',Updated=TO_TIMESTAMP('2020-12-15 17:40:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Ref_List_ID=542229
;

-- 2020-12-15T15:40:49.102Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:40:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542229
;

-- 2020-12-15T15:41:27.759Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value,ValueName) VALUES (0,0,542230,541238,TO_TIMESTAMP('2020-12-15 17:41:27','YYYY-MM-DD HH24:MI:SS'),100,'U','Y','3-teilig',TO_TIMESTAMP('2020-12-15 17:41:27','YYYY-MM-DD HH24:MI:SS'),100,'M','3_segments')
;

-- 2020-12-15T15:41:27.761Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Ref_List_Trl (AD_Language,AD_Ref_List_ID, Description,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Ref_List_ID, t.Description,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Ref_List t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Ref_List_ID=542230 AND NOT EXISTS (SELECT 1 FROM AD_Ref_List_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Ref_List_ID=t.AD_Ref_List_ID)
;

-- 2020-12-15T15:41:31.994Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:41:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_DE' AND AD_Ref_List_ID=542230
;

-- 2020-12-15T15:41:39.460Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y', Name='3 segments',Updated=TO_TIMESTAMP('2020-12-15 17:41:39','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='en_US' AND AD_Ref_List_ID=542230
;

-- 2020-12-15T15:41:42.777Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
UPDATE AD_Ref_List_Trl SET IsTranslated='Y',Updated=TO_TIMESTAMP('2020-12-15 17:41:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Language='de_CH' AND AD_Ref_List_ID=542230
;

-- 2020-12-15T15:41:51.946Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para (AD_Client_ID,AD_Element_ID,AD_Org_ID,AD_Process_ID,AD_Process_Para_ID,AD_Reference_ID,AD_Reference_Value_ID,ColumnName,Created,CreatedBy,EntityType,FieldLength,IsActive,IsAutocomplete,IsCentrallyMaintained,IsEncrypted,IsMandatory,IsRange,Name,SeqNo,Updated,UpdatedBy) VALUES (0,578616,0,584767,541885,17,541238,'PrintLabel',TO_TIMESTAMP('2020-12-15 17:41:51','YYYY-MM-DD HH24:MI:SS'),100,'de.metas.swat',0,'Y','N','Y','N','N','N','Paket-Etiketten',10,TO_TIMESTAMP('2020-12-15 17:41:51','YYYY-MM-DD HH24:MI:SS'),100)
;

-- 2020-12-15T15:41:51.948Z
-- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator
INSERT INTO AD_Process_Para_Trl (AD_Language,AD_Process_Para_ID, Description,Help,Name, IsTranslated,AD_Client_ID,AD_Org_ID,Created,Createdby,Updated,UpdatedBy) SELECT l.AD_Language, t.AD_Process_Para_ID, t.Description,t.Help,t.Name, 'N',t.AD_Client_ID,t.AD_Org_ID,t.Created,t.Createdby,t.Updated,t.UpdatedBy FROM AD_Language l, AD_Process_Para t WHERE l.IsActive='Y'AND (l.IsSystemLanguage='Y') AND t.AD_Process_Para_ID=541885 AND NOT EXISTS (SELECT 1 FROM AD_Process_Para_Trl tt WHERE tt.AD_Language=l.AD_Language AND tt.AD_Process_Para_ID=t.AD_Process_Para_ID)
;

Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,19 @@
import java.util.Set;

import org.adempiere.ad.trx.api.ITrx;
import org.adempiere.exceptions.AdempiereException;
import org.compiere.util.DB;

import com.google.common.base.Joiner;
import com.google.common.collect.ImmutableList;

import de.metas.handlingunits.HuId;
import de.metas.i18n.AdMessageKey;
import de.metas.process.AdProcessId;
import de.metas.process.IADPInstanceDAO;
import de.metas.process.IProcessPrecondition;
import de.metas.process.PInstanceId;
import de.metas.process.PInstanceRequest;
import de.metas.process.Param;
import de.metas.process.ProcessInfo;
import de.metas.process.ProcessInfoParameter;
import de.metas.process.ProcessPreconditionsResolution;
Expand All @@ -49,13 +50,49 @@
import de.metas.ui.web.pporder.PPOrderLineRow;
import de.metas.ui.web.pporder.PPOrderLineType;
import de.metas.ui.web.window.datatypes.DocumentIdsSelection;
import de.metas.util.Check;
import de.metas.util.Services;
import lombok.Getter;
import lombok.NonNull;

public class WEBUI_PP_Order_PrintLabel extends WEBUI_PP_Order_Template implements IProcessPrecondition
{
final private static AdProcessId LabelPdf_AD_Process_ID = AdProcessId.ofRepoId(584768);
protected static final AdMessageKey MSG_MustBe_TopLevel_HU = AdMessageKey
.of("WEBUI_PP_Order_PrintLabel.MustBe_TopLevel_HU");
private static final String PARAM_PrintLabel = "PrintLabel";

@Param(parameterName = PARAM_PrintLabel)
private String reportTypeCode;

private enum ReportType
{
Simple("S", AdProcessId.ofRepoId(584773)), //
MultipleSegments("M", AdProcessId.ofRepoId(584768));

private final String code;
@Getter
private final AdProcessId processId;

ReportType(@NonNull final String code, @NonNull final AdProcessId processId)
{
this.code = code;
this.processId = processId;
}

public static ReportType ofCode(@NonNull final String code)
{
if (Simple.code.equals(code))
{
return Simple;
}
else if (MultipleSegments.code.equals(code))
{
return MultipleSegments;
}
else
{
throw new AdempiereException("Unknown code: " + code);
}
}
}

final private IADPInstanceDAO adPInstanceDAO = Services.get(IADPInstanceDAO.class);

Expand All @@ -76,7 +113,6 @@ protected ProcessPreconditionsResolution checkPreconditionsApplicable()
@RunOutOfTrx
protected String doIt()
{

// create selection
final Set<HuId> distinctHuIds = retrieveSelectedHuIds();
DB.createT_Selection(getPinstanceId(), distinctHuIds, ITrx.TRXNAME_None);
Expand All @@ -99,23 +135,27 @@ private Set<HuId> retrieveSelectedHuIds()
.streamByIds(selectedRowIds)
.collect(ImmutableList.toImmutableList());

final Set<HuId> huIds = new HashSet<HuId>();
final Set<HuId> huIds = new HashSet<HuId>();

for (final PPOrderLineRow row : selectedRows)
{
final PPOrderLineType type = row.getType();
if (type.isMainProduct())
{
final ImmutableList<PPOrderLineRow> includedRows = row.getIncludedRows();
includedRows.stream()
.filter(ppOrderLineRow -> ppOrderLineRow.getType().isHUOrHUStorage())
.map(PPOrderLineRow::getHuId)
.filter(Objects::nonNull)
.forEach(huIds::add);
}
else if (row.getHuId() != null && type.isHUOrHUStorage())
if (row.isReceipt())
{
huIds.add(row.getHuId());

final PPOrderLineType type = row.getType();
if (type.isMainProduct())
{
final ImmutableList<PPOrderLineRow> includedRows = row.getIncludedRows();
includedRows.stream()
.filter(ppOrderLineRow -> ppOrderLineRow.getType().isHUOrHUStorage())
.map(PPOrderLineRow::getHuId)
.filter(Objects::nonNull)
.forEach(huIds::add);
}
else if (row.getHuId() != null && type.isHUOrHUStorage())
{
huIds.add(row.getHuId());
}
}
}

Expand All @@ -127,9 +167,13 @@ private ReportResult printLabel()
final PInstanceRequest pinstanceRequest = createPInstanceRequest();
final PInstanceId pinstanceId = adPInstanceDAO.createADPinstanceAndADPInstancePara(pinstanceRequest);

final ProcessInfo jasperProcessInfo = ProcessInfo.builder().setCtx(getCtx())
.setAD_Process_ID(LabelPdf_AD_Process_ID).setAD_PInstance(adPInstanceDAO.getById(pinstanceId))
.setReportLanguage(getProcessInfo().getReportLanguage()).setJRDesiredOutputType(OutputType.PDF).build();
final ProcessInfo jasperProcessInfo = ProcessInfo.builder()
.setCtx(getCtx())
.setAD_Process_ID(getReportType().getProcessId())
.setAD_PInstance(adPInstanceDAO.getById(pinstanceId))
.setReportLanguage(getProcessInfo().getReportLanguage())
.setJRDesiredOutputType(OutputType.PDF)
.build();

final ReportsClient reportsClient = ReportsClient.get();
return reportsClient.report(jasperProcessInfo);
Expand All @@ -138,8 +182,11 @@ private ReportResult printLabel()
private PInstanceRequest createPInstanceRequest()
{

return PInstanceRequest.builder().processId(LabelPdf_AD_Process_ID)
.processParams(ImmutableList.of(ProcessInfoParameter.of("AD_PInstance_ID", getPinstanceId()))).build();
return PInstanceRequest.builder()
.processId(getReportType().getProcessId())
.processParams(ImmutableList.of(
ProcessInfoParameter.of("AD_PInstance_ID", getPinstanceId())))
.build();
}

private String buildFilename()
Expand All @@ -150,4 +197,8 @@ private String buildFilename()
return Joiner.on("_").skipNulls().join(instance, title) + ".pdf";
}

private ReportType getReportType()
{
return ReportType.ofCode(reportTypeCode);
}
}

0 comments on commit 7ffd30f

Please sign in to comment.