License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • org.joget.apps.app.service.AppUtil
  • Under wflow-core module
  • Utility methods is used by App in runtime

Code Sample

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

import org.joget.apps.app.service.AppUtil;
 
//gets the system/user selected locale
String localeCode = AppUtil.getAppLocale();

Fields

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

PREFIX_WORKFLOW_VARIABLE
public static final String PREFIX_WORKFLOW_VARIABLE = "var_";

Prefix of a request parameter to indicate the parameter is to used to sets the workflow variable.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

PROPERTY_WORKFLOW_VARIABLE
public static final String PROPERTY_WORKFLOW_VARIABLE = "workflowVariable";

Property key to retrieves the workflow variable name from a form field property

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

Methods

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

containsHashVariable
public static boolean containsHashVariable(java.lang.String content)

Used to checks a content may contains Hash Variable or not

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

convertVersionToLong
public static java.lang.Long convertVersionToLong(java.lang.String version)

Converts a String version to its Long equivalent.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

escapeHashVariable
public static java.lang.String escapeHashVariable(java.lang.String content)

Used to escapes all the Hash Variables found in the content

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getAppDateFormat
public static java.lang.String getAppDateFormat()

Read date format from Setup

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getApplicationContext
public static org.springframework.context.ApplicationContext getApplicationContext()

Utility method to retrieve the ApplicationContext of the system

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getAppLocale
public static java.lang.String getAppLocale()

Read locale from Setup

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getCurrentAppDefinition
public static org.joget.apps.app.model.AppDefinition getCurrentAppDefinition()

Retrieve the AppDefinition for the current thread.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getDesignerWebBaseUrl
public static java.lang.String getDesignerWebBaseUrl()

Returns the URL to the workflow web designer

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getDesignerContextPath
public static java.lang.String getDesignerContextPath()

Used by system to gets designer context path

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getEmailList
public static java.util.Collection<java.lang.String> getEmailList(java.lang.String toParticipantId, java.lang.String toSpecific, org.joget.workflow.model.WorkflowAssignment wfAssignment, org.joget.apps.app.model.AppDefinition appDef)

Used to retrieves email list based on Participant Id and To email string. Username will auto convert to email address belongs to the user.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getProcessDefIdWithVersion
public static java.lang.String getProcessDefIdWithVersion(java.lang.String appId, java.lang.String version, java.lang.String processDefId)

Forms the full process definition ID which includes the package and version.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getRequestContextPath
public static java.lang.String getRequestContextPath()

Convenience method to retrieve the current request context path

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getSystemAlert
public static java.lang.String getSystemAlert()

Used by system to retrieves the once time HTML to append on the page load. The once time HTML will be remove after this method call.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getSystemVersion
public static java.lang.String getSystemVersion()

Returns the current system version.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

getUserviewThemeCss
public static java.lang.String getUserviewThemeCss()

Get the userview theme css depends on the userview parameter in request

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

isAppDefinitionReset
public static boolean isAppDefinitionReset() throws org.springframework.beans.BeansException

Method used by system to check whether there is an AppDefinition exist in current thread

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

isQuickEditEnabled
public static boolean isQuickEditEnabled()

Checks system settings whether front-end quick edit is enabled.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

processHashVariable
public static java.lang.String processHashVariable(java.lang.String content, org.joget.workflow.model.WorkflowAssignment wfAssignment, java.lang.String escapeFormat, java.util.Map<java.lang.String, java.lang.String> replaceMap)

Used to parses Hash Variables found in the content and replace it to the Hash Variable value

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

processHashVariable
public static java.lang.String processHashVariable(java.lang.String content, org.joget.workflow.model.WorkflowAssignment wfAssignment, java.lang.String escapeFormat, java.util.Map<java.lang.String, java.lang.String> replaceMap, org.joget.apps.app.model.AppDefinition appDef) 

Used to parses Hash Variables found in the content and replace it to the Hash Variable value

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

readPluginResource
public static java.lang.String readPluginResource(java.lang.String pluginName, java.lang.String resourceUrl)

Reads a resource from a plugin

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

readPluginResource
public static java.lang.String readPluginResource(java.lang.String pluginName, java.lang.String resourceUrl, java.lang.Object[] arguments, boolean removeNewLines)

Reads a resource from a plugin. java.util.Formatter text patterns supported.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

readPluginResource
public static java.lang.String readPluginResource(java.lang.String pluginName, java.lang.String resourceUrl, java.lang.Object[] arguments, boolean removeNewLines, java.lang.String translationFileName)

Reads a resource from a plugin. java.util.Formatter text patterns supported.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

resetAppDefinition
public static void resetAppDefinition() throws org.springframework.beans.BeansException

Method used by system to clear the AppDefinition of current thread once the request is processing finish

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

retrieveVariableDataFromMap
public static java.util.Map<java.lang.String, java.lang.String> retrieveVariableDataFromMap(java.util.Map parameters)

Retrieves workflow variable values from a Map and populate into another Map

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

retrieveVariableDataFromRequest
public static java.util.Map<java.lang.String, java.lang.String> retrieveVariableDataFromRequest(javax.servlet.http.HttpServletRequest request)

Retrieves workflow variable values from request parameters and populate into a Map

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setCurrentAppDefinition
public static void setCurrentAppDefinition(org.joget.apps.app.model.AppDefinition appDef) throws org.springframework.beans.BeansException

Ties an AppDefinition to the current thread.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setDesignerContextPath
public static void setDesignerContextPath(java.lang.String path)

Used by system to sets designer context path

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

setSystemAlert
public static void setSystemAlert(java.lang.String value)

Used to set an once time HTML which will append to the page when next page load.

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

writeJson
public static void writeJson(java.io.Writer writer, org.json.JSONObject jsonObject, java.lang.String callback) throws java.io.IOException, org.json.JSONException

Convenient method used to write JSON Object to the response

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

writeJson
public static void writeJson(java.io.Writer writer, org.json.JSONArray jsonArray, java.lang.String callback) throws java.io.IOException, org.json.JSONException

Convenient method used to write JSON Array to the response

License Error

The license of the app Translations for Confluence (formerly Language Macros) has expired. Please renew the license.

  • No labels