1 Reply Latest reply on Oct 12, 2005 11:15 AM by tom-the-bomb

    Parameters for AssignmentHandler in process-definition

    arthur_dent

      Hello everybody,

      I just wanted to create an AssignmentHandler which reads a parameter/context variable directly out of the process-definition like it is possible with ActionHandlers(Message example) and calculates the assignment based on this variable so I can use this AssignmentHandler in multiple places. But it doesn't seem to work.
      Is this feature not available for AssignmentHandlers? If so is there a workaround you could advice me?
      I tried to use an ActionHandler which sets the needed Context variable at the time of the transition before the task-assignment but I think this is a pretty dirty solution.
      Any recommendations would be appreaciated.

      Thank you very much,
      Thomas

        • 1. Re: Parameters for AssignmentHandler in process-definition
          tom-the-bomb

          It does work - just like it does for Actions.

          All you have to do is add some fields to your AssignmentHandler-class and specify the parameters in the same way as you would for Actions. (At least in v3.0.1 which I am currently using.)

          One pitfall might be, that the JBPM-IDE I am currently using doesn't provide a GUI-way to specify the handler and parameters. so I have to manually edit the processdefinition.xml.