Posted: 9 Jun 2017 6:53 EDT Last activity: 16 Oct 2018 12:03 EDT
Passing multiple parameters to CallActivity function
I have activity which call another activity.I have tried using pxExecuteAnActivity function to call another activity in a DT and it work perfectly but it doesn't pass any parameters to activity.How can I implement the following using a function in DT?
**Moderation Team has archived post**
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
You need not explicitly pass parameters if you are using the same parameter names in both your datatransform and activity. Firstly you should set the param values in your datatransform which you want to pass to the activity and call your activity. This will serve your purpose.
In the below DT I am assigning String value to ABC parameter.In the Tracer when I trace in Step 2 there is not ABC parameter but step 9 there is ABC paramter with values.Actually Before executing the activity in step 2 and step 3 should be "Set Action" after that only it should execute the activity.Please clear this doubt.
It is only the representation in Tracer for Data transforms which is causing this confusion. As mentioned above current parameter page is passed to the called activity so all your params should be reaching the activity fine.
As far as I believe, in tracer, you are not observing the parameter since data transform steps are not shown one by one (In your screenshot above check 1-3).
All 3 steps Set Actions are combined. You can try putting step 2 of data transform under a when condition (which always returns true), just to see Step 2 as separate in data transform's tracer and then see if you can notice the parameter value.
Yes all my parameters a correctly move to activity.
In pxExecuteAnActivity function we have to pass a clipboard page.Say I have activity A in ABC class which is not my workpool class. it calls an activity B which is in DEF.When I run the case in the clipboard DEF is not creating when case creates(which creates in a different situation ).If I call pxExecuteAnActivity which clipboard page should I pass?Since I know definitly workpool class is creating in clipboard can I define it in pages and class as eg:work(page name)|Workpoolclass and pass that page to function an run? I tried using that approach but it gives an exception in tracer and execution stops.I only can pass "Primary" keyword to function.
If I give primary key word it won't work because activity B is not in ABC class(primary page).