|
|
@@ -55,7 +55,7 @@ def assign_names(pm_model: pm_as.ProcessModel) -> typing.Dict[pm_as.Element, str
|
|
|
|
|
|
def write_oml(
|
|
|
input_filename: str,
|
|
|
- input_page: dio_as.Page,
|
|
|
+ model_name: str,
|
|
|
asyntax: pm_as.ProcessModel,
|
|
|
names: typing.Dict[pm_as.Element, str],
|
|
|
ostream: io.TextIOBase,
|
|
|
@@ -64,7 +64,7 @@ def write_oml(
|
|
|
Generate an OML description of a process model.
|
|
|
Parameters:
|
|
|
input_filename: has no precise semantics - only written to the output in a comment
|
|
|
- input_page: only used to determine the name of the model
|
|
|
+ model_name: only used to determine the name of the model
|
|
|
pm_model: the parsed process model to write as an OML description
|
|
|
pm_names: mapping from every element in the process model to a unique name
|
|
|
ostream: stream to write OML output to (e.g., stdout, a file, ...)
|
|
|
@@ -80,20 +80,20 @@ def write_oml(
|
|
|
for piece in template.generate(
|
|
|
model=asyntax,
|
|
|
input_filename=input_filename,
|
|
|
- input_page=input_page,
|
|
|
+ model_name=model_name,
|
|
|
enumerate=enumerate,
|
|
|
concat=util.concat,
|
|
|
pm_names=names,
|
|
|
types=TYPENAMES,
|
|
|
- output_namespace=namespaces['artifacts']+input_page.name+"_pm",
|
|
|
- shorthand=input_page.name+"_pm",
|
|
|
+ output_namespace=namespaces['artifacts']+model_name+"_pm",
|
|
|
+ shorthand=model_name+"_pm",
|
|
|
namespaces=namespaces):
|
|
|
ostream.write(piece)
|
|
|
|
|
|
|
|
|
def write_corr_oml(
|
|
|
input_filename: str,
|
|
|
- input_page: dio_as.Page,
|
|
|
+ model_name: dio_as.Page,
|
|
|
traceability_links: typing.List[trace_as.TraceabilityLink],
|
|
|
drawio_names: typing.Dict[dio_as.Element, str],
|
|
|
model_names: typing.Dict[pm_as.Element, str],
|
|
|
@@ -103,7 +103,7 @@ def write_corr_oml(
|
|
|
Generate an OML description of the traceability links between a Drawio-description and a PM-description.
|
|
|
Parameters:
|
|
|
input_filename: has no precise semantics - only written to the output in a comment
|
|
|
- input_page: only used to determine the name of the model
|
|
|
+ model_name: only used to determine the name of the model
|
|
|
traceability_links: list of traceability links to write as an OML description
|
|
|
ostream: stream to write OML output to (e.g., stdout, a file, ...)
|
|
|
output_namespace: namespace for the to-be-generated OML description
|
|
|
@@ -119,13 +119,13 @@ def write_corr_oml(
|
|
|
pm_names=model_names,
|
|
|
drawio_names=drawio_names,
|
|
|
input_filename=input_filename,
|
|
|
- input_page=input_page,
|
|
|
+ model_name=model_name,
|
|
|
enumerate=enumerate,
|
|
|
concat=util.concat,
|
|
|
types=TYPENAMES,
|
|
|
- drawio_descr_namespace=namespaces['artifacts']+input_page.name+"_drawio",
|
|
|
- pm_descr_namespace=namespaces['artifacts']+input_page.name+"_pm",
|
|
|
- output_namespace=namespaces['artifacts']+input_page.name+"_corr",
|
|
|
- shorthand=input_page.name+"_corr",
|
|
|
+ drawio_descr_namespace=namespaces['artifacts']+model_name+"_drawio",
|
|
|
+ pm_descr_namespace=namespaces['artifacts']+model_name+"_pm",
|
|
|
+ output_namespace=namespaces['artifacts']+model_name+"_corr",
|
|
|
+ shorthand=model_name+"_corr",
|
|
|
namespaces=namespaces):
|
|
|
ostream.write(piece)
|