cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamically calling different actions based on their names

MarcRaupach
Level 2
Hi folks, I am wondering if it is possible to have a placeholder action / page / process which can determine which action / page / process to call based on variables (e.g. the name of the action / page / process of interest).  Why I think about that: I would like to design a unit test page for pages of a process. I would like to just feed it the names and variables for the individual pages. And, I would like to omit referencing each page separately. (I think there might be many other tasks that could benefit from such a capability) Thanks for helping / advising stuff.
2 REPLIES 2

Hi Currently in BP lt say you open a page and there could be 10 outcomes which points to 10 different sub processes. when you can  a sub process it has to be selected from a drop down so it is not a value you could pass in at runtime.  Might be an idea for an enhancement, but i'm not sure how much benifit you are getting. (e.g pass value in and then use a calc stage to turn that value into a process name and then pass that to your run specified process option.)   Hope this clarifies connor

MarcRaupach
Level 2
Hi Connor, thanks for your response. The idea would be to have a loop over a collection which defines name of the sub process, input values, and expected output values to check against. The developer would need to make sure to unify the interface to the subprocesses (e.g. by transferring collections as input and output). I think it would add quite some flexibility for developers to do stuff with less 'switch-case'- / 'if'-statements present. (Besides that, I would love a feature like unit testing for subprocesses. E.g. by defining input values, and expected output values and automatic checking if the subprocess still acts as expected) Greetings, Marc