Created
September 20, 2018 12:03
-
-
Save chumpa/a2deccbf480e70bfda2e68309a1b8239 to your computer and use it in GitHub Desktop.
rsugio-cpi-001-showVersion-tenantInfo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.sap.gateway.ip.core.customdev.util.Message as CpiMsg | |
// tenant information | |
// ilya.kuznetsov@sap.com | |
CpiMsg r001showVersion_tenantInfo(CpiMsg msg) { | |
String hn = msg.headers.host | |
String tenantName = System.properties['com.sap.it.node.tenant.name'] | |
msg.setBody("tenant $tenantName, host $hn" as String) | |
msg | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment