Generator Plugin

Usages

The Generator Plugin allows you to extend the method of generating or scaffolding an app based on the current working form in Form Builder - Generate App feature. A usable Generator Plugin must extend the org.joget.apps.generator.model.GeneratorPlugin abstract class.

Abstract Class

org.joget.apps.generator.model.GeneratorPlugin

Abstract Methods

generate

public abstract org.joget.apps.generator.model.GeneratorResult generate()
Execute the generator to generate/scaffolding work for app based on current working form. Please utilize GeneratorUtil in the generation logic.

getExplanation

public abstract java.lang.String getExplanation()
Gets the explanation and usage for this generator to display for admin user.

Overridable Methods

isDisabled

public boolean isDisabled()

Utility Methods

getFormId

public java.lang.String getFormId()
Gets the current working form id.

setFormId

public void setFormId(java.lang.String formId)
Sets the current working form id.

getAppDefinition

public org.joget.apps.app.model.AppDefinition getAppDefinition()
Gets the current working App Definition.

setAppDefinition

public void setAppDefinition(org.joget.apps.app.model.AppDefinition appDef)
Sets the current working App Definition.

getDefaultPropertyValues

public java.lang.String getDefaultPropertyValues()
Convenience method to get default properties from Plugin Properties Options.

 

Plugin Properties Options

Tutorials

Related Community Plugins

  • Not available

Created by Damian Last modified by Aadrian on Dec 13, 2024