Posted: 11 Nov 2015 15:40 EST Last activity: 26 Aug 2020 8:17 EDT
I was trying to use callActivity() in my V62 environment using Expression Builder. I gave the activity name and the primary page with optional param page as per signature of the function. After clicking the Validate button I have got invalid expression err message. I tried all possible ways but I could not get out of this issue. I hope some of the members in this forum might have got this issue earlier and fixed it too. Below is the screenshot for your info to help me on this. I might be wrong in building the function with below i/p params and want to correct it.
Note: Tried the similar way in V7.1.x and still seeing the same error.
Hi. I've never seen this particular error, but why are you doing this? Where are you calling this expression from? Does the rule have a method for calling an activity? What does the calling activity do and is there another/better way to do that? What is the ultimate business problem you are trying to solve because I suspect there is a more guardrails compliant way to solve it.
There you are! You got the point, Joe. There is no where it is mentioned that we shouldn't use it directly from activity/DT/where ever it is.When my team started using the issue being caught. Now tell me, do we have any documentation coming up on the usage restriction? If it is mentioned anywhere in PDN, pls let me know. May be me or my team over looked on the documentation side.
Thank you Joel Mcleish for the detailed explanation. I did see the similar way of calling in some of the java code snippets in V62 but wanted to see if this function can be used from the expression builder or not. Good to know that a new function introduced in ML8 and will inform my team to have a glance of it. Appreciate your help in this regards.
Just tried in my V7.1.9 PE for calling this function from a Datatransform rule and worked fine . From ML8 on wards, I think we can call any activity using this function directly by passing the page & activity name. Good to know.