on 08-26-2015 11:09 AM
Hi Experts,
How to generate 2 different node from the single value coming from sender side.
Suppose 10 is coming from sender, we will do some calculation and suppose we get value as 4,so this 4 will be used as input for first target field and for second target field input value will be 10-value passed to 1st target field.
I have already wrote the code to generate the 10 record with all the fields.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Abhinav,
Source fields you can re use number of times if you want in Graphical mapping. suppose
field1---> target1
field1---> target2
if suppose you are doing calculations and mapped to target field and same thing you want for some other also then just do right click and copy before target filed(i mean after all caluculations) and then goto another target field again right click and select insert , you will get all condition and map to target2.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is no problem with graphical mapping:
Just connect the 10-field once with your calculation and additionally with your secong target field.
PI will treat them separatly and do something like this:
target1 = calculate( 10-field )
target2 = 10-field
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Could you post an example how your input and expected output looks like?
I asume, that your calculation only returns 4 values instead of ten. So you would have two queues with different lengths. If this is the case, you got to make sure, that the calculation always returns 10 values - at least with dummies or suppress.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.