ProcessMaker / nayra

Nayra is a BPMN workflow engine in PHP. Utilize it in your own projects to have your own complex workflow capabilities.
Apache License 2.0
123 stars 32 forks source link

Add an execute method for the Event Definitions #117

Open caleeli opened 5 years ago

caleeli commented 5 years ago

The execute method implements the event definition behavior when an event is triggered.

    /**
     * Implement the event definition behavior when an event is triggered.
     *
     * @param EventDefinitionInterface $event
     * @param FlowNodeInterface $target
     * @param ExecutionInstanceInterface|null $instance
     * @param TokenInterface|null $token
     *
     * @return $this
     */
    public function execute(EventDefinitionInterface $event, FlowNodeInterface $target, ExecutionInstanceInterface $instance = null, TokenInterface $token = null);