Parallel execution of operators

Legacy UserLegacy User MemberPosts:0Newbie
edited November 2018 inHelp
Ok thanks.

Is it possible to apply operator in "parallel" ? I would like to filter input data that have RESULT A and RESULT B.
INPUT -> OPERATOR A -> RESULT A
INPUT -> OPERATOR B -> RESULT B

Operator seems to be chained in series:
INPUT -> OPERATOR A -> OPERATOR B -> RESULT C.

Answers

  • TobiasMalbrechtTobiasMalbrecht Moderator, Employee, MemberPosts:294RM Product Management
    Hi,

    first of all: I hope you don't mind I put your questions in separate threads. That way, all users can easily recognize separate questions ...

    Regarding your problem, yes, in general operators in the operator tree are executed as a chain. However you can achieve a setting like the one you mentioned by using loops, e.g. by applying the [tt]ParameterIteration[/tt] operator.

    Here is an example process:























    Hope that helps,
    regards,
    Tobias
  • Legacy UserLegacy User MemberPosts:0Newbie
    Thanks, I've installed the lasted code from CVS and it works.
    However, I don't understand why you're using the following in OperatorSelector


    If I use:


    Then it works too. What's the meaning of this select_which ?
  • TobiasMalbrechtTobiasMalbrecht Moderator, Employee, MemberPosts:294RM Product Management
    Hi,

    The thing is, that it does not matter what value is set in the OperatorSelector for the parameter [tt]select_which[/tt]. This is, because the process contains the operator [tt]ParameterIteration[/tt]. This operator iterates over parameters which you can specify. To select the first operator in the first iteration and the second operator in the second operator, you have to specify this in the [tt]ParameterIteration[/tt] operator parameters. Hence, the process XML contains the lines




    which actually means exactly that the operator in the first iteration the value 1 is set for the parameter [tt]select_which[/tt], in the second iteration the value 2 is used for that parameter. The value you manually specify for the parameter [tt]select_which[/tt] in the operator [tt]OperatorSelector[/tt] is simply overwritten in that process.

    希望澄清了它是如何工作的!
    Regards,
    Tobias
Sign InorRegisterto comment.