Tenant and user name global variables
Anytime the data integration Flow is executed, the following global variables are set automatically:
-
request_tenant_name
: a tenant name. Empty if the Flow is executed under the main account. Read about tenants. -
request_user_name
: a name of the user.
You can access these global variables programmatically:
// props is a java.util.HashMap<String, String>
var props = com.toolsverse.config.SystemConfig.instance().getProperties();
// use the same key you stored in props.put(...)
var tenant = props.get("request_tenant_name");
var user = props.get("request_user_name");
Request ID and Flow ID
You can access requestId
- the unique execution id displayed in Flow Statistics dashboard:
and flowId
using the following code:
var requestId = com.toolsverse.config.SystemConfig.instance().getEtlThreadContext().getRequestId();
var flowId = com.toolsverse.config.SystemConfig.instance().getEtlThreadContext().getFlowId();
Comments
0 comments
Please sign in to leave a comment.