01: package org.jbpm.command;
02:
03: import org.jbpm.JbpmContext;
04:
05: /**
06: * provides extra configuration options for the execution of asynchronous commands.
07: * Plain commands can also be executed asynchronously.
08: */
09: public class AsynchronousCommand implements Command {
10:
11: private static final long serialVersionUID = 1L;
12:
13: int retryCount = 1;
14:
15: Command command;
16:
17: public AsynchronousCommand(Command command) {
18: this .command = command;
19: }
20:
21: public Object execute(JbpmContext jbpmContext) throws Exception {
22: throw new UnsupportedOperationException(
23: "sending any command over the message service is not yet supported");
24: }
25:
26: }
|