Genpact Cora Knowledge Center

Support

Runtime Expressions (rt)

Runtime expressions include runtime context data and metadata that you access using the rt prefix, and 1-n per user session. You can only use runtime expressions during runtime. You cannot use runtime expressions in business rule expressions or for composing a message.

Runtime expressions enable users to retrieve any data related to the runtime context, for example:

  • User's display name: rt.CurrentUser.DisplayName
  • HTTP request query string: rt.HttpRequest.QueryString["ItemID"]
  • Server variables: rt.HttpRequest.ServerVariables["SERVER_NAME"]

From the runtime object, you can get to the workflow instance using rt.workflowinstance.