How to start a rule input with data?

Certified Associate Developer

Hi team,

im looking a way to start a rule input with data, for example: i get data in a child sail that i need to pass in a parent sail at the first moment the parent sail calls to child

  Discussion posts and replies are publicly visible

Parents
  • 0
    Certified Senior Developer

    I am here totally with mike that more informationen would be helpful, but for the most common cases I had in mind where the following two:

    1) within interfaces

    a!localveriables(
      local!variable1: "teststring",
      ....
      rule!EXA_SC_ChildInterface(exampleRuleInput: local!variable1)
    
    )


    2) as start process form - you set the value for process variables as parameter 
    (in this case "false" for the process variable "isCancel") 

Reply
  • 0
    Certified Senior Developer

    I am here totally with mike that more informationen would be helpful, but for the most common cases I had in mind where the following two:

    1) within interfaces

    a!localveriables(
      local!variable1: "teststring",
      ....
      rule!EXA_SC_ChildInterface(exampleRuleInput: local!variable1)
    
    )


    2) as start process form - you set the value for process variables as parameter 
    (in this case "false" for the process variable "isCancel") 

Children
  • 0
    Certified Associate Developer
    in reply to Richard Michaelis

    Hi, what im really trying to do is get the data from de child interface, in the parent interface i have a foreach to show the same child interface per item but with different data because the data showed depends on the info in the item given, so this is working well, but i need to get the data from each interface and append all of them in the parent interface in a local variable, and i tried to pass a ri in the child interface but when i tried to append this ri it doesn't work, the local just recover the data of the interface that im selecting in that moment. if you need to see the code i could share the interfaces :) thank you for your response

  • 0
    Certified Senior Developer
    in reply to almamnava

    i am here with konduru
    can you post some parts of your code?

    If you have it properly maintained the basic a forEach logic

    a!foreach(
        items: ri!values,
        expression: rule!EXA_SC_ChildInterface(parameter1:fv!item)
    )
    

    should work just fine

    Why do you want to "append" it? might this be your issue?
    I mean a!forEach is looping through values.
    Then you can edit or show every single item.
    I am not sure why you want to append() them?