Skip to content

Commit

Permalink
BZ-1070097 - History commands sent via JMS require deploymentId to be…
Browse files Browse the repository at this point in the history
… set
  • Loading branch information
Marco Rietveld committed Mar 20, 2014
1 parent c83287c commit 436600e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import org.drools.core.command.runtime.rule.FireAllRulesCommand;
import org.drools.core.command.runtime.rule.InsertObjectCommand;
import org.drools.core.command.runtime.rule.UpdateCommand;
import org.jbpm.process.audit.command.AbstractHistoryLogCommand;
import org.jbpm.process.audit.command.AuditCommand;
import org.jbpm.process.audit.command.ClearHistoryLogsCommand;
import org.jbpm.process.audit.command.FindActiveProcessInstancesCommand;
import org.jbpm.process.audit.command.FindNodeInstancesCommand;
Expand Down Expand Up @@ -143,7 +143,7 @@ private void checkThatCommandsContainDeploymentIdIfNeeded(List<Command<?>> check
return;
}
for( Command<?> command : checkCommands ) {
if( ! (command instanceof TaskCommand<?>) && ! (command instanceof AbstractHistoryLogCommand) ) {
if( ! (command instanceof TaskCommand<?>) && ! (command instanceof AuditCommand<?>) ) {
throw new UnsupportedOperationException( "A " + command.getClass().getSimpleName() + " requires that the deployment id has been set!" );
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.jbpm.process.audit.NodeInstanceLog;
import org.jbpm.process.audit.ProcessInstanceLog;
import org.jbpm.process.audit.VariableInstanceLog;
import org.jbpm.process.audit.command.AbstractHistoryLogCommand;
import org.jbpm.process.audit.event.AuditEvent;
import org.kie.services.client.serialization.jaxb.impl.JaxbCommandResponse;

Expand Down

0 comments on commit 436600e

Please sign in to comment.