Skip to content

Commit

Permalink
Merge branch 'main' into 1274-yang-additional-usecase-inputs-services
Browse files Browse the repository at this point in the history
  • Loading branch information
osuender authored Nov 28, 2024
2 parents 67398ce + f651ace commit 68710d7
Show file tree
Hide file tree
Showing 22 changed files with 39 additions and 23 deletions.
2 changes: 1 addition & 1 deletion modules/base/base/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-->
<Application applicationName="Base" comment="" factoryVersion="" versionName="1.0.20" xmlVersion="1.1">
<Application applicationName="Base" comment="" factoryVersion="" versionName="1.0.21" xmlVersion="1.1">
<ApplicationInfo>
<Description Lang="DE">Diverse grundlegende DatenTypen und Services</Description>
<Description Lang="EN">Miscellaneous essential data types and services</Description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
import com.gip.xyna.utils.exceptions.XynaException;
import com.gip.xyna.xdev.xfractmod.xmdm.GeneralXynaObject;
import com.gip.xyna.xdev.xfractmod.xmdm.XynaObject;
import com.gip.xyna.xfmg.xods.configuration.DocumentationLanguage;
import com.gip.xyna.xfmg.xods.configuration.XynaPropertyUtils.XynaPropertyBoolean;
import com.gip.xyna.xprc.XynaOrderServerExtension;
import com.gip.xyna.xprc.exceptions.XPRC_DUPLICATE_CORRELATIONID;
import com.gip.xyna.xprc.exceptions.XPRC_InvalidXMLForObjectCreationException;
Expand All @@ -34,6 +36,9 @@
public class SynchronizationImpl {

private static final String NULL_VALUE = "__NULL_VALUE_internal";
public static final XynaPropertyBoolean THROW_EXCEPTION = new XynaPropertyBoolean("xprc.synchronization.THROW_EXCEPTION", false)
.setDefaultDocumentation(DocumentationLanguage.DE, "Ist die Synchronization Answer eine Exception, wird diese vom Await Schritt geworfen.")
.setDefaultDocumentation(DocumentationLanguage.EN, "If the synchronization answer is an exception, that exception is thrown by the await.");


public SynchronizationImpl() {
Expand All @@ -59,13 +64,24 @@ public static XynaObject awaitNotification(XynaOrderServerExtension xo, Correlat
}


private static XynaObject createAnswer(String resultingAnswerString, Long rootRevision) {
private static XynaObject createAnswer(String resultingAnswerString, Long rootRevision) throws XynaException {
if (resultingAnswerString == null) {
return null;
}
if (resultingAnswerString.equals(NULL_VALUE)) {
return null;
}
if (resultingAnswerString.startsWith("<Exception ") && THROW_EXCEPTION.get()) {
try {
GeneralXynaObject obj = XynaObject.generalFromXml(resultingAnswerString, rootRevision);
if (obj instanceof XynaException) {
((XynaException) obj).setStackTrace(new StackTraceElement[0]);
throw (XynaException) obj;
}
} catch (XPRC_XmlParsingException | XPRC_InvalidXMLForObjectCreationException | XPRC_MDMObjectCreationException e) {
throw e;
}
}
if (resultingAnswerString.startsWith("<Data ")) {
try {
return XynaObject.fromXml(resultingAnswerString, rootRevision);
Expand Down
2 changes: 1 addition & 1 deletion modules/base/net/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/base/storables/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xact/connection/connection/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xact/dhcp/client/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xact/ldap/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xact/mail/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xact/queue/queue/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xact/script/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xact/snmp/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
4 changes: 2 additions & 2 deletions modules/xact/soap/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>>
</RuntimeContextRequirements>
</ApplicationInfo>
<SharedLibs>
<SharedLib implicitDependency="true">
Expand Down
2 changes: 1 addition & 1 deletion modules/xact/velocity/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xfmg/csv/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xfmg/json/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xfmg/node/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xfmg/user/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xfmg/xynaproperty/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xint/crypto/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xint/regexp/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xnwh/timeseries/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down
2 changes: 1 addition & 1 deletion modules/xprc/processing/application.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<RuntimeContextRequirements>
<RuntimeContextRequirement>
<ApplicationName>Base</ApplicationName>
<VersionName>1.0.20</VersionName>
<VersionName>1.0.21</VersionName>
</RuntimeContextRequirement>
</RuntimeContextRequirements>
</ApplicationInfo>
Expand Down

0 comments on commit 68710d7

Please sign in to comment.