Exemplo n.º 1
0
  protected Object execute(CommandContext commandContext, ExecutionEntity execution) {
    if (execution.getActivity().getActivityBehavior() instanceof UserTaskActivityBehavior)
      throw new ActivitiException("UserTask:" + execution.getId() + " should not be signalled.");

    if (processVariables != null) {
      execution.setVariables(processVariables);
    }
    execution.signal(signalName, signalData);
    return null;
  }