this.signalName = signalName;
this.parameters = parameters;
}
public ProcessInstance execute(Environment environment) throws Exception {
ClientExecution execution = null;
DbSession dbSession = environment.get(DbSession.class);
execution = dbSession.findExecutionById(executionId);
if (execution==null) {
throw new JbpmException("execution "+executionId+" does not exist");
}
execution.signal(signalName, parameters);
return execution.getProcessInstance();
}