Class RemoteKieFormsProvider
- java.lang.Object
-
- org.jbpm.kie.services.impl.form.provider.AbstractFormProvider
-
- org.kie.server.services.jbpm.ui.form.RemoteKieFormsProvider
-
- All Implemented Interfaces:
org.jbpm.kie.services.impl.form.FormProvider,UIFormProvider
public class RemoteKieFormsProvider extends org.jbpm.kie.services.impl.form.provider.AbstractFormProvider implements UIFormProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gson.Gsongsonstatic StringMULTIPLE_SUBFORMstatic StringMULTIPLE_SUBFORM_CREATION_FORM_PROPERTYstatic StringMULTIPLE_SUBFORM_EDITION_FORM_PROPERTYprotected com.google.gson.JsonParserparserstatic StringSUBFORMstatic StringSUBFORM_FORM_PROPERTY
-
Constructor Summary
Constructors Constructor Description RemoteKieFormsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.jbpm.kie.services.impl.FormManagerService formManagerService)Invoked only once when first time loading the service so each provider will get the same instance of formManagerServiceprotected com.google.gson.JsonObjectfindForm(String id, Collection<String> availableForms)protected StringgenerateRenderingContextString(String formContent, Map<String,String> availableForms)protected StringgetFormExtension()intgetPriority()Return priority that defines how form providers are evaluatedStringgetType()Returns type of the form that is being returned - depends on form provider impl.protected voidparseFormContent(com.google.gson.JsonObject jsonForm, Map<String,Object> contextForms, Collection<String> availableForms)protected voidparseFormContent(String formId, Map<String,Object> contextForms, Collection<String> availableForms)protected Stringrender(String formName, String deploymentId)Stringrender(String name, org.jbpm.services.api.model.ProcessDefinition process, Map<String,Object> renderContext)Rendering of process formStringrender(String name, org.kie.api.task.model.Task task, org.jbpm.services.api.model.ProcessDefinition process, Map<String,Object> renderContext)Rendering of task form
-
-
-
Field Detail
-
SUBFORM
public static final String SUBFORM
- See Also:
- Constant Field Values
-
SUBFORM_FORM_PROPERTY
public static final String SUBFORM_FORM_PROPERTY
- See Also:
- Constant Field Values
-
MULTIPLE_SUBFORM
public static final String MULTIPLE_SUBFORM
- See Also:
- Constant Field Values
-
MULTIPLE_SUBFORM_CREATION_FORM_PROPERTY
public static final String MULTIPLE_SUBFORM_CREATION_FORM_PROPERTY
- See Also:
- Constant Field Values
-
MULTIPLE_SUBFORM_EDITION_FORM_PROPERTY
public static final String MULTIPLE_SUBFORM_EDITION_FORM_PROPERTY
- See Also:
- Constant Field Values
-
parser
protected com.google.gson.JsonParser parser
-
gson
protected com.google.gson.Gson gson
-
-
Method Detail
-
getPriority
public int getPriority()
Description copied from interface:UIFormProviderReturn priority that defines how form providers are evaluated- Specified by:
getPriorityin interfaceorg.jbpm.kie.services.impl.form.FormProvider- Specified by:
getPriorityin interfaceUIFormProvider
-
getType
public String getType()
Description copied from interface:UIFormProviderReturns type of the form that is being returned - depends on form provider impl.- Specified by:
getTypein interfaceUIFormProvider- Returns:
- type of the content
-
configure
public void configure(org.jbpm.kie.services.impl.FormManagerService formManagerService)
Description copied from interface:UIFormProviderInvoked only once when first time loading the service so each provider will get the same instance of formManagerService- Specified by:
configurein interfaceUIFormProvider
-
render
public String render(String name, org.jbpm.services.api.model.ProcessDefinition process, Map<String,Object> renderContext)
Description copied from interface:UIFormProviderRendering of process form- Specified by:
renderin interfaceorg.jbpm.kie.services.impl.form.FormProvider- Specified by:
renderin interfaceUIFormProvider
-
render
public String render(String name, org.kie.api.task.model.Task task, org.jbpm.services.api.model.ProcessDefinition process, Map<String,Object> renderContext)
Description copied from interface:UIFormProviderRendering of task form- Specified by:
renderin interfaceorg.jbpm.kie.services.impl.form.FormProvider- Specified by:
renderin interfaceUIFormProvider
-
generateRenderingContextString
protected String generateRenderingContextString(String formContent, Map<String,String> availableForms)
-
parseFormContent
protected void parseFormContent(com.google.gson.JsonObject jsonForm, Map<String,Object> contextForms, Collection<String> availableForms)
-
parseFormContent
protected void parseFormContent(String formId, Map<String,Object> contextForms, Collection<String> availableForms)
-
findForm
protected com.google.gson.JsonObject findForm(String id, Collection<String> availableForms)
-
getFormExtension
protected String getFormExtension()
- Overrides:
getFormExtensionin classorg.jbpm.kie.services.impl.form.provider.AbstractFormProvider
-
-