Skip to main content
Solved

FSM - calling another MPM from a custom MPM

  • July 18, 2022
  • 1 reply
  • 77 views

Forum|alt.badge.img+2

Has anyone tried calling/triggering a list of MPMs from within a custom MPM. I have a requirement of calling other MPMs (custom and OOTB) from within the code. Updating objects in both FSM as well as PSO.

 

 

Best answer by Saranga Amaraweera

@KKK ,

You may need to write a common method to call the perform messages in your custom mpm by taking the message_name, parameters as input parameters and then the method implementation to be built on a manager class. Further you could have a list to store the mpm names and check whether the matching messages are contained in the list of items to be executed in your code. Also, you might require reflection if you need to invoke the methods of indirect assemblies.

1 reply

Saranga Amaraweera
Superhero
Forum|alt.badge.img+22

@KKK ,

You may need to write a common method to call the perform messages in your custom mpm by taking the message_name, parameters as input parameters and then the method implementation to be built on a manager class. Further you could have a list to store the mpm names and check whether the matching messages are contained in the list of items to be executed in your code. Also, you might require reflection if you need to invoke the methods of indirect assemblies.