fix analytic controller
This commit is contained in:
parent
32d731fadd
commit
f4b783f8af
2 changed files with 3 additions and 4 deletions
|
|
@ -65,15 +65,14 @@ public class AGLAnalyticControllerOPListe implements Serializable {
|
||||||
boolean refreshCalculation = false;
|
boolean refreshCalculation = false;
|
||||||
|
|
||||||
public void onEvent(@Observes AnalyticEvent event) {
|
public void onEvent(@Observes AnalyticEvent event) {
|
||||||
if (!"workitem".equals(event.getWorkitem().getType())
|
|
||||||
|| !event.getWorkitem().getModelVersion().startsWith("analyse-opliste")) {
|
if (!event.getWorkitem().getModelVersion().contains("analyse-opliste-")) {
|
||||||
// no op
|
// no op
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
department = null;
|
department = null;
|
||||||
departmentID = event.getWorkitem().getItemValueString("space.ref");
|
departmentID = event.getWorkitem().getItemValueString("space.ref");
|
||||||
|
|
||||||
if (departmentIDLast == null || !departmentID.equals(departmentIDLast)) {
|
if (departmentIDLast == null || !departmentID.equals(departmentIDLast)) {
|
||||||
department = documentService.load(departmentID);
|
department = documentService.load(departmentID);
|
||||||
if (department != null) {
|
if (department != null) {
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ public class OPListExportAdapter extends POIFindReplaceAdapter {
|
||||||
String textblock = excelDefCollection.getItemValueString("textblock");
|
String textblock = excelDefCollection.getItemValueString("textblock");
|
||||||
String template = excelDefCollection.getItemValueString("template");
|
String template = excelDefCollection.getItemValueString("template");
|
||||||
String targetName = excelDefCollection.getItemValueString("target-name");
|
String targetName = excelDefCollection.getItemValueString("target-name");
|
||||||
boolean filter = evalItemCollection.getItemValueBoolean("filter");
|
boolean filter = excelDefCollection.getItemValueBoolean("filter");
|
||||||
|
|
||||||
// adapt text....
|
// adapt text....
|
||||||
targetName = workflowService.adaptText(targetName, document);
|
targetName = workflowService.adaptText(targetName, document);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue