of what use are the left port of the process panel?

AP
AP New Altair Community Member
edited November 2024 in Community Q&A
of what use are the left port of the process panel?



Tagged:

Best Answer

  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    Answer ✓
    Hi!

    You can execute processes in other processes as an external subprocess. You can send data to these subprocesses by connecting the port. This input port will then provide the data for the process.

    This is a good approach for modularizing complex projects. You could have a preprocessing sequence that you want to apply to different data sources at different phases of the project. 

    You can easily test such a process (meant to be used as a subprocess) by defining an input example set in the Process Context (View => Panel => Context). You then just take the input from that input connection by connecting the port to the input of your first operator.

    Regards,
    Balázs

Answers

  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    Answer ✓
    Hi!

    You can execute processes in other processes as an external subprocess. You can send data to these subprocesses by connecting the port. This input port will then provide the data for the process.

    This is a good approach for modularizing complex projects. You could have a preprocessing sequence that you want to apply to different data sources at different phases of the project. 

    You can easily test such a process (meant to be used as a subprocess) by defining an input example set in the Process Context (View => Panel => Context). You then just take the input from that input connection by connecting the port to the input of your first operator.

    Regards,
    Balázs
  • AP
    AP New Altair Community Member
    Can you give me an example?I don't quite understand
  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    Hi,

    here is an example.



    This is just a small process that normalizes incoming data. On the left you see that an input port is connected. On the right, in the Context panel, a data set is assigned to this port (input 1).

    Now you can test the process until you're sure that it does what you want it to do on the sample data. You just run it, it will use the sample data as input.

    Then you can use the same process as a subprocess in another process with Execute Process, without any further changes. The data you put into this subprocess will then be normalized. If the input port is connected in the main process, the sample data will be ignored.

    Regards,
    Balázs
  • AP
    AP New Altair Community Member
    how can you get to the “context”setting?
  • AP
    AP New Altair Community Member
    You mean like an extension of the normal process?Nested outwards
  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    Hi,

    you get the Context panel by clicking View => Show Panel => Context.

    Yes, you can reuse an existing process inside another process in a nested way.

    Regards,
    Balázs