Skip to content

Commit be80df6

Browse files
author
Marco Rietveld
committed
BZ-1070097 - History commands sent via JMS require deploymentId to be set
(cherry picked from commit 436600e)
1 parent 65299e0 commit be80df6

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

kie-remote/kie-services-jaxb/src/main/java/org/kie/services/client/serialization/jaxb/impl/JaxbCommandsRequest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
import org.drools.core.command.runtime.rule.FireAllRulesCommand;
2121
import org.drools.core.command.runtime.rule.InsertObjectCommand;
2222
import org.drools.core.command.runtime.rule.UpdateCommand;
23-
import org.jbpm.process.audit.command.AbstractHistoryLogCommand;
23+
import org.jbpm.process.audit.command.AuditCommand;
2424
import org.jbpm.process.audit.command.ClearHistoryLogsCommand;
2525
import org.jbpm.process.audit.command.FindActiveProcessInstancesCommand;
2626
import org.jbpm.process.audit.command.FindNodeInstancesCommand;
@@ -143,7 +143,7 @@ private void checkThatCommandsContainDeploymentIdIfNeeded(List<Command<?>> check
143143
return;
144144
}
145145
for( Command<?> command : checkCommands ) {
146-
if( ! (command instanceof TaskCommand<?>) && ! (command instanceof AbstractHistoryLogCommand) ) {
146+
if( ! (command instanceof TaskCommand<?>) && ! (command instanceof AuditCommand<?>) ) {
147147
throw new UnsupportedOperationException( "A " + command.getClass().getSimpleName() + " requires that the deployment id has been set!" );
148148
}
149149
}

kie-remote/kie-services-jaxb/src/main/java/org/kie/services/client/serialization/jaxb/impl/audit/JaxbHistoryLogList.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import org.jbpm.process.audit.NodeInstanceLog;
2121
import org.jbpm.process.audit.ProcessInstanceLog;
2222
import org.jbpm.process.audit.VariableInstanceLog;
23-
import org.jbpm.process.audit.command.AbstractHistoryLogCommand;
2423
import org.jbpm.process.audit.event.AuditEvent;
2524
import org.kie.services.client.serialization.jaxb.impl.JaxbCommandResponse;
2625

0 commit comments

Comments
 (0)