Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
FlorianDue opened this issue Jul 30, 2024 · 0 comments
Open

Comments

@FlorianDue
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant