-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Labels
defectSomething isn't workingSomething isn't working
Description
Error: Unable to access jarfile "/usr/src/Simod/src/simod/control_flow/lib/bpmn-layout-1.0.6-jar-with-dependencies.jar"
Actual Command:
['java', '-jar', '"/usr/src/Simod/src/simod/control_flow/lib/bpmn-layout-1.0.6-jar-with-dependencies.jar"', ...]
Solution:
['java', '-jar', '/usr/src/Simod/src/simod/control_flow/lib/bpmn-layout-1.0.6-jar-with-dependencies.jar', ...]
Changes in code
from
def add_bpmn_diagram_to_model(bpmn_model_path: Path):
"""
Add BPMN diagram to the control flow of the existing BPMN model using the hierarchical layout algorithm.
This function overwrites the existing BPMN model file.
:param bpmn_model_path:
:return: None
"""
global bpmn_layout_jar_path
args = [
"java",
"-jar",
'"' + str(bpmn_layout_jar_path) + '"',
'"' + str(bpmn_model_path) + '"'
]
print_step(f"Adding BPMN diagram to the model: {args}")
execute_external_command(args)To:
def add_bpmn_diagram_to_model(bpmn_model_path: Path):
"""
Add BPMN diagram to the control flow of the existing BPMN model using the hierarchical layout algorithm.
This function overwrites the existing BPMN model file.
:param bpmn_model_path:
:return: None
"""
global bpmn_layout_jar_path
args = [
"java",
"-jar",
str(bpmn_layout_jar_path),
str(bpmn_model_path)
]
print_step(f"Adding BPMN diagram to the model: {args}")
execute_external_command(args)Metadata
Metadata
Assignees
Labels
defectSomething isn't workingSomething isn't working