Skip to content

Commit

Permalink
added coppyright header and convert primitvve datatypes into prototype.
Browse files Browse the repository at this point in the history
  • Loading branch information
TorbenSiegismund-GIP committed Nov 9, 2023
1 parent 39b1294 commit cbbc48a
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
/*
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright 2022 Xyna GmbH, Germany
*
* 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 com.gip.xyna.xact.filter.xmom.workflows.json;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,11 +159,15 @@ public FQNameJson getFQName() {
}

public AVariable toAVariable(GenerationBase generationBase, long revision) throws XPRC_InvalidPackageNameException{
// primitive datatypes are not supported
AVariable var;
DomOrExceptionGenerationBase doe;

if (Tags.EXCEPTION.equals(getType())) {

if (getFQName() == null) {
var = new DatatypeVariable(generationBase);
var.setIsList(isList());
var.createPrototype(getLabel());
return var;
} else if (Tags.EXCEPTION.equals(getType())) {
doe = ExceptionGeneration.getInstance(getFQName().toString(), revision);
var = new ExceptionVariable(generationBase, getFQName().toString());
} else if (Tags.VARIABLE.equals(getType())) {
Expand All @@ -172,6 +176,7 @@ public AVariable toAVariable(GenerationBase generationBase, long revision) throw
} else {
throw new RuntimeException();
}

var.setIsList(isList());
com.gip.xyna.xfmg.xfctrl.dependencies.RuntimeContextDependencyManagement depMan = XynaFactory.getInstance().getFactoryManagement().getXynaFactoryControl().getRuntimeContextDependencyManagement();
Long depRev = depMan.getRevisionDefiningXMOMObject(getFQName().toString(), revision);
Expand Down

0 comments on commit cbbc48a

Please sign in to comment.