Search in sources :

Example 1 with XmlAPIResolverFactory

use of org.wso2.carbon.bpmn.core.types.datatypes.xml.XmlAPIResolverFactory in project carbon-business-process by wso2.

the class ActivitiEngineBuilder method setResolverFactories.

/**
 * Function to register resolver factories that used by script engines and JUEL
 * @param processEngineConfiguration
 */
private void setResolverFactories(ProcessEngineConfigurationImpl processEngineConfiguration) {
    List<ResolverFactory> resolverFactories = new ArrayList<>();
    // Resolvers from Activiti
    resolverFactories.add(new VariableScopeResolverFactory());
    resolverFactories.add(new BeansResolverFactory());
    // Resolvers added for WSO2 BPS
    resolverFactories.add(new XmlAPIResolverFactory());
    resolverFactories.add(new JsonAPIResolverFactory());
    processEngineConfiguration.setResolverFactories(resolverFactories);
}
Also used : JsonAPIResolverFactory(org.wso2.carbon.bpmn.core.types.datatypes.json.JsonAPIResolverFactory) XmlAPIResolverFactory(org.wso2.carbon.bpmn.core.types.datatypes.xml.XmlAPIResolverFactory) BeansResolverFactory(org.activiti.engine.impl.scripting.BeansResolverFactory) ArrayList(java.util.ArrayList) BeansResolverFactory(org.activiti.engine.impl.scripting.BeansResolverFactory) VariableScopeResolverFactory(org.activiti.engine.impl.scripting.VariableScopeResolverFactory) JsonAPIResolverFactory(org.wso2.carbon.bpmn.core.types.datatypes.json.JsonAPIResolverFactory) XmlAPIResolverFactory(org.wso2.carbon.bpmn.core.types.datatypes.xml.XmlAPIResolverFactory) ResolverFactory(org.activiti.engine.impl.scripting.ResolverFactory) VariableScopeResolverFactory(org.activiti.engine.impl.scripting.VariableScopeResolverFactory)

Aggregations

ArrayList (java.util.ArrayList)1 BeansResolverFactory (org.activiti.engine.impl.scripting.BeansResolverFactory)1 ResolverFactory (org.activiti.engine.impl.scripting.ResolverFactory)1 VariableScopeResolverFactory (org.activiti.engine.impl.scripting.VariableScopeResolverFactory)1 JsonAPIResolverFactory (org.wso2.carbon.bpmn.core.types.datatypes.json.JsonAPIResolverFactory)1 XmlAPIResolverFactory (org.wso2.carbon.bpmn.core.types.datatypes.xml.XmlAPIResolverFactory)1