org.activiti.engine.impl.variable.SerializableType Java Examples
The following examples show how to use
org.activiti.engine.impl.variable.SerializableType.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AlfrescoProcessEngineConfiguration.java From alfresco-repository with GNU Lesser General Public License v3.0 | 6 votes |
@Override protected void initVariableTypes() { super.initVariableTypes(); // Add custom types before SerializableType if (customTypes != null) { int serializableIndex = variableTypes.getTypeIndex(SerializableType.TYPE_NAME); for (VariableType type : customTypes) { variableTypes.addType(type, serializableIndex); } } // WOR-171: Replace string type by custom one to handle large text-values int stringIndex = variableTypes.getTypeIndex("string"); variableTypes.removeType(variableTypes.getVariableType("string")); variableTypes.addType(new CustomStringVariableType(), stringIndex); }
Example #2
Source File: ProcessEngineConfigurationImpl.java From flowable-engine with Apache License 2.0 | 6 votes |
protected void initJpa() { if (jpaPersistenceUnitName != null) { jpaEntityManagerFactory = JpaHelper.createEntityManagerFactory(jpaPersistenceUnitName); } if (jpaEntityManagerFactory != null) { sessionFactories.put(EntityManagerSession.class, new EntityManagerSessionFactory(jpaEntityManagerFactory, jpaHandleTransaction, jpaCloseEntityManager)); VariableType jpaType = variableTypes.getVariableType(JPAEntityVariableType.TYPE_NAME); // Add JPA-type if (jpaType == null) { // We try adding the variable right before SerializableType, if available int serializableIndex = variableTypes.getTypeIndex(SerializableType.TYPE_NAME); if (serializableIndex > -1) { variableTypes.addType(new JPAEntityVariableType(), serializableIndex); } else { variableTypes.addType(new JPAEntityVariableType()); } } jpaType = variableTypes.getVariableType(JPAEntityListVariableType.TYPE_NAME); // Add JPA-list type after regular JPA type if not already present if (jpaType == null) { variableTypes.addType(new JPAEntityListVariableType(), variableTypes.getTypeIndex(JPAEntityVariableType.TYPE_NAME)); } } }
Example #3
Source File: MockVariableScope.java From lemon with Apache License 2.0 | 6 votes |
public MockVariableScope(Integer eventCode, String eventName, ModelInfoDTO modelInfo, String userId, String activityId, String activityName) { usedVariablesCache.put("eventCode", VariableInstanceEntity.create( "eventCode", new IntegerType(), eventCode)); usedVariablesCache.put("eventName", VariableInstanceEntity.create( "eventName", new StringType(64), eventName)); usedVariablesCache.put("modelInfo", VariableInstanceEntity.create( "modelInfo", new SerializableType(), modelInfo)); usedVariablesCache.put("userId", VariableInstanceEntity.create( "userId", new StringType(64), userId)); usedVariablesCache.put("activityId", VariableInstanceEntity.create( "activityId", new StringType(64), activityId)); usedVariablesCache.put("activityName", VariableInstanceEntity.create( "activityName", new StringType(64), activityName)); }