org.camunda.bpm.engine.variable.Variables.fromMap()方法的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(8.8k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.camunda.bpm.engine.variable.Variables.fromMap()方法的一些代码示例,展示了Variables.fromMap()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Variables.fromMap()方法的具体详情如下:
包路径:org.camunda.bpm.engine.variable.Variables
类名称:Variables
方法名:fromMap

Variables.fromMap介绍

[英]If the given map is not a variable map, adds all its entries as untyped values to a new VariableMap. If the given map is a VariableMap, it is returned as is.
[中]如果给定的映射不是变量映射,则将其所有条目作为非类型化值添加到新的VariableMap。如果给定的映射是VariableMap,它将按原样返回。

代码示例

代码示例来源:origin: camunda/camunda-bpm-platform

public SubmitStartFormCmd(String processDefinitionId, String businessKey, Map<String, Object> properties) {
 this.processDefinitionId = processDefinitionId;
 this.businessKey = businessKey;
 this.variables = Variables.fromMap(properties);
}

代码示例来源:origin: camunda/camunda-bpm-platform

public SubmitTaskFormCmd(String taskId, Map<String, Object> properties) {
 this.taskId = taskId;
 this.properties = Variables.fromMap(properties);
}

代码示例来源:origin: camunda/camunda-bpm-platform

public SubmitStartFormCmd(String processDefinitionId, String businessKey, Map<String, Object> properties) {
 this.processDefinitionId = processDefinitionId;
 this.businessKey = businessKey;
 this.variables = Variables.fromMap(properties);
}

代码示例来源:origin: camunda/camunda-bpm-platform

public SubmitTaskFormCmd(String taskId, Map<String, Object> properties) {
 this.taskId = taskId;
 this.properties = Variables.fromMap(properties);
}

代码示例来源:origin: camunda/camunda-bpm-platform

public CaseInstanceBuilder setVariables(Map<String, Object> variables) {
 if (variables != null) {
  if (this.variables == null) {
   this.variables = Variables.fromMap(variables);
  }
  else {
   this.variables.putAll(variables);
  }
 }
 return this;
}

代码示例来源:origin: camunda/camunda-bpm-platform

public CaseInstanceBuilder setVariables(Map<String, Object> variables) {
 if (variables != null) {
  if (this.variables == null) {
   this.variables = Variables.fromMap(variables);
  }
  else {
   this.variables.putAll(variables);
  }
 }
 return this;
}

代码示例来源:origin: camunda/camunda-bpm-platform

public DmnDecisionResult evaluateDecision(String decisionKey, InputStream inputStream, Map<String, Object> variables) {
 ensureNotNull("variables", variables);
 return evaluateDecision(decisionKey, inputStream, Variables.fromMap(variables).asVariableContext());
}

代码示例来源:origin: camunda/camunda-bpm-platform

public DmnDecisionTableResult evaluateDecisionTable(String decisionKey, InputStream inputStream, Map<String, Object> variables) {
 ensureNotNull("variables", variables);
 return evaluateDecisionTable(decisionKey, inputStream, Variables.fromMap(variables).asVariableContext());
}

代码示例来源:origin: camunda/camunda-bpm-platform

public DmnDecisionResult evaluateDecision(String decisionKey, DmnModelInstance dmnModelInstance, Map<String, Object> variables) {
 ensureNotNull("variables", variables);
 return evaluateDecision(decisionKey, dmnModelInstance, Variables.fromMap(variables).asVariableContext());
}

代码示例来源:origin: camunda/camunda-bpm-platform

public DmnDecisionTableResult evaluateDecisionTable(String decisionKey, DmnModelInstance dmnModelInstance, Map<String, Object> variables) {
 ensureNotNull("variables", variables);
 return evaluateDecisionTable(decisionKey, dmnModelInstance, Variables.fromMap(variables).asVariableContext());
}

代码示例来源:origin: camunda/camunda-bpm-platform

public DmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, Map<String, Object> variables) {
 ensureNotNull("decision", decision);
 ensureNotNull("variables", variables);
 return evaluateDecisionTable(decision, Variables.fromMap(variables).asVariableContext());
}

代码示例来源:origin: camunda/camunda-bpm-platform

public DmnDecisionResult evaluateDecision(DmnDecision decision, Map<String, Object> variables) {
 ensureNotNull("decision", decision);
 ensureNotNull("variables", variables);
 return evaluateDecision(decision, Variables.fromMap(variables).asVariableContext());
}

代码示例来源:origin: camunda/camunda-bpm-platform

public EvaluateDecisionTableCmd(DecisionTableEvaluationBuilderImpl builder) {
 this.decisionDefinitionKey = builder.getDecisionDefinitionKey();
 this.decisionDefinitionId = builder.getDecisionDefinitionId();
 this.version = builder.getVersion();
 this.variables = Variables.fromMap(builder.getVariables());
 this.decisionDefinitionTenantId = builder.getDecisionDefinitionTenantId();
 this.isTenandIdSet = builder.isTenantIdSet();
}

代码示例来源:origin: camunda/camunda-bpm-platform

public EvaluateDecisionTableCmd(DecisionTableEvaluationBuilderImpl builder) {
 this.decisionDefinitionKey = builder.getDecisionDefinitionKey();
 this.decisionDefinitionId = builder.getDecisionDefinitionId();
 this.version = builder.getVersion();
 this.variables = Variables.fromMap(builder.getVariables());
 this.decisionDefinitionTenantId = builder.getDecisionDefinitionTenantId();
 this.isTenandIdSet = builder.isTenantIdSet();
}

代码示例来源:origin: camunda/camunda-bpm-platform

public EvaluateDecisionCmd(DecisionEvaluationBuilderImpl builder) {
 this.decisionDefinitionKey = builder.getDecisionDefinitionKey();
 this.decisionDefinitionId = builder.getDecisionDefinitionId();
 this.version = builder.getVersion();
 this.variables = Variables.fromMap(builder.getVariables());
 this.decisionDefinitionTenantId = builder.getDecisionDefinitionTenantId();
 this.isTenandIdSet = builder.isTenantIdSet();
}

代码示例来源:origin: camunda/camunda-bpm-platform

public EvaluateDecisionCmd(DecisionEvaluationBuilderImpl builder) {
 this.decisionDefinitionKey = builder.getDecisionDefinitionKey();
 this.decisionDefinitionId = builder.getDecisionDefinitionId();
 this.version = builder.getVersion();
 this.variables = Variables.fromMap(builder.getVariables());
 this.decisionDefinitionTenantId = builder.getDecisionDefinitionTenantId();
 this.isTenandIdSet = builder.isTenantIdSet();
}

代码示例来源:origin: camunda/camunda-bpm-platform

protected void provideTenantId(Map<String, Object> variables) {
 if (tenantId == null) {
  TenantIdProvider tenantIdProvider = Context.getProcessEngineConfiguration().getTenantIdProvider();
  if (tenantIdProvider != null) {
   VariableMap variableMap = Variables.fromMap(variables);
   ProcessDefinition processDefinition = getProcessDefinition();
   TenantIdProviderProcessInstanceContext ctx;
   if (superExecutionId != null) {
    ctx = new TenantIdProviderProcessInstanceContext(processDefinition, variableMap, getSuperExecution());
   } else if (superCaseExecutionId != null) {
    ctx = new TenantIdProviderProcessInstanceContext(processDefinition, variableMap, getSuperCaseExecution());
   } else {
    ctx = new TenantIdProviderProcessInstanceContext(processDefinition, variableMap);
   }
   tenantId = tenantIdProvider.provideTenantIdForProcessInstance(ctx);
  }
 }
}

代码示例来源:origin: camunda/camunda-bpm-platform

protected void provideTenantId(Map<String, Object> variables) {
 TenantIdProvider tenantIdProvider = Context.getProcessEngineConfiguration().getTenantIdProvider();
 if(tenantIdProvider != null) {
  VariableMap variableMap = Variables.fromMap(variables);
  CaseDefinition caseDefinition = (CaseDefinition) getCaseDefinition();
  TenantIdProviderCaseInstanceContext ctx = null;
  if(superExecutionId != null) {
   ctx = new TenantIdProviderCaseInstanceContext(caseDefinition, variableMap, getSuperExecution());
  }
  else if(superCaseExecutionId != null) {
   ctx = new TenantIdProviderCaseInstanceContext(caseDefinition, variableMap, getSuperCaseExecution());
  }
  else {
   ctx = new TenantIdProviderCaseInstanceContext(caseDefinition, variableMap);
  }
  tenantId = tenantIdProvider.provideTenantIdForCaseInstance(ctx);
 }
}

代码示例来源:origin: camunda/camunda-bpm-platform

protected void provideTenantId(Map<String, Object> variables) {
 TenantIdProvider tenantIdProvider = Context.getProcessEngineConfiguration().getTenantIdProvider();
 if(tenantIdProvider != null) {
  VariableMap variableMap = Variables.fromMap(variables);
  CaseDefinition caseDefinition = (CaseDefinition) getCaseDefinition();
  TenantIdProviderCaseInstanceContext ctx = null;
  if(superExecutionId != null) {
   ctx = new TenantIdProviderCaseInstanceContext(caseDefinition, variableMap, getSuperExecution());
  }
  else if(superCaseExecutionId != null) {
   ctx = new TenantIdProviderCaseInstanceContext(caseDefinition, variableMap, getSuperCaseExecution());
  }
  else {
   ctx = new TenantIdProviderCaseInstanceContext(caseDefinition, variableMap);
  }
  tenantId = tenantIdProvider.provideTenantIdForCaseInstance(ctx);
 }
}

代码示例来源:origin: camunda/camunda-bpm-platform

protected void provideTenantId(Map<String, Object> variables) {
 if (tenantId == null) {
  TenantIdProvider tenantIdProvider = Context.getProcessEngineConfiguration().getTenantIdProvider();
  if (tenantIdProvider != null) {
   VariableMap variableMap = Variables.fromMap(variables);
   ProcessDefinition processDefinition = getProcessDefinition();
   TenantIdProviderProcessInstanceContext ctx;
   if (superExecutionId != null) {
    ctx = new TenantIdProviderProcessInstanceContext(processDefinition, variableMap, getSuperExecution());
   } else if (superCaseExecutionId != null) {
    ctx = new TenantIdProviderProcessInstanceContext(processDefinition, variableMap, getSuperCaseExecution());
   } else {
    ctx = new TenantIdProviderProcessInstanceContext(processDefinition, variableMap);
   }
   tenantId = tenantIdProvider.provideTenantIdForProcessInstance(ctx);
  }
 }
}

相关文章