Wiki-Quellcode von BPE_4
Version 6.1 von Holger Engels am 2024/02/02 15:12
Verstecke letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | {{groovy}} |
2 | import org.xwiki.context.* | ||
3 | def context = services.component.getInstance(Execution.class).getContext() | ||
4 | def printing = context.getProperty("printing") | ||
5 | println("lala " + printing); | ||
![]() |
4.1 | 6 | println("lolo " + xcontext.get("printing")) |
![]() |
6.1 | 7 | |
8 | def expectedTemplateReference = services.model.resolveDocument('XWiki.BPE Print Template') | ||
9 | def actualTemplateReference = services.job.getCurrentJobStatus(['export', 'pdf'])?.request?.template | ||
10 | if (expectedTemplateReference.equals(actualTemplateReference)) | ||
11 | println("Printing") | ||
12 | else | ||
13 | println("Not printing") | ||
![]() |
1.1 | 14 | {{/groovy}} |
![]() |
6.1 | 15 |