• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ExpressionManager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.activiti.engine.impl.el.ExpressionManager的典型用法代码示例。如果您正苦于以下问题:Java ExpressionManager类的具体用法?Java ExpressionManager怎么用?Java ExpressionManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



ExpressionManager类属于org.activiti.engine.impl.el包,在下文中一共展示了ExpressionManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: parseExtendProperties

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public static List<ExtendPropertyHandler> parseExtendProperties(BpmnParse bpmnParse, FlowElement element) {

		List<ExtendPropertyHandler> extendProperties = new ArrayList<ExtendPropertyHandler>();
		
		ExpressionManager expressionManager = bpmnParse.getExpressionManager();
		List<ExtensionElement> elements = element.getExtensionElements().get(PROPERTY_EXTEND_ELEMENT_NAME);
		if (elements != null) {
			for (ExtensionElement ee : elements) {

				ExtendPropertyHandler extendProperty = new ExtendPropertyHandler();
				extendProperty.setId(ee.getAttributeValue(null, PROPERTY_EXTEND_ID));
				extendProperty.setName(ee.getAttributeValue(null, PROPERTY_EXTEND_NAME));
				extendProperty.setValue(ee.getAttributeValue(null, PROPERTY_EXTEND_VALUE));
				extendProperty.setType(ee.getAttributeValue(null, PROPERTY_EXTEND_TYPE));

				String expr = ee.getAttributeValue(null, PROPERTY_EXTEND_EXPRESSION);
				if (StringUtils.isNotEmpty(expr)) {
					extendProperty.setExpression(expressionManager.createExpression(expr));
				}

				extendProperties.add(extendProperty);
			}
		}

		return extendProperties;
	}
 
开发者ID:KayuraTeam,项目名称:kayura-activiti,代码行数:27,代码来源:ExtendPropertyUtils.java


示例2: invokeExpression

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public void invokeExpression(String processDefinitionId, String activityId,
        int type) {
    String hql = "from BpmConfListener where bpmConfNode.bpmConfBase.processDefinitionId=? and bpmConfNode.code=? and type=?";
    List<BpmConfListener> bpmConfListeners = bpmConfListenerManager.find(
            hql, processDefinitionId, activityId, type);

    for (BpmConfListener bpmConfListener : bpmConfListeners) {
        String expressionText = bpmConfListener.getValue();

        try {
            ExpressionManager expressionManager = Context
                    .getProcessEngineConfiguration().getExpressionManager();

            Object result = expressionManager.createExpression(
                    expressionText).getValue(
                    Context.getExecutionContext().getExecution());
            logger.info("result : {}", result);
        } catch (Exception ex) {
            logger.error(ex.getMessage(), ex);
        }
    }
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:23,代码来源:FunctionEventListener.java


示例3: executeParse

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
@Override
protected void executeParse(BpmnParse bpmnParse, SequenceFlow sequenceFlow) {

    ScopeImpl scope = bpmnParse.getCurrentScope();

    ActivityImpl sourceActivity = scope.findActivity(sequenceFlow.getSourceRef());
    ActivityImpl destinationActivity = scope.findActivity(sequenceFlow.getTargetRef());

    Expression skipExpression;
    if (StringUtils.isNotEmpty(sequenceFlow.getSkipExpression())) {
        ExpressionManager expressionManager = bpmnParse.getExpressionManager();
        skipExpression = expressionManager.createExpression(sequenceFlow.getSkipExpression());
    } else {
        skipExpression = null;
    }

    TransitionImpl transition = sourceActivity.createOutgoingTransition(sequenceFlow.getId(), skipExpression);
    bpmnParse.getSequenceFlows().put(sequenceFlow.getId(), transition);
    transition.setProperty("name", sequenceFlow.getName());
    transition.setProperty("documentation", sequenceFlow.getDocumentation());
    transition.setDestination(destinationActivity);

    if (StringUtils.isNotEmpty(sequenceFlow.getConditionExpression())) {
        Condition expressionCondition = new UelExpressionCondition(sequenceFlow.getConditionExpression());
        transition.setProperty(PROPERTYNAME_CONDITION_TEXT, sequenceFlow.getConditionExpression());
        transition.setProperty(PROPERTYNAME_CONDITION, expressionCondition);
    }

    createExecutionListenersOnTransition(bpmnParse, sequenceFlow.getExecutionListeners(), transition);

}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:32,代码来源:SequenceFlowParseHandler.java


示例4: getActiveValueSet

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
protected Set<Expression> getActiveValueSet(Set<Expression> originalValues, String propertyName, ObjectNode taskElementProperties) {
    Set<Expression> activeValues = originalValues;
    if (taskElementProperties != null) {
        JsonNode overrideValuesNode = taskElementProperties.get(propertyName);
        if (overrideValuesNode != null) {
            if (overrideValuesNode.isNull() || !overrideValuesNode.isArray() || overrideValuesNode.size() == 0) {
                activeValues = null;
            } else {
                ExpressionManager expressionManager = Context.getProcessEngineConfiguration().getExpressionManager();
                activeValues = new HashSet<>();
                for (JsonNode valueNode : overrideValuesNode) {
                    activeValues.add(expressionManager.createExpression(valueNode.asText()));
                }
            }
        }
    }
    return activeValues;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:19,代码来源:UserTaskActivityBehavior.java


示例5: processExpression

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public void processExpression(DelegateTask delegateTask, String value) {
    UserConnector userConnector = ApplicationContextHelper
            .getBean(UserConnector.class);
    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();
    String processInstanceId = delegateTask.getProcessInstanceId();
    HistoricProcessInstanceEntity historicProcessInstanceEntity = Context
            .getCommandContext().getHistoricProcessInstanceEntityManager()
            .findHistoricProcessInstance(processInstanceId);
    String initiator = historicProcessInstanceEntity.getStartUserId();
    MapVariableScope mapVariableScope = new MapVariableScope();
    mapVariableScope.setVariable("initiator",
            userConnector.findById(initiator));

    Object objectResult = expressionManager.createExpression(value)
            .getValue(mapVariableScope);

    if ((objectResult == null) || (!(objectResult instanceof Boolean))) {
        logger.error("{} is not Boolean, just return", objectResult);

        return;
    }

    Boolean result = (Boolean) objectResult;

    logger.info("value : {}, result : {}", value, result);

    if (result) {
        logger.info("skip task : {}", delegateTask.getId());
        new CompleteTaskWithCommentCmd(delegateTask.getId(),
                Collections.<String, Object> emptyMap(), "跳过")
                .execute(Context.getCommandContext());
    }
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:35,代码来源:SkipTaskListener.java


示例6: checkCopyHumanTask

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public void checkCopyHumanTask(DelegateTask delegateTask,
        HumanTaskDTO humanTaskDto) throws Exception {
    List<BpmConfUser> bpmConfUsers = bpmConfUserManager
            .find("from BpmConfUser where bpmConfNode.bpmConfBase.processDefinitionId=? and bpmConfNode.code=?",
                    delegateTask.getProcessDefinitionId(), delegateTask
                            .getExecution().getCurrentActivityId());
    logger.debug("{}", bpmConfUsers);

    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();

    try {
        for (BpmConfUser bpmConfUser : bpmConfUsers) {
            logger.debug("status : {}, type: {}", bpmConfUser.getStatus(),
                    bpmConfUser.getType());
            logger.debug("value : {}", bpmConfUser.getValue());

            String value = expressionManager
                    .createExpression(bpmConfUser.getValue())
                    .getValue(delegateTask).toString();

            if (bpmConfUser.getStatus() == 1) {
                if (bpmConfUser.getType() == TYPE_COPY) {
                    logger.info("copy humantask : {}, {}",
                            humanTaskDto.getId(), value);
                    this.copyHumanTask(humanTaskDto, value);
                }
            }
        }
    } catch (Exception ex) {
        logger.debug(ex.getMessage(), ex);
    }
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:34,代码来源:HumanTaskEventListener.java


示例7: onCreate

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
@Override
public void onCreate(DelegateTask delegateTask) throws Exception {
    String businessKey = delegateTask.getExecution()
            .getProcessBusinessKey();
    String taskDefinitionKey = delegateTask.getTaskDefinitionKey();

    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();

    try {
        String sql = "select ASSIGNEE from BPM_TASK_CONF where BUSINESS_KEY=? and TASK_DEFINITION_KEY=?";
        String assignee = jdbcTemplate.queryForObject(sql, String.class,
                businessKey, taskDefinitionKey);

        if ((assignee == null) || "".equals(assignee)) {
            return;
        }

        if ((assignee.indexOf("&&") != -1)
                || (assignee.indexOf("||") != -1)) {
            logger.info("assignee : {}", assignee);

            List<String> candidateUsers = new Expr().evaluate(assignee,
                    this);
            logger.info("candidateUsers : {}", candidateUsers);
            delegateTask.addCandidateUsers(candidateUsers);
        } else {
            String value = expressionManager.createExpression(assignee)
                    .getValue(delegateTask).toString();
            delegateTask.setAssignee(value);
        }
    } catch (Exception ex) {
        logger.debug(ex.getMessage(), ex);
    }
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:36,代码来源:TaskConfTaskListener.java


示例8: processExpression

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public void processExpression(DelegateTask delegateTask, String value) {
    UserConnector userConnector = ApplicationContextHelper
            .getBean(UserConnector.class);
    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();
    String processInstanceId = delegateTask.getProcessInstanceId();
    HistoricProcessInstanceEntity historicProcessInstanceEntity = Context
            .getCommandContext().getHistoricProcessInstanceEntityManager()
            .findHistoricProcessInstance(processInstanceId);
    String initiator = historicProcessInstanceEntity.getStartUserId();
    MapVariableScope mapVariableScope = new MapVariableScope();
    mapVariableScope.setVariable("initiator",
            userConnector.findById(initiator));

    Object objectResult = expressionManager.createExpression(value)
            .getValue(mapVariableScope);

    if ((objectResult == null) || (!(objectResult instanceof Boolean))) {
        logger.error("{} is not Boolean, just return", objectResult);

        return;
    }

    Boolean result = (Boolean) objectResult;

    logger.info("value : {}, result : {}", value, result);

    if (result) {
        logger.info("skip task : {}", delegateTask.getId());
        // new CompleteTaskWithCommentCmd(delegateTask.getId(),
        // Collections.<String, Object> emptyMap(), "跳过")
        // .execute(Context.getCommandContext());
        this.doSkip(delegateTask);
    }
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:36,代码来源:SkipEventListener.java


示例9: doSkip

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public void doSkip(DelegateTask delegateTask) {
    delegateTask.getExecution().setVariableLocal(
            "_ACTIVITI_SKIP_EXPRESSION_ENABLED", true);

    TaskDefinition taskDefinition = ((TaskEntity) delegateTask)
            .getTaskDefinition();
    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();
    Expression expression = expressionManager
            .createExpression("${_ACTIVITI_SKIP_EXPRESSION_ENABLED}");
    taskDefinition.setSkipExpression(expression);
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:13,代码来源:SkipEventListener.java


示例10: executeExpression

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
/**
 * 解析表达式.
 */
public Object executeExpression(String taskId, String expressionText) {
    TaskEntity taskEntity = Context.getCommandContext()
            .getTaskEntityManager().findTaskById(taskId);
    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();

    return expressionManager.createExpression(expressionText).getValue(
            taskEntity);
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:13,代码来源:ActivitiInternalProcessConnector.java


示例11: parseConfiguration

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public void parseConfiguration(List<org.activiti.bpmn.model.FormProperty> formProperties, String formKey, DeploymentEntity deployment, ProcessDefinitionEntity processDefinition) {
  this.deploymentId = deployment.getId();
  
  ExpressionManager expressionManager = Context
      .getProcessEngineConfiguration()
      .getExpressionManager();
  
  if (StringUtils.isNotEmpty(formKey)) {
    this.formKey = expressionManager.createExpression(formKey);
  }
  
  FormTypes formTypes = Context
    .getProcessEngineConfiguration()
    .getFormTypes();
  
  for (org.activiti.bpmn.model.FormProperty formProperty : formProperties) {
    FormPropertyHandler formPropertyHandler = new FormPropertyHandler();
    formPropertyHandler.setId(formProperty.getId());
    formPropertyHandler.setName(formProperty.getName());
    
    AbstractFormType type = formTypes.parseFormPropertyType(formProperty);
    formPropertyHandler.setType(type);
    formPropertyHandler.setRequired(formProperty.isRequired());
    formPropertyHandler.setReadable(formProperty.isReadable());
    formPropertyHandler.setWritable(formProperty.isWriteable());
    formPropertyHandler.setVariableName(formProperty.getVariable());

    if (StringUtils.isNotEmpty(formProperty.getExpression())) {
      Expression expression = expressionManager.createExpression(formProperty.getExpression());
      formPropertyHandler.setVariableExpression(expression);
    }

    if (StringUtils.isNotEmpty(formProperty.getDefaultExpression())) {
      Expression defaultExpression = expressionManager.createExpression(formProperty.getDefaultExpression());
      formPropertyHandler.setDefaultExpression(defaultExpression);
    }

    formPropertyHandlers.add(formPropertyHandler);
  }
}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:41,代码来源:DefaultFormHandler.java


示例12: createTimer

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
protected TimerDeclarationImpl createTimer(BpmnParse bpmnParse, TimerEventDefinition timerEventDefinition, ScopeImpl timerActivity, String jobHandlerType) {
  TimerDeclarationType type = null;
  Expression expression = null;
  ExpressionManager expressionManager = bpmnParse.getExpressionManager();
  if (StringUtils.isNotEmpty(timerEventDefinition.getTimeDate())) {
    // TimeDate
    type = TimerDeclarationType.DATE;
    expression = expressionManager.createExpression(timerEventDefinition.getTimeDate());
  } else if (StringUtils.isNotEmpty(timerEventDefinition.getTimeCycle())) {
    // TimeCycle
    type = TimerDeclarationType.CYCLE;
    expression = expressionManager.createExpression(timerEventDefinition.getTimeCycle());
  } else if (StringUtils.isNotEmpty(timerEventDefinition.getTimeDuration())) {
    // TimeDuration
    type = TimerDeclarationType.DURATION;
    expression = expressionManager.createExpression(timerEventDefinition.getTimeDuration());
  }    
  
  // neither date, cycle or duration configured!
  if (expression == null) {
    bpmnParse.getBpmnModel().addProblem("Timer needs configuration (either timeDate, timeCycle or timeDuration is needed).", timerEventDefinition);      
  }    

  // Parse the timer declaration
  // TODO move the timer declaration into the bpmn activity or next to the
  // TimerSession
  TimerDeclarationImpl timerDeclaration = new TimerDeclarationImpl(expression, type, jobHandlerType);
  timerDeclaration.setJobHandlerConfiguration(timerActivity.getId());
  timerDeclaration.setExclusive(true);
  return timerDeclaration;
}
 
开发者ID:springvelocity,项目名称:xbpm5,代码行数:32,代码来源:TimerEventDefinitionParseHandler.java


示例13: onCreate

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
@Override
public void onCreate(DelegateTask delegateTask) throws Exception {
    List<BpmConfUser> bpmConfUsers = bpmConfUserManager
            .find("from BpmConfUser where bpmConfNode.bpmConfBase.processDefinitionId=? and bpmConfNode.code=?",
                    delegateTask.getProcessDefinitionId(), delegateTask
                            .getExecution().getCurrentActivityId());
    logger.debug("{}", bpmConfUsers);

    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();

    try {
        for (BpmConfUser bpmConfUser : bpmConfUsers) {
            logger.debug("status : {}, type: {}", bpmConfUser.getStatus(),
                    bpmConfUser.getType());
            logger.debug("value : {}", bpmConfUser.getValue());

            String value = expressionManager
                    .createExpression(bpmConfUser.getValue())
                    .getValue(delegateTask).toString();

            if (bpmConfUser.getStatus() == 1) {
                if (bpmConfUser.getType() == 0) {
                    delegateTask.setAssignee(value);
                } else if (bpmConfUser.getType() == 1) {
                    delegateTask.addCandidateUser(value);
                } else if (bpmConfUser.getType() == 2) {
                    delegateTask.addCandidateGroup(value);
                }
            } else if (bpmConfUser.getStatus() == 2) {
                if (bpmConfUser.getType() == 0) {
                    if (delegateTask.getAssignee().equals(value)) {
                        delegateTask.setAssignee(null);
                    }
                } else if (bpmConfUser.getType() == 1) {
                    delegateTask.deleteCandidateUser(value);
                } else if (bpmConfUser.getType() == 2) {
                    delegateTask.deleteCandidateGroup(value);
                }
            }
        }
    } catch (Exception ex) {
        logger.debug(ex.getMessage(), ex);
    }
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:46,代码来源:ConfUserTaskListener.java


示例14: onCreate

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
@Override
public void onCreate(DelegateTask delegateTask) throws Exception {
    String processDefinitionId = delegateTask.getProcessDefinitionId();
    String businessKey = delegateTask.getExecution()
            .getProcessBusinessKey();
    String taskDefinitionKey = delegateTask.getExecution()
            .getCurrentActivityId();
    ProcessTaskDefinition processTaskDefinition = internalProcessConnector
            .findTaskDefinition(processDefinitionId, businessKey,
                    taskDefinitionKey);
    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();

    for (ParticipantDefinition participantDefinition : processTaskDefinition
            .getParticipantDefinitions()) {
        if ("user".equals(participantDefinition.getType())) {
            if ("add".equals(participantDefinition.getStatus())) {
                delegateTask.addCandidateUser(participantDefinition
                        .getValue());
            } else {
                delegateTask.deleteCandidateUser(participantDefinition
                        .getValue());
            }
        } else {
            if ("add".equals(participantDefinition.getStatus())) {
                delegateTask.addCandidateGroup(participantDefinition
                        .getValue());
            } else {
                delegateTask.deleteCandidateGroup(participantDefinition
                        .getValue());
            }
        }
    }

    String assignee = null;

    if (processTaskDefinition.getAssignee() != null) {
        assignee = expressionManager
                .createExpression(processTaskDefinition.getAssignee())
                .getValue(delegateTask).toString();
    }

    if (assignee == null) {
        delegateTask.setAssignee(null);
    } else if ((assignee.indexOf("&&") != -1)
            || (assignee.indexOf("||") != -1)) {
        logger.debug("assignee : {}", assignee);

        List<String> candidateUsers = new Expr().evaluate(assignee, this);
        logger.debug("candidateUsers : {}", candidateUsers);
        delegateTask.addCandidateUsers(candidateUsers);
    } else {
        delegateTask.setAssignee(assignee);
    }
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:56,代码来源:HumanTaskUserTaskListener.java


示例15: onCreate

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public void onCreate(DelegateTask delegateTask) throws Exception {
    String initiatorId = Authentication.getAuthenticatedUserId();

    if (initiatorId == null) {
        return;
    }

    String assignee = delegateTask.getAssignee();

    if (assignee == null) {
        return;
    }

    if (!initiatorId.equals(assignee)) {
        return;
    }

    PvmActivity targetActivity = this.findFirstActivity(delegateTask
            .getProcessDefinitionId());
    logger.debug("targetActivity : {}", targetActivity);

    if (!targetActivity.getId().equals(
            delegateTask.getExecution().getCurrentActivityId())) {
        return;
    }

    logger.debug("auto complete first task : {}", delegateTask);

    for (IdentityLink identityLink : delegateTask.getCandidates()) {
        String userId = identityLink.getUserId();
        String groupId = identityLink.getGroupId();

        if (userId != null) {
            delegateTask.deleteCandidateUser(userId);
        }

        if (groupId != null) {
            delegateTask.deleteCandidateGroup(groupId);
        }
    }

    // 对提交流程的任务进行特殊处理
    HumanTaskDTO humanTaskDto = humanTaskConnector
            .findHumanTaskByTaskId(delegateTask.getId());
    humanTaskDto.setCatalog(HumanTaskConstants.CATALOG_START);
    humanTaskConnector.saveHumanTask(humanTaskDto);

    // ((TaskEntity) delegateTask).complete();
    // Context.getCommandContext().getHistoryManager().recordTaskId((TaskEntity) delegateTask);
    // Context.getCommandContext().getHistoryManager().recordTaskId((TaskEntity) delegateTask);
    // new CompleteTaskWithCommentCmd(delegateTask.getId(), null, "发起流程")
    // .execute(Context.getCommandContext());

    // 因为recordTaskId()会判断endTime,而complete以后会导致endTime!=null,
    // 所以才会出现record()放在complete后面导致taskId没记录到historyActivity里的情况
    delegateTask.getExecution().setVariableLocal(
            "_ACTIVITI_SKIP_EXPRESSION_ENABLED", true);

    TaskDefinition taskDefinition = ((TaskEntity) delegateTask)
            .getTaskDefinition();
    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration().getExpressionManager();
    Expression expression = expressionManager
            .createExpression("${_ACTIVITI_SKIP_EXPRESSION_ENABLED}");
    taskDefinition.setSkipExpression(expression);
}
 
开发者ID:zhaojunfei,项目名称:lemon,代码行数:67,代码来源:AutoCompleteFirstTaskEventListener.java


示例16: copyExpressionManager

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
protected void copyExpressionManager(ProcessEngineConfigurationImpl flowable6Configuration, org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl flowable5Configuration) {
    if (flowable6Configuration.getFlowable5ExpressionManager() != null) {
        flowable5Configuration.setExpressionManager((ExpressionManager) flowable6Configuration.getFlowable5ExpressionManager());
    }
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:6,代码来源:DefaultProcessEngineFactory.java


示例17: getExpressionManager

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public ExpressionManager getExpressionManager() {
    return expressionManager;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java


示例18: setExpressionManager

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public ProcessEngineConfigurationImpl setExpressionManager(ExpressionManager expressionManager) {
    this.expressionManager = expressionManager;
    return this;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:5,代码来源:ProcessEngineConfigurationImpl.java


示例19: parseConfiguration

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
@Override
public void parseConfiguration(List<org.flowable.bpmn.model.FormProperty> formProperties, String formKey, DeploymentEntity deployment, ProcessDefinition processDefinition) {
    this.deploymentId = deployment.getId();

    ExpressionManager expressionManager = Context
            .getProcessEngineConfiguration()
            .getExpressionManager();

    if (StringUtils.isNotEmpty(formKey)) {
        this.formKey = expressionManager.createExpression(formKey);
    }

    FormTypes formTypes = Context
            .getProcessEngineConfiguration()
            .getFormTypes();

    for (org.flowable.bpmn.model.FormProperty formProperty : formProperties) {
        FormPropertyHandler formPropertyHandler = new FormPropertyHandler();
        formPropertyHandler.setId(formProperty.getId());
        formPropertyHandler.setName(formProperty.getName());

        AbstractFormType type = formTypes.parseFormPropertyType(formProperty);
        formPropertyHandler.setType(type);
        formPropertyHandler.setRequired(formProperty.isRequired());
        formPropertyHandler.setReadable(formProperty.isReadable());
        formPropertyHandler.setWritable(formProperty.isWriteable());
        formPropertyHandler.setVariableName(formProperty.getVariable());

        if (StringUtils.isNotEmpty(formProperty.getExpression())) {
            Expression expression = expressionManager.createExpression(formProperty.getExpression());
            formPropertyHandler.setVariableExpression(expression);
        }

        if (StringUtils.isNotEmpty(formProperty.getDefaultExpression())) {
            Expression defaultExpression = expressionManager.createExpression(formProperty.getDefaultExpression());
            formPropertyHandler.setDefaultExpression(defaultExpression);
        }

        formPropertyHandlers.add(formPropertyHandler);
    }
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:42,代码来源:DefaultFormHandler.java


示例20: setExpressionManager

import org.activiti.engine.impl.el.ExpressionManager; //导入依赖的package包/类
public void setExpressionManager(ExpressionManager expressionManager) {
    this.expressionManager = expressionManager;
}
 
开发者ID:flowable,项目名称:flowable-engine,代码行数:4,代码来源:BpmnParser.java



注:本文中的org.activiti.engine.impl.el.ExpressionManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Ipv4Prefix类代码示例发布时间:2022-05-23
下一篇:
Java CReferencePropertyInfo类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap