Skip to content

Commit

Permalink
[yang] workflow defined mask in factory manager 1112 (#1189)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasFey-GIP authored Oct 23, 2024
1 parent 7d18f22 commit b2c0d3b
Show file tree
Hide file tree
Showing 36 changed files with 3,956 additions and 53 deletions.
47 changes: 47 additions & 0 deletions modules/xdev/yang/XMOM/xdev/yang/YangAppGeneration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
<Libraries>YangAppGenerationImpl.jar</Libraries>
<SharedLibraries>yangkit</SharedLibraries>
<Service Label="Yang App Generation" TypeName="YangAppGeneration">
<Meta>
<AdditionalDependencies>
<Datatype>xmcp.forms.plugin.PluginManagement</Datatype>
</AdditionalDependencies>
</Meta>
<Operation IsStatic="true" Label="Import Module Collection Application" Name="importModuleCollectionApplication">
<Input>
<Data ID="1" Label="Yang App Generation Input Parameter" ReferenceName="YangAppGenerationInputParameter" ReferencePath="xdev.yang" VariableName="yangAppGenerationInputParameter1"/>
Expand All @@ -40,5 +45,47 @@
<CodeSnippet Type="Java">YangAppGenerationImpl.createYangDeviceApp(yangAppGenerationInputParameter2);</CodeSnippet>
</SourceCode>
</Operation>
<Operation IsStatic="true" Label="Load Assignments" Name="loadAssignments">
<Input>
<Data ID="7" Label="Load Yang Assignments Data" ReferenceName="LoadYangAssignmentsData" ReferencePath="xmcp.yang" VariableName="loadYangAssignmentsData7"/>
</Input>
<Output>
<Data ID="6" IsList="true" Label="Use Case Assignement Table Data" ReferenceName="UseCaseAssignmentTableData" ReferencePath="xmcp.yang" VariableName="useCaseAssignmentTableData6"/>
</Output>
<SourceCode>
<CodeSnippet Type="Java">return xdev.yang.YangAppGenerationImpl.loadAssignments(loadYangAssignmentsData7);</CodeSnippet>
</SourceCode>
</Operation>
<Operation IsStatic="true" Label="Load Usecases" Name="loadUsecases">
<Input/>
<Output>
<Data ID="1" IsList="true" Label="Use Case Table Data" ReferenceName="UseCaseTableData" ReferencePath="xmcp.yang" VariableName="useCaseTableData1"/>
</Output>
<SourceCode>
<CodeSnippet Type="Java">return xdev.yang.YangAppGenerationImpl.loadUsecases();</CodeSnippet>
</SourceCode>
</Operation>
<Operation IsStatic="true" Label="Add Usecase" Name="addUsecase" RequiresXynaOrder="true">
<Input>
<Data ID="2" Label="UsecaseGroupFqn" ReferenceName="Text" ReferencePath="base" VariableName="text2"/>
<Data ID="3" Label="UsecaseName" ReferenceName="Text" ReferencePath="base" VariableName="text3"/>
<Data ID="5" Label="Workspace" ReferenceName="Workspace" ReferencePath="xprc.xpce" VariableName="workspace5"/>
<Data ID="8" Label="RPC" ReferenceName="Text" ReferencePath="base" VariableName="text8"/>
<Data ID="9" Label="Device Fqn" ReferenceName="Text" ReferencePath="base" VariableName="text9"/>
</Input>
<Output/>
<SourceCode>
<CodeSnippet Type="Java">xdev.yang.YangAppGenerationImpl.addUsecase(correlatedXynaOrder, text2, text3, workspace5, text8, text9);</CodeSnippet>
</SourceCode>
</Operation>
<Operation IsStatic="true" Label="Save Assignment" Name="saveAssignment" RequiresXynaOrder="true">
<Input>
<Data ID="10" Label="Use Case Assignement Table Data" ReferenceName="UseCaseAssignmentTableData" ReferencePath="xmcp.yang" VariableName="useCaseAssignmentTableData10"/>
</Input>
<Output/>
<SourceCode>
<CodeSnippet Type="Java">xdev.yang.YangAppGenerationImpl.saveAssignment(correlatedXynaOrder, useCaseAssignmentTableData10);</CodeSnippet>
</SourceCode>
</Operation>
</Service>
</DataType>
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--><DataType xmlns="http://www.gip.com/xyna/xdev/xfractmod" Version="1.8" TypeName="YangAppGenerationInputParameter" TypePath="xdev.yang" Label="Yang App Generation Input Parameter" IsAbstract="false">
--><DataType xmlns="http://www.gip.com/xyna/xdev/xfractmod" IsAbstract="false" Label="Yang App Generation Input Parameter" TypeName="YangAppGenerationInputParameter" TypePath="xdev.yang" Version="1.8">
<Meta>
<IsServiceGroupOnly>false</IsServiceGroupOnly>
</Meta>
Expand All @@ -34,7 +34,5 @@
<Type>String</Type>
</Meta>
</Data>
<Data Label="File ID" VariableName="fileID" ReferenceName="ManagedFileId" ReferencePath="xfmg.xfctrl.filemgmt">
</Data>
<Data Label="File ID" ReferenceName="ManagedFileId" ReferencePath="xfmg.xfctrl.filemgmt" VariableName="fileID"/>
</DataType>

42 changes: 42 additions & 0 deletions modules/xdev/yang/XMOM/xmcp/yang/LoadYangAssignmentsData.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright 2024 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.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--><DataType xmlns="http://www.gip.com/xyna/xdev/xfractmod" IsAbstract="false" Label="Load Yang Assignments Data" TypeName="LoadYangAssignmentsData" TypePath="xmcp.yang" Version="1.8">
<Meta>
<IsServiceGroupOnly>false</IsServiceGroupOnly>
</Meta>
<Data Label="Total Yang Path" VariableName="totalYangPath">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Fqn" VariableName="fqn">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Usecase" VariableName="usecase">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Workspace Name" VariableName="workspaceName">
<Meta>
<Type>String</Type>
</Meta>
</Data>
</DataType>
38 changes: 38 additions & 0 deletions modules/xdev/yang/XMOM/xmcp/yang/UseCaseAssignmentTableData.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright 2024 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.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--><DataType xmlns="http://www.gip.com/xyna/xdev/xfractmod" IsAbstract="false" Label="Use Case Assignment Table Data" TypeName="UseCaseAssignmentTableData" TypePath="xmcp.yang" Version="1.8">
<Meta>
<IsServiceGroupOnly>false</IsServiceGroupOnly>
</Meta>
<Data Label="Type" VariableName="type">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Yang Path" VariableName="yangPath">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Value" VariableName="value">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Load Yang Assignments Data" ReferenceName="LoadYangAssignmentsData" ReferencePath="xmcp.yang" VariableName="loadYangAssignmentsData"/>
</DataType>
47 changes: 47 additions & 0 deletions modules/xdev/yang/XMOM/xmcp/yang/UseCaseTableData.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright 2024 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.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--><DataType xmlns="http://www.gip.com/xyna/xdev/xfractmod" IsAbstract="false" Label="Use Case Table Data" TypeName="UseCaseTableData" TypePath="xmcp.yang" Version="1.8">
<Meta>
<IsServiceGroupOnly>false</IsServiceGroupOnly>
</Meta>
<Data Label="Usecase Group" VariableName="usecaseGroup">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Use Case" VariableName="useCase">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Rpc Name" VariableName="rpcName">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Runtime Context" VariableName="runtimeContext">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Mapping Count" VariableName="mappingCount">
<Meta>
<Type>int</Type>
</Meta>
</Data>
</DataType>
37 changes: 37 additions & 0 deletions modules/xdev/yang/XMOM/xmcp/yang/YangImportTableData.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright 2024 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.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--><DataType xmlns="http://www.gip.com/xyna/xdev/xfractmod" IsAbstract="false" Label="Yang Import Table Data" TypeName="YangImportTableData" TypePath="xmcp.yang" Version="1.8">
<Meta>
<IsServiceGroupOnly>false</IsServiceGroupOnly>
</Meta>
<Data Label="Application Name" VariableName="applicationName">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Application Type" VariableName="applicationType">
<Meta>
<Type>String</Type>
</Meta>
</Data>
<Data Label="Order Id" VariableName="orderId">
<Meta>
<Type>long</Type>
</Meta>
</Data>
</DataType>
67 changes: 67 additions & 0 deletions modules/xdev/yang/XMOM/xmcp/yang/fman/AddUseCase.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
* Copyright 2024 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.
* - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
--><Service xmlns="http://www.gip.com/xyna/xdev/xfractmod" Label="Add Use Case" TypeName="AddUseCase" TypePath="xmcp.yang.fman" Version="1.8">
<Operation ID="0" IsStatic="false" Label="Add Use Case" Name="AddUseCase">
<Input>
<Data ID="37" Label="Text" ReferenceName="Text" ReferencePath="base" VariableName="text37"/>
<Data ID="58" Label="Text" ReferenceName="Text" ReferencePath="base" VariableName="text58"/>
<Data ID="111" Label="Workspace" ReferenceName="Workspace" ReferencePath="xprc.xpce" VariableName="workspace111"/>
<Data ID="112" Label="Text" ReferenceName="Text" ReferencePath="base" VariableName="text112"/>
<Data ID="129" Label="Text" ReferenceName="Text" ReferencePath="base" VariableName="text129"/>
</Input>
<Output/>
<ServiceReference ID="19" Label="Yang App Generation" ReferenceName="YangAppGeneration.YangAppGeneration" ReferencePath="xdev.yang">
<Source RefID="18"/>
<Target RefID="18"/>
</ServiceReference>
<Function ID="18" Label="Add Usecase">
<Source RefID="19"/>
<Source RefID="37"/>
<Source RefID="58"/>
<Source RefID="111"/>
<Source RefID="112"/>
<Source RefID="129"/>
<Target RefID="19"/>
<Invoke Operation="addUsecase" ServiceID="19">
<Source RefID="37">
<Meta>
<LinkType>UserConnected</LinkType>
</Meta>
</Source>
<Source RefID="58">
<Meta>
<LinkType>UserConnected</LinkType>
</Meta>
</Source>
<Source RefID="111"/>
<Source RefID="112">
<Meta>
<LinkType>UserConnected</LinkType>
</Meta>
</Source>
<Source RefID="129">
<Meta>
<LinkType>UserConnected</LinkType>
</Meta>
</Source>
</Invoke>
<Receive ServiceID="19"/>
</Function>
<Assign ID="1"/>
</Operation>
</Service>
Loading

0 comments on commit b2c0d3b

Please sign in to comment.