Hi everyone,
I am currently experimenting “Execution listener” by studying Flowable DOCS (v 6.4.2) / 8.5.13. Execution listener.
It seems to be that the documentation example is referring some Classes/Interface which are not more supported in v 6.4.2
public class ExampleExecutionListenerOne implements ExecutionListener {
/* NOT SUPPORTED ANYMORE ?
public void notify( ExecutionListenerExecution execution) throws Exception {
execution.setVariable("variableSetInExecutionListener", "firstValue");
execution.setVariable("eventReceived", execution.getEventName());
}
*/
@Override public void notify( DelegateExecution delegateExecution ) {
delegateExecution.setVariable("variableSetInExecutionListener", "firstValue");
delegateExecution.setVariable("eventReceived", delegateExecution.getEventName());s
}
}
Best regards
Bertrand
joram
November 20, 2019, 10:13am
2
Hi Joram,
I would like to say that the snippet in the documentation (chapter 8.5.13.) includes an interface/class ExecutionListenerExecution which seems to not exist anymore in version 6
public void notify( ExecutionListenerExecution execution) throws Exception
From my springboot project I was not able to import it… seems to be an implementation related to flowable 5 that not exists anymore in flowable 6
/* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.activiti.engine.impl.pvm.delegate;
import org.activiti.engine.impl.pvm.PvmProcessElement;
import org.flowable.engine.delegate.DelegateExecution;
/**
* @author Tom Baeyens
*/
This file has been truncated. show original
joram
December 4, 2019, 4:50pm
4