The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here

[SOLVED]connect process inputs to an operator programmatically

siamak_wantsiamak_want Member Posts: 98 Contributor II
edited November 2018 in Help
Hi guys,

I need to connect the input ports of my "Main process" to one of the inner operators in my process programmatically. I mean, I don't want to save the process as xml and I want to connect the input as follows:

ExtractClusterPrototypesOP.getOutputPorts().getPortByIndex(0).connectTo(generateIDOP.getInputPorts().getPortByIndex(0));
The above code works fine, because every "output port" has the method "connectTO()". But in my case, In fact, I need to connect 2 input ports together. i.e. the input port of my main process to the input port of one of my inner operators in the main process. So I don't have any "connectTo" method. Any idea?

Thanks

Tagged:

Answers

  • Marco_BoeckMarco_Boeck Administrator, Moderator, Employee-RapidMiner, Member, University Professor Posts: 1,996 RM Engineering
    Hi,

    have a look here: click

    Regards,
    Marco
  • siamak_wantsiamak_want Member Posts: 98 Contributor II
    Thanks a lot Marco,

    Your method worked nice.

Sign In or Register to comment.