本文整理了Java中org.activiti.engine.RuntimeService.setVariablesLocal方法的一些代码示例,展示了RuntimeService.setVariablesLocal的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。RuntimeService.setVariablesLocal方法的具体详情如下:包路径:org.activiti.engine.RuntimeService类名称:RuntimeService方法名:setVariablesLocal
RuntimeService.setVariablesLocal介绍
[英]Update or create given variables for an execution (not considering parent scopes). If the variables are not already existing, it will be created in the given execution.[中]为执行更新或创建给定变量(不考虑父范围)。如果变量尚未存在,则将在给定的执行中创建该变量。
代码示例
代码示例来源:origin: org.flowable/flowable5-compatibility
@Overridepublic void setExecutionVariables(String executionId, Map variables, boolean isLocal) { try { if (isLocal) { getProcessEngine().getRuntimeService().setVariablesLocal(executionId, variables); } else { getProcessEngine().getRuntimeService().setVariables(executionId, variables); } } catch (org.activiti.engine.ActivitiException e) { handleActivitiException(e); }}
代码示例来源:origin: org.activiti/activiti-process-runtime-api-impl
@Overridepublic void setVariables(SetProcessVariablesPayload setProcessVariablesPayload) { if (setProcessVariablesPayload.isLocalOnly()) { runtimeService.setVariablesLocal(setProcessVariablesPayload.getProcessInstanceId(), setProcessVariablesPayload.getVariables()); } else { runtimeService.setVariables(setProcessVariablesPayload.getProcessInstanceId(), setProcessVariablesPayload.getVariables()); }}
代码示例来源:origin: org.activiti/activiti-rest
runtimeService.setVariablesLocal(execution.getId(), variablesToSet);} else { if (execution.getParentId() != null) {
代码示例来源:origin: org.activiti/activiti-process-runtime-api-impl
@Overridepublic void setVariables(SetProcessVariablesPayload setProcessVariablesPayload) { ProcessInstanceImpl processInstance = (ProcessInstanceImpl) processInstance(setProcessVariablesPayload.getProcessInstanceId()); if (!securityPoliciesManager.canWrite(processInstance.getProcessDefinitionKey())) { throw new ActivitiForbiddenException("Operation not permitted for " + processInstance.getProcessDefinitionKey() + " due security policy violation"); } if (setProcessVariablesPayload.isLocalOnly()) { runtimeService.setVariablesLocal(setProcessVariablesPayload.getProcessInstanceId(), setProcessVariablesPayload.getVariables()); } else { runtimeService.setVariables(setProcessVariablesPayload.getProcessInstanceId(), setProcessVariablesPayload.getVariables()); }}