public class RemoteKieFormsProvider extends org.jbpm.kie.services.impl.form.provider.AbstractFormProvider implements UIFormProvider
| Modifier and Type | Field and Description |
|---|---|
protected com.google.gson.Gson |
gson |
static String |
MULTIPLE_SUBFORM |
static String |
MULTIPLE_SUBFORM_CREATION_FORM_PROPERTY |
static String |
MULTIPLE_SUBFORM_EDITION_FORM_PROPERTY |
protected com.google.gson.JsonParser |
parser |
static String |
SUBFORM |
static String |
SUBFORM_FORM_PROPERTY |
| Constructor and Description |
|---|
RemoteKieFormsProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(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 formManagerService
|
protected com.google.gson.JsonObject |
findForm(String id,
Collection<String> availableForms) |
protected String |
generateRenderingContextString(String formContent,
Map<String,String> availableForms) |
protected String |
getFormExtension() |
int |
getPriority()
Return priority that defines how form providers are evaluated
|
String |
getType()
Returns type of the form that is being returned - depends on form provider impl.
|
protected void |
parseFormContent(com.google.gson.JsonObject jsonForm,
Map<String,Object> contextForms,
Collection<String> availableForms) |
protected void |
parseFormContent(String formId,
Map<String,Object> contextForms,
Collection<String> availableForms) |
String |
render(String name,
org.jbpm.services.api.model.ProcessDefinition process,
Map<String,Object> renderContext)
Rendering of process form
|
protected String |
render(String formName,
String deploymentId) |
String |
render(String name,
org.kie.api.task.model.Task task,
org.jbpm.services.api.model.ProcessDefinition process,
Map<String,Object> renderContext)
Rendering of task form
|
public static final String SUBFORM
public static final String SUBFORM_FORM_PROPERTY
public static final String MULTIPLE_SUBFORM
public static final String MULTIPLE_SUBFORM_CREATION_FORM_PROPERTY
public static final String MULTIPLE_SUBFORM_EDITION_FORM_PROPERTY
protected com.google.gson.JsonParser parser
protected com.google.gson.Gson gson
public int getPriority()
UIFormProvidergetPriority in interface org.jbpm.kie.services.impl.form.FormProvidergetPriority in interface UIFormProviderpublic String getType()
UIFormProvidergetType in interface UIFormProviderpublic void configure(org.jbpm.kie.services.impl.FormManagerService formManagerService)
UIFormProviderconfigure in interface UIFormProviderpublic String render(String name, org.jbpm.services.api.model.ProcessDefinition process, Map<String,Object> renderContext)
UIFormProviderrender in interface org.jbpm.kie.services.impl.form.FormProviderrender in interface UIFormProviderpublic String render(String name, org.kie.api.task.model.Task task, org.jbpm.services.api.model.ProcessDefinition process, Map<String,Object> renderContext)
UIFormProviderrender in interface org.jbpm.kie.services.impl.form.FormProviderrender in interface UIFormProviderprotected String generateRenderingContextString(String formContent, Map<String,String> availableForms)
protected void parseFormContent(com.google.gson.JsonObject jsonForm,
Map<String,Object> contextForms,
Collection<String> availableForms)
protected void parseFormContent(String formId, Map<String,Object> contextForms, Collection<String> availableForms)
protected com.google.gson.JsonObject findForm(String id, Collection<String> availableForms)
protected String getFormExtension()
getFormExtension in class org.jbpm.kie.services.impl.form.provider.AbstractFormProviderCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.