so here to reuse the obj i have written like this. but for one scenario i have to use one output for another scenario another output how to achieve that
Discussion posts and replies are publicly visible
Can you explain your case in more detail? I am not sure I fully understand what you are looking for.
Your output structure contains both sttuctures, so wherever you use that rule, you can access to status ot caStatus with index function....