Class ServiceParameterUtil
java.lang.Object
com.flowable.serviceregistry.engine.impl.util.ServiceParameterUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static ServiceInputParameterprotected static ServiceOutputParametercolumnMappingToOutputParameter(ColumnMapping mapping, Supplier<ServiceRegistryDataObjectModel> currentModelSupplier, Function<String, ServiceRegistryDataObjectModel> dataObjectModelProvider) protected static voidconfigureSchemaPropertyNode(tools.jackson.databind.node.ObjectNode propertyNode, ServiceParameter serviceParameter) static ObjectconvertJsonParameterValue(String parameterName, tools.jackson.databind.JsonNode value, tools.jackson.databind.ObjectMapper objectMapper) static ObjectconvertParameterValue(String parameterName, String type, Object value, tools.jackson.databind.ObjectMapper objectMapper, org.flowable.common.engine.impl.el.ExpressionManager expressionManager, org.flowable.common.engine.api.variable.VariableContainer variableContainer) static ObjectconvertParameterValueConsiderTypeReference(ServiceDefinition serviceDefinition, String parameterName, String type, TypeReference typeReference, Object value, tools.jackson.databind.ObjectMapper objectMapper) protected static ObjectcreateDataDictionaryTypedObject(ServiceDefinition serviceDefinition, String name, Object data, TypeReference typeReference) static Collection<ServiceInputParameter> extractServiceInputParameters(ServiceDefinitionModel model, ServiceOperation operation) static Collection<ServiceOutputParameter> extractServiceOutputParameters(ServiceDefinitionModel model, ServiceOperation operation, ServiceInvocationContextImpl context) static Collection<ServiceOutputParameter> static Collection<ServiceOutputParameter> extractServiceOutputParameters(ServiceDefinitionModel model, Supplier<ServiceRegistryDataObjectModel> currentModelSupplier, Function<String, ServiceRegistryDataObjectModel> dataObjectModelProvider) static StringgenerateInputSchema(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, tools.jackson.databind.ObjectMapper objectMapper) static StringgenerateOutputSchema(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContextImpl invocationContext, tools.jackson.databind.ObjectMapper objectMapper) static StringgetParameterName(ServiceParameter parameter) protected static StringgetParentDeploymentId(ServiceDefinition serviceDefinition, ServiceRegistryEngineConfiguration configuration) static voidinitializeMissingInputParameters(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationVariablesContainer variablesContainer) Ensures all declared input parameters exist in the variables container, adding null for any that are missing.
-
Constructor Details
-
ServiceParameterUtil
public ServiceParameterUtil()
-
-
Method Details
-
convertParameterValue
-
convertParameterValueConsiderTypeReference
public static Object convertParameterValueConsiderTypeReference(ServiceDefinition serviceDefinition, String parameterName, String type, TypeReference typeReference, Object value, tools.jackson.databind.ObjectMapper objectMapper) -
convertJsonParameterValue
-
initializeMissingInputParameters
public static void initializeMissingInputParameters(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationVariablesContainer variablesContainer) Ensures all declared input parameters exist in the variables container, adding null for any that are missing. This prevents expression evaluation from failing on unresolved identifiers. -
extractServiceInputParameters
public static Collection<ServiceInputParameter> extractServiceInputParameters(ServiceDefinitionModel model, ServiceOperation operation) -
extractServiceOutputParameters
public static Collection<ServiceOutputParameter> extractServiceOutputParameters(ServiceDefinitionModel model, ServiceOperation operation, ServiceInvocationContextImpl context) -
extractServiceOutputParameters
public static Collection<ServiceOutputParameter> extractServiceOutputParameters(ServiceDefinitionModel model, ServiceInvocationContextImpl context) -
extractServiceOutputParameters
public static Collection<ServiceOutputParameter> extractServiceOutputParameters(ServiceDefinitionModel model, Supplier<ServiceRegistryDataObjectModel> currentModelSupplier, Function<String, ServiceRegistryDataObjectModel> dataObjectModelProvider) -
columnMappingToInputParameter
-
columnMappingToOutputParameter
protected static ServiceOutputParameter columnMappingToOutputParameter(ColumnMapping mapping, Supplier<ServiceRegistryDataObjectModel> currentModelSupplier, Function<String, ServiceRegistryDataObjectModel> dataObjectModelProvider) -
getParameterName
-
createDataDictionaryTypedObject
protected static Object createDataDictionaryTypedObject(ServiceDefinition serviceDefinition, String name, Object data, TypeReference typeReference) -
getParentDeploymentId
protected static String getParentDeploymentId(ServiceDefinition serviceDefinition, ServiceRegistryEngineConfiguration configuration) -
generateInputSchema
public static String generateInputSchema(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, tools.jackson.databind.ObjectMapper objectMapper) -
generateOutputSchema
public static String generateOutputSchema(ServiceDefinitionModel serviceDefinition, ServiceOperation serviceOperation, ServiceInvocationContextImpl invocationContext, tools.jackson.databind.ObjectMapper objectMapper) -
configureSchemaPropertyNode
protected static void configureSchemaPropertyNode(tools.jackson.databind.node.ObjectNode propertyNode, ServiceParameter serviceParameter)
-