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

Missing Input and Output Variables for productionTasks #23

Open
FlorianDue opened this issue Jun 15, 2023 · 3 comments
Open

Missing Input and Output Variables for productionTasks #23

FlorianDue opened this issue Jun 15, 2023 · 3 comments
Labels
enhancement New feature or request priority: low This issue has a low priority

Comments

@FlorianDue
Copy link

FlorianDue commented Jun 15, 2023

In productionTasks it is not possible to define/declare input and output variables. As a result, additional tasks must be defined for the use of conditions, even if the condition is only applied to a single service. This makes the petri nets unnecessarily complex, as places and transitions are introduced that are not required for the process.

As possible solution could be to either declare variables outside of Tasks as global variables (data type of the variable, variable name)

cr_data_type cr =
      {
            parts_count = 3,
            sheet_parts = [0,0,0]
        }
Task productionTask
    In cr:datatype
    Loop i To cr.parts_count
        Painting
            In
                cr.sheet_parts[i]
End

or it should be possible to define literal values as input for a production task, as allowed by all other defined tasks

Task productionTask
    In 
        cr_data_type{
            parts_count = 3,
            sheet_parts = [0,0,0]
        }
    Loop i To cr.parts_count
        Painting
            In
                cr.sheet_parts[i]
End

A similar concept should exist for output variables, so that the result of a pfdl process can be transferred to further processes

@maxhoerstr maxhoerstr added the enhancement New feature or request label Jun 15, 2023
@ptrdtznr
Copy link
Member

Not sure if I got it correctly. You are looking to define global variables and you still want to define/assign them as a variable in productionTask?

Nevertheless, what could be possible is that global variables are accessaible within task without the explicit definition/assignment.

@FlorianDue
Copy link
Author

It is particularly about enabling input/output variables for the production task. Global variables would be one possibility to implement this

@ptrdtznr
Copy link
Member

@maxhoerstr what do you think?

@maxhoerstr maxhoerstr added the priority: low This issue has a low priority label Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: low This issue has a low priority
Projects
None yet
Development

No branches or pull requests

3 participants