1 Reply Latest reply on Jan 2, 2008 6:36 AM by tom.baeyens

    adding parameters to signal

    tom.baeyens

      in the next couple of posts, i'll be documenting some of the changes while i finalize the pvm api's.

      the first one is adding parameters to a signal.

      analogue to a method invocation on a java object, signals can have a named signal and parameters.

      i opted for all method combinations on the execution:

      void signal();
      void signal(String signal);
      void signal(Map<String, Object> parameters);
      void signal(String signal, Map<String, Object> parameters);


      That is because this is a user API and needs to be convenient.

      Next I opted for a single signal method on the NodeBehaviour where the 'signal' and 'parameters' parameters can be null.

      void signal(Execution execution, String signal, Map<String, Object> parameters);


      Cause that is easier to implement. It's up to the execution implementation to provide the method delegations with the default null values.

        • 1. Re: adding parameters to signal
          tom.baeyens

          all the changes will only be visible later this week when i commit. but i didn't want to wait to document them on the forum as i might forget to document them. i'll do another post on this forum to notify of commits.