Joget DX 8 Stable Released
The stable release for Joget DX 8 is now available, with a focus on UX and Governance.
import org.joget.apps.app.model.AppDefinition; import org.joget.apps.app.service.AppUtil; import org.joget.apps.generator.service.GeneratorUtil; String formId = "crm_account"; AppDefinition appDef = AppUtil.getCurrentAppDefinition(); String content = "This is a test string for form [formId] in app [appName]"; //Change the syntax to form meta content = GeneratorUtil.populateFormMeta(content, formId, appDef);
public static java.lang.String addCategoryJsonToUserviewJson(java.lang.String categoryJson, java.lang.String userviewJson)
Adds an userview category json to an existing userview json
public static java.lang.String addParticipantsAndProcessXmlToXpdl(java.lang.String participantsXml, java.lang.String processXml, java.lang.String xpdl) throws java.lang.RuntimeException
Add participants xml and process xml to an existing xpdl
public static java.lang.String createNewUserviewJson(java.lang.String userviewId, java.lang.String userviewName, java.lang.String userviewDescription)
Creates a new userview definition json
public static java.lang.String createNewUserviewJson(java.lang.String userviewId, java.lang.String userviewName, java.lang.String userviewDescription, org.joget.apps.app.dao.UserviewDefinition copy)
Creates a new userview definition json based another userview definition
public static java.lang.String createProcessPackageXpdl(org.joget.apps.app.model.AppDefinition appDef)
Create a XPDL with empty process package
public static java.lang.String getFirstAvailableListIdByFormId(org.joget.apps.app.model.AppDefinition appDef, java.lang.String formId)
Retrieves a List id which using the form id in binder
public static java.lang.String getFirstAvailableUserviewId(org.joget.apps.app.model.AppDefinition appDef)
Retrieves the first userview id in the app
public static org.joget.apps.form.model.Form getFormObject(java.lang.String formId, org.joget.apps.app.model.AppDefinition appDef) throws java.lang.RuntimeException
Gets the Form object by Id
public static java.lang.String populateFormMeta(java.lang.String content, java.lang.String formId, org.joget.apps.app.model.AppDefinition appDef)
Method used to replaces syntax below to form meta value.
[formId], [formName], [formTableName], [appId], [appName] & [appVersion]