checkWorkflowExecution();
new Task(waitFor) {
@Override
protected void doExecute() throws Throwable {
SignalExternalWorkflowParameters parameters = new SignalExternalWorkflowParameters();
parameters.setSignalName(signalName);
String input = dataConverter.toData(arguments);
parameters.setInput(input);
parameters.setWorkflowId(workflowExecution.getWorkflowId());
parameters.setRunId(workflowExecution.getRunId());
GenericWorkflowClient client = getGenericClientToUse();
client.signalWorkflowExecution(parameters);
}
};
}