From 169568ab651df3f93f8dfde792c1a13b3cd873ec Mon Sep 17 00:00:00 2001 From: Daniele Mammarella Date: Mon, 13 Feb 2023 22:30:25 +0100 Subject: [PATCH] [RHPAM-4648]: Error code: 404 on History button for Process Variable of type: org.jbpm.document.DocumentCollection --- .../jbpm/document/audit/DocumentCollectionVariableIndexer.java | 2 +- .../document/audit/DocumentCollectionVariableIndexerTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jbpm-document/src/main/java/org/jbpm/document/audit/DocumentCollectionVariableIndexer.java b/jbpm-document/src/main/java/org/jbpm/document/audit/DocumentCollectionVariableIndexer.java index 0d7c46a9b3..9030a7042a 100644 --- a/jbpm-document/src/main/java/org/jbpm/document/audit/DocumentCollectionVariableIndexer.java +++ b/jbpm-document/src/main/java/org/jbpm/document/audit/DocumentCollectionVariableIndexer.java @@ -28,7 +28,7 @@ public class DocumentCollectionVariableIndexer implements ProcessVariableIndexer { - private static final String PATTERN = "{0} ({1}/{2})"; + private static final String PATTERN = "{0} ({1}_{2})"; @Override public boolean accept(Object variable) { diff --git a/jbpm-document/src/test/java/org/jbpm/document/audit/DocumentCollectionVariableIndexerTest.java b/jbpm-document/src/test/java/org/jbpm/document/audit/DocumentCollectionVariableIndexerTest.java index 82575f4b53..1d2901ec27 100644 --- a/jbpm-document/src/test/java/org/jbpm/document/audit/DocumentCollectionVariableIndexerTest.java +++ b/jbpm-document/src/test/java/org/jbpm/document/audit/DocumentCollectionVariableIndexerTest.java @@ -76,7 +76,7 @@ public void testIndex() { private void testDocument(int index, int max, VariableInstanceLog log, DocumentImpl document) { Assertions.assertThat(log) - .hasFieldOrPropertyWithValue("variableId", VARIABLE_NAME + " (" + (index + 1) + "/" + max + ")") + .hasFieldOrPropertyWithValue("variableId", VARIABLE_NAME + " (" + (index + 1) + "_" + max + ")") .hasFieldOrPropertyWithValue("value", document.toString()); } }