class ActivitiRuntimeHelper {

    public void signal(String processInstanceId, String signalTaskId)
    {
        ExecutionQuery signalTaskQuery = runtimeService.createExecutionQuery().processInstanceId(processInstanceId).activityId(signalTaskId);
        Execution execution = signalTaskQuery.singleResult();
        runtimeService.signal(execution.getId());
    }

}