本文整理汇总了Java中org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity.setId方法的典型用法代码示例。如果您正苦于以下问题:Java VariableInstanceEntity.setId方法的具体用法?Java VariableInstanceEntity.setId怎么用?Java VariableInstanceEntity.setId使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity
的用法示例。
在下文中一共展示了VariableInstanceEntity.setId方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: read
import org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity; //导入方法依赖的package包/类
public VariableInstanceEntity read(GettableData data) {
VariableInstanceEntity entity = new VariableInstanceEntity();
entity.setId(data.getString("id"));
entity.setSerializerName(data.getString("type"));
entity.setName(data.getString("name"));
entity.setExecutionId(data.getString("execution_id"));
entity.setProcessInstanceId(data.getString("proc_inst_id"));
entity.setCaseExecutionId(data.getString("case_execution_id"));
entity.setCaseInstanceId(data.getString("case_inst_id"));
entity.setTaskId(data.getString("task_id"));
entity.setByteArrayValueId(data.getString("bytearray_id"));
if(!data.isNull("double")){
entity.setDoubleValue(data.getDouble("double"));
}
if(!data.isNull("long")){
entity.setLongValue(data.getLong("long"));
}
entity.setTextValue(data.getString("text"));
entity.setTextValue2(data.getString("text2"));
entity.setSequenceCounter(data.getLong("sequence_counter"));
entity.setConcurrentLocal(data.getBool("is_concurrent_local"));
return entity;
}
示例2: copy
import org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity; //导入方法依赖的package包/类
public VariableInstanceEntity copy(VariableInstanceEntity data) {
VariableInstanceEntity entity = new VariableInstanceEntity();
entity.setId(data.getId());
entity.setSerializerName(data.getSerializerName());
entity.setName(data.getName());
entity.setExecutionId(data.getExecutionId());
entity.setProcessInstanceId(data.getProcessInstanceId());
entity.setCaseExecutionId(data.getCaseExecutionId());
entity.setCaseInstanceId(data.getCaseInstanceId());
entity.setTaskId(data.getTaskId());
entity.setByteArrayValueId(data.getByteArrayValueId());
entity.setDoubleValue(data.getDoubleValue());
entity.setLongValue(data.getLongValue());
entity.setTextValue(data.getTextValue());
entity.setTextValue2(data.getTextValue2());
entity.setSequenceCounter(data.getSequenceCounter());
entity.setConcurrentLocal(data.isConcurrentLocal());
return entity;
}
示例3: setup
import org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity; //导入方法依赖的package包/类
@Before
public void setup() {
TestIdGenerator idGenerator = new TestIdGenerator();
entityManager = new ExposingDbEntityManager(idGenerator, null);
execution1 = new ExecutionEntity();
execution1.setId("101");
execution2 = new ExecutionEntity();
execution2.setId("102");
execution3 = new ExecutionEntity();
execution3.setId("103");
execution4 = new ExecutionEntity();
execution4.setId("104");
execution5 = new ExecutionEntity();
execution5.setId("105");
execution6 = new ExecutionEntity();
execution6.setId("106");
execution7 = new ExecutionEntity();
execution7.setId("107");
execution8 = new ExecutionEntity();
execution8.setId("108");
task1 = new TaskEntity();
task1.setId("104");
task2 = new TaskEntity();
task2.setId("105");
task3 = new TaskEntity();
task3.setId("106");
task4 = new TaskEntity();
task4.setId("107");
variable1 = new VariableInstanceEntity();
variable1.setId("108");
variable2 = new VariableInstanceEntity();
variable2.setId("109");
variable3 = new VariableInstanceEntity();
variable3.setId("110");
variable4 = new VariableInstanceEntity();
variable4.setId("111");
}