Hi All, I have a expression that inturn calls a query rule which accepts a

Hi All,
I have a expression that inturn calls a query rule which accepts a attributeType as input and outputs the results. I need to fetch data for 4 types of attributes and each needs to saved in an seperate variable. The expression definition is encapsulated in load(). So when i want to do this from a script task, i need to take 4 ACPs and provide expression to each of them, and a different attributeType for each of them them and collect them into PVs. But i observed that the results retrieved from the expression of first ACP is stored into all the PVs. Till this point of time i thought that usage of load()/ with() apart from tempo doesn't have any significance in terms of execution. Is this the desired behavior? If so could anyone please justify this behavior?

TIA, ...

OriginalPostID-93512

OriginalPostID-93512

  Discussion posts and replies are publicly visible

Parents
  • Hi satya.srinivasan,
    I have a expression rule!fetchValuesFromType() which inturn calls a query rule rule!getValuesFromType() which returns various values based on type.
    On a scripttask, i have four acps which are configured in the following order:
    rule!fetchValuesFromType("Vegetables")
    rule!fetchValuesFromType("Fruits")
    rule!fetchValuesFromType("Chocolates")
    rule!fetchValuesFromType("Cookies")
    and I am collecting them in outputs into four seperate PVs. But everytime i am seeing the result rule!fetchValuesFromType("Vegetables") into all the PVs or the value of acp which is configured at top level.
    NB: Definition of rule!fetchValuesFromType() is encapsulated in load()
Reply
  • Hi satya.srinivasan,
    I have a expression rule!fetchValuesFromType() which inturn calls a query rule rule!getValuesFromType() which returns various values based on type.
    On a scripttask, i have four acps which are configured in the following order:
    rule!fetchValuesFromType("Vegetables")
    rule!fetchValuesFromType("Fruits")
    rule!fetchValuesFromType("Chocolates")
    rule!fetchValuesFromType("Cookies")
    and I am collecting them in outputs into four seperate PVs. But everytime i am seeing the result rule!fetchValuesFromType("Vegetables") into all the PVs or the value of acp which is configured at top level.
    NB: Definition of rule!fetchValuesFromType() is encapsulated in load()
Children
No Data