To select a profile based on run mode in a portlet, use the WPS Execution Mode Handler.
This handler is for creating models that vary depending on whether they are running standalone or in a IBM® WebSphere® Portal server. This handler returns Portal if the model is currently running as a portlet in a WebSphere Portal server; or Standalone if running standalone.
To use this handler, you create a profile set that has two profiles called Portal and Standalone. Choose WPS Execution Mode Handler as the selection handler. In your models, you can profile builder inputs to this profile set. For example, you can make it so that portal-only functionality (such as calling WebSphere Portal APIs) is disabled when running the model runs standalone. This can be very useful for developing or testing, so that you can run your models standalone and also have extra functionality when running in a WebSphere Portal environment.
Parent topic: Profiling based on the group: wpf7