Skip to content
Snippets Groups Projects
Commit 1c9cfa72 authored by Sebastian Ebert's avatar Sebastian Ebert
Browse files

fixed service toolspec transformer

parent 7aa15a3e
No related branches found
No related tags found
No related merge requests found
......@@ -26,15 +26,16 @@ public class ToolspecificsTransformer {
for (DinerosTransition dt : petriNet.allDinerosTransitions()) {
if (dt.getStaticTransitionInformation().isServiceTransitionInformation()) {
for (ServiceChannel sc : dt.getMutableTransitionInformation().asServiceTransitionInformation().getClientChannelList()) {
if (pagePlaceIds.contains(sc.getRequestPlaceId().split("-")[0])
&& pagePlaceIds.contains(sc.getResponsePlaceId().split("-")[0])) {
if (dt.getMutableTransitionInformation() == null) {
dt.setMutableTransitionInformation(dt.getStaticTransitionInformation().asServiceTransitionInformation().treeCopyNoTransform());
}
for (ServiceChannel sc : dt.getMutableTransitionInformation().asServiceTransitionInformation().getClientChannelList()) {
if (pagePlaceIds.contains(sc.getRequestPlaceId().split("-")[0])
&& pagePlaceIds.contains(sc.getResponsePlaceId().split("-")[0])) {
for (int i = 0; i < serviceCapacity; i++) {
ServiceChannel newSc = new ServiceChannel();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment