Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
import javax.servlet.http.HttpServletRequest; import org.joget.workflow.util.WorkflowUtil; //get the HTTP request HttpServletRequest request = WorkflowUtil.getHttpServletRequest();
public static void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message)
public static void addAuditTrail(java.lang.String clazz, java.lang.String method, java.lang.String message, java.lang.Class[] paramTypes, java.lang.Object[] args, java.lang.Object returnObject)
Convenient method used to add an audit trail
public static boolean containsHashVariable(java.lang.String content)
Check if the content contains hash (#) character
public static java.lang.String processVariable(java.lang.String content, java.lang.String formDataTable, org.joget.workflow.model.WorkflowAssignment wfAssignment)
Parse and replace the Hash Variable in content
public static java.lang.String processVariable(java.lang.String content, java.lang.String formDataTable, org.joget.workflow.model.WorkflowAssignment wfAssignment, java.lang.String escapeFormat)
Parse and replace the Hash Variable in content. Option to escape with a format
public static java.lang.String processVariable(java.lang.String content, java.lang.String formDataTable, org.joget.workflow.model.WorkflowAssignment wfAssignment, java.lang.String escapeFormat, java.util.Map<java.lang.String, java.lang.String> replaceMap)
Parse and replace the Hash Variable in content. Option to escape with a format and replace keywords.
public static org.springframework.context.ApplicationContext getApplicationContext()
Utility method to retrieve the ApplicationContext of the system
public static java.util.List<java.lang.String> getAssignmentUsers(java.lang.String packageId, java.lang.String procDefId, java.lang.String procId, java.lang.String version, java.lang.String actId, java.lang.String requesterUsername, java.lang.String participantId)
Retrieve users for assignment based on participant mapping
public static java.lang.String getCurrentUserFullName()
Convenient method used to get the full name of current logged in user
public static java.lang.String getCurrentUsername()
Convenient method used to get current logged in user
public static javax.servlet.http.HttpServletRequest getHttpServletRequest()
Returns the HTTP Servlet Request associated with the current thread.
Return The HTTP request if it is available. If the request is not available, e.g. when triggered from a deadline, null is returned.
public static javax.servlet.http.HttpServletResponse getHttpServletResponse()
Returns the HTTP Servlet Response associated with the current thread.
Return The HTTP Response if it is available. If the response is not available, e.g. when triggered from a deadline, null is returned.
public static java.lang.String getProcessDefIdWithoutVersion(java.lang.String processDefId)
Retrieves the process definition ID without the version and package.
public static java.lang.String getProcessDefPackageId(java.lang.String processDefId)
Retrieves the package ID from the process definition ID.
public static java.lang.String getProcessDefVersion(java.lang.String processDefId)
Retrieves the version from the process definition.
public static java.lang.String getServiceLevelIndicator(double value)
Method used to get the HTML indicator of service level based on value and system setting
public static java.lang.String getSystemSetupValue(java.lang.String propertyName)
Convenient method used to get a value of system setting
public static java.lang.String getUserAttribute(java.lang.String username, java.lang.String attribute)
Convenient method used to get an attribute value from user
public static boolean isCurrentUserAnonymous()
Convenient method used to check the current logged in user is an anonymous user
public static boolean isCurrentUserInRole(java.lang.String role)
Convenient method used to check the current logged in user has a role