2017-08-02 1 views
0

Ich habe von https://www.activiti.org/migration.html (ich habe Datei activiti-rest/WEB-INF/classes/activiti-custom-context.xml gesetzt activiti5CompatibilityEnabled und activiti5CompatibilityHandlerFactoryActiviti - Fehler bei der Migration Prozessinstanz von Activiti 5.21.0 bis Activiti 6

aktualisiert Migration Activiti von 5.21.0 bis 6.0.0 durch Führungs behandelt
<bean id="activiti5CompabilityFactory" class="org.activiti.compatibility.spring.SpringActiviti5CompatibilityHandlerFactory" /> 
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> 
......... 
<property name="activiti5CompatibilityEnabled" value="true" /> 
<property name="activiti5CompatibilityHandlerFactory" ref="activiti5CompabilityFactory" /> 
</bean> 

und kopieren Sie activiti5-compatibility-6.0.0.jar, activiti5-engine-6.0.0.jar, activiti5-spring-6.0.0.jar, activiti5-spring-compatibility-6.0.0.jar zu activiti5 rests libs und activiti-apps libs)

und ich hatte eine aktive Prozessinstanz in alt ver sion wie unten

enter image description here

nach der Migration, ich habe noch eine dieser Prozessinstanz, aber wenn ich Benutzer Aufgabe einreichen und Service-Task ausführen und BpmnError werfen kann das BoundaryEvent diese Ausnahme nicht fängt, bekam ich einen Fehler in log

03:29:59,686 [activiti-async-job-executor-thread-2] ERROR org.activiti.engine.impl.interceptor.CommandContext - Error while closing command context 
org.activiti.engine.ActivitiException: Programmatic error: no parent scope execution found for boundary event 
at org.activiti.engine.impl.bpmn.behavior.BoundaryEventActivityBehavior.executeInterruptingBehavior(BoundaryEventActivityBehavior.java:85) 
at org.activiti.engine.impl.bpmn.behavior.BoundaryEventActivityBehavior.trigger(BoundaryEventActivityBehavior.java:56) 

Programmatische Fehler: keine übergeordneten Bereich Ausführung für Randereignis bei BoundaryEventActivityBehavior.executeInterruptingBehavior (BoundaryEventActivityBehavior.java:85) => ich weiß nicht, warum gefunden BoundaryE Vent kann kein Parent finden (Service-Aufgabe - es funktioniert in der alten Version korrekt).

Antwort

0

Als Activiti User Guide definiert die Boundary Fehler Ereignis -

Defining a boundary error event makes most sense on an embedded subprocess, or a call activity, as a subprocess creates a scope for all activities inside the subprocess. Errors are thrown by error end events. Such an error will propagate its parent scopes upwards until a scope is found on which a boundary error event is defined that matches the error event definition.

When an error event is caught, the activity on which the boundary event is defined is destroyed, also destroying all current executions within (e.g. concurrent activities, nested subprocesses, etc.). Process execution continues following the outgoing sequence flow of the boundary event.

Umgehung: Versuchen Sie, ein Tor nach dem Dienst Aufgabe zu überprüfen, ob die Bedingung der Prozess abgeschlossen erfüllt ist oder nicht - explanation

Verwandte Themen