decisionsHelper.handleTimerStarted(event);
}
private void handleWorkflowExecutionSignaled(HistoryEvent event) throws Throwable {
assert (event.getEventType().equals(EventType.WorkflowExecutionSignaled.toString()));
final WorkflowExecutionSignaledEventAttributes signalAttributes = event.getWorkflowExecutionSignaledEventAttributes();
if (completed) {
workflowAsyncScope = new UnhandledSignalAsyncScope(workflowAsyncScope.getOutput(), workflowAsyncScope.getFailure(),
workflowAsyncScope.isCancelRequested());
completed = false;
}
// This task is attached to the root context of the workflowAsyncScope
new Task(workflowAsyncScope) {
@Override
protected void doExecute() throws Throwable {
definition.signalRecieved(signalAttributes.getSignalName(), signalAttributes.getInput());
}
};
}