Date: Tue, 19 Mar 2024 02:13:38 +0000 (UTC) Message-ID: <2075642043.91768.1710814418853@ip-10-0-0-39.us-west-2.compute.internal> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_91767_1228590259.1710814418849" ------=_Part_91767_1228590259.1710814418849 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
import = javax.servlet.http.HttpServletRequest; import org.joget.workflow.util.WorkflowUtil; //get the HTTP request HttpServletRequest request =3D WorkflowUtil.getHttpServletRequest();
public static void addAuditTrail(java.l= ang.String clazz, java.lang.String method, java.lang.String message)
Convenient method used to add a simple au= dit trail
public static void addAuditTrail(java.l= ang.String clazz, java.lang.String method, java.lang.String message, java.l= ang.Class[] paramTypes, java.lang.Object[] args, java.lang.Object returnObj= ect)
Convenient method used to add an audit tr= ail
public static boolean containsHashVaria= ble(java.lang.String content)
Check if the content contains hash (#) ch= aracter
public static java.lang.String processV= ariable(java.lang.String content, java.lang.String formDataTable, org.joget= .workflow.model.WorkflowAssignment wfAssignment)
Parse and replace the Hash Variable in co= ntent
public static java.lang.String processV= ariable(java.lang.String content, java.lang.String formDataTable, org.joget= .workflow.model.WorkflowAssignment wfAssignment, java.lang.String escapeFor= mat)
Parse and replace the Hash Variable in co= ntent. Option to escape with a format
public static java.lang.String processV= ariable(java.lang.String content, java.lang.String formDataTable, org.joget= .workflow.model.WorkflowAssignment wfAssignment, java.lang.String escapeFor= mat, java.util.Map<java.lang.String, java.lang.String> replaceMap)Parse and replace the Hash Variable in co= ntent. Option to escape with a format and replace keywords.
getApplicationContext
public static org.springframework.conte= xt.ApplicationContext getApplicationContext()Utility method to retrieve the Applicatio= nContext of the system
g= etAssignmentUsers
public static java.util.List<java.la= ng.String> getAssignmentUsers(java.lang.String packageId, java.lang.Stri= ng procDefId, java.lang.String procId, java.lang.String version, java.lang.= String actId, java.lang.String requesterUsername, java.lang.String particip= antId)Retrieve users for assignment based on pa= rticipant mapping
getCurrentUserFullName
public static java.lang.String getCurre= ntUserFullName()Convenient method used to get the full na= me of current logged in user
g= etCurrentUsername
public static java.lang.String getCurre= ntUsername()Convenient method used to get current log= ged in user
getHttpServletRequest
public static javax.servlet.http.HttpSe= rvletRequest getHttpServletRequest()Returns the HTTP Servlet Request associat= ed with the current thread.
Return The HTTP= request if it is available. If the request is not available, e.g. when tri= ggered from a deadline, null is returned.
getHttpServletResponse
public static javax.servlet.http.HttpSe= rvletResponse getHttpServletResponse()Returns the HTTP Servlet Response associa= ted with the current thread.
Return The HTTP= Response if it is available. If the response is not available, e.g. when t= riggered from a deadline, null is returned.
getProcessDefIdWithoutVersion
public static java.lang.String getProce= ssDefIdWithoutVersion(java.lang.String processDefId)Retrieves the process definition ID witho= ut the version and package.
getProcessDefPackageId
public static java.lang.String getProce= ssDefPackageId(java.lang.String processDefId)Retrieves the package ID from the process= definition ID.
getProcessDefVersion
public static java.lang.String getProce= ssDefVersion(java.lang.String processDefId)Retrieves the version from the process de= finition.
getServiceLevelIndicator
public static java.lang.String getServi= ceLevelIndicator(double value)Method used to get the HTML indicator of = service level based on value and system setting
= getSystemSetupValue
public static java.lang.String getSyste= mSetupValue(java.lang.String propertyName)Convenient method used to get a value of = system setting
get= UserAttribute
public static java.lang.String getUserA= ttribute(java.lang.String username, java.lang.String attribute)Convenient method used to get an attribut= e value from user
isCurrentUserAnonymous
public static boolean isCurrentUserAnon= ymous()Convenient method used to check the curre= nt logged in user is an anonymous user
= isCurrentUserInRole
public static boolean isCurrentUserInRo= le(java.lang.String role)Convenient method used to check the curre= nt logged in user has a role