Skip to content

Error When Running Control Flow Discovery #169

@davidsequera

Description

@davidsequera

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 working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions