Activiti
  1. Activiti
  2. ACT-1167

Start and End event should be able to have Execution Listeners as well

    Details

    • Type: New Feature New Feature
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 5.9
    • Fix Version/s: 5.10
    • Component/s: Engine
    • Labels:
      None
    • Number of attachments :
      0

      Description

      We need this for use cases like writing the current end event to a process variable which might be read by some parent process definition by an Execution Listener like this:

      public class RememberEndStateNameyExecutionListener implements ExecutionListener {
      public void notify(DelegateExecution ctx) throws Exception

      { ctx.setVariable("end-event-name", ((ExecutionEntity)ctx).getActivity().getProperties().get("name")); }

      }

        Activity

        Hide
        Bernd Ruecker (camunda) added a comment -

        @Bernd: Siehe auch HEMERA-2068

        Show
        Bernd Ruecker (camunda) added a comment - @Bernd: Siehe auch HEMERA-2068
        Hide
        Bernd Ruecker (camunda) added a comment -

        I added the intermediate throw event as well, now we have all events, with a proper test case.

        Show
        Bernd Ruecker (camunda) added a comment - I added the intermediate throw event as well, now we have all events, with a proper test case.

          People

          • Assignee:
            Bernd Ruecker (camunda)
            Reporter:
            Bernd Ruecker (camunda)
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: