From f73d330970eef07f57ee451d33d93550e84fb8bc Mon Sep 17 00:00:00 2001 From: Christos Tranoris Date: Sat, 21 Dec 2024 17:33:50 +0200 Subject: [PATCH] fix for #30 --- .../osom/management/ProcessCreateServiceRules.java | 5 +++++ .../processes/ProcessOrderItemProcess.bpmn | 14 +++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/etsi/osl/osom/management/ProcessCreateServiceRules.java b/src/main/java/org/etsi/osl/osom/management/ProcessCreateServiceRules.java index 8aa8166..6ca1a25 100644 --- a/src/main/java/org/etsi/osl/osom/management/ProcessCreateServiceRules.java +++ b/src/main/java/org/etsi/osl/osom/management/ProcessCreateServiceRules.java @@ -67,6 +67,11 @@ public class ProcessCreateServiceRules implements JavaDelegate { return; } + if ( spec == null) { + logger.debug("\tCannot retrieve ServiceSpec:" + contextServiceSpecId); + return; + } + /* * first find all referenced ServiceSpecs of a ServiceSpec to be created diff --git a/src/main/resources/processes/ProcessOrderItemProcess.bpmn b/src/main/resources/processes/ProcessOrderItemProcess.bpmn index 4f386ce..a6b6489 100644 --- a/src/main/resources/processes/ProcessOrderItemProcess.bpmn +++ b/src/main/resources/processes/ProcessOrderItemProcess.bpmn @@ -26,6 +26,9 @@ + + + @@ -85,7 +88,7 @@ - + @@ -111,6 +114,15 @@ + + + + + + + + + \ No newline at end of file -- GitLab