Skip to content

Error when handing over Variables and Literals from Task to Task #58

@FlorianDue

Description

@FlorianDue

When handing over structs and literals from one task to another, I receive different errors regarding the order of literals and variables. The corresponding PFDL
temp.txt
(stored in a txt file) is attached to this Issue.

The Error occurs when handing over input parameter from the manufactre_light_segments task to the manufacture_light_segment task:

Task manufacture_light_segments
In
order: SWAP_Order
order_1: SWAP_Order
cc: Coating_Capabilities
Parallel Loop i To order.number_light_segments
manufacture_light_segment
In
Light_Segment{
"color": "green",
"diameter": 5,
"segment_id": "Default"
}
order
order_1
cc

        Out
            order:SWAP_Order
            test:SWAP_Order

....
End

Task manufacture_light_segment
In
segments: Light_Segment
order: SWAP_Order
order_1: SWAP_Order
cc: Coating_Capabilities
....
End

With the current handover, i receive the error:

Type of TaskCall parameter 'order' does not match with type 'Light_Segment' of Input Parameter 'segments' in Task 'manufacture_light_segment'
File ./PFDL_Examples/patient_zero.pfdl, in line 226:7
Type of TaskCall parameter 'cc' does not match with type 'SWAP_Order' of Input Parameter 'order_1' in Task 'manufacture_light_segment'
File ./PFDL_Examples/patient_zero.pfdl, in line 226:7
Type of TaskCall parameter 'Light_Segment' does not match with type 'Coating_Capabilities' of Input Parameter 'cc' in Task 'manufacture_light_segment'
File ./PFDL_Examples/patient_zero.pfdl, in line 226:7

The error disappears, when the literal values are only handed over after all the variables. I.e. the following definition does not result in an error:

Task manufacture_light_segments
In
order: SWAP_Order
order_1: SWAP_Order
cc: Coating_Capabilities
Parallel Loop i To order.number_light_segments
manufacture_light_segment
In
order
order_1
cc
Light_Segment{
"color": "green",
"diameter": 5,
"segment_id": "Default"
}
Out
order:SWAP_Order
test:SWAP_Order
...
End

Task manufacture_light_segment
In
order: SWAP_Order
order_1: SWAP_Order
cc: Coating_Capabilities
segments: Light_Segment
...
End

The Error persists for each handing over, in which a literal value is handed over before all variable values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions