protected void ensureSubCaseInstanceInitialized() { if (shouldQueryForSubCaseInstance && subCaseInstance == null) { subCaseInstance = Context.getCommandContext().getCaseExecutionManager().findSubCaseInstanceBySuperExecutionId(id); } }
protected void ensureCaseInstanceInitialized() { if ((caseInstance == null) && (caseInstanceId != null)) { caseInstance = Context .getCommandContext() .getCaseExecutionManager() .findCaseExecutionById(caseInstanceId); } }
protected void ensureSuperCaseExecutionInitialized() { if (superCaseExecution == null && superCaseExecutionId != null) { superCaseExecution = Context.getCommandContext().getCaseExecutionManager().findCaseExecutionById(superCaseExecutionId); } }
protected void ensureCaseExecutionsInitialized() { if (caseExecutions == null) { this.caseExecutions = Context .getCommandContext() .getCaseExecutionManager() .findChildCaseExecutionsByParentCaseExecutionId(id); } }
public CaseExecutionEntity getCaseExecution() { if (caseExecutionId != null) { return Context .getCommandContext() .getCaseExecutionManager() .findCaseExecutionById(caseExecutionId); } return null; }
protected void ensureSubCaseInstanceInitialized() { if (subCaseInstance == null) { subCaseInstance = Context .getCommandContext() .getCaseExecutionManager() .findSubCaseInstanceBySuperCaseExecutionId(id); } }
protected void ensureSuperCaseExecutionInitialized() { if (superCaseExecution == null && superCaseExecutionId != null) { superCaseExecution = Context .getCommandContext() .getCaseExecutionManager() .findCaseExecutionById(superCaseExecutionId); } }
protected void ensureCaseExecutionInitialized() { if ((caseExecution==null) && (caseExecutionId!=null) ) { caseExecution = Context .getCommandContext() .getCaseExecutionManager() .findCaseExecutionById(caseExecutionId); } }
protected void ensureSubCaseInstanceInitialized() { if (shouldQueryForSubCaseInstance && subCaseInstance == null) { subCaseInstance = Context.getCommandContext().getCaseExecutionManager().findSubCaseInstanceBySuperExecutionId(id); } }
public CaseExecutionEntity getCaseExecution() { if (caseExecutionId != null) { return Context .getCommandContext() .getCaseExecutionManager() .findCaseExecutionById(caseExecutionId); } return null; }
protected void ensureCaseInstanceInitialized() { if ((caseInstance == null) && (caseInstanceId != null)) { caseInstance = Context .getCommandContext() .getCaseExecutionManager() .findCaseExecutionById(caseInstanceId); } }
protected CaseExecutionEntity newCaseExecution() { CaseExecutionEntity newCaseExecution = new CaseExecutionEntity(); Context .getCommandContext() .getCaseExecutionManager() .insertCaseExecution(newCaseExecution); return newCaseExecution; }
@Override public Void execute(CommandContext commandContext) { commandContext .getCaseExecutionManager() .deleteCaseInstance(caseInstanceId, null); return null; }
protected CaseExecutionEntity newCaseExecution() { CaseExecutionEntity newCaseExecution = new CaseExecutionEntity(); Context .getCommandContext() .getCaseExecutionManager() .insertCaseExecution(newCaseExecution); return newCaseExecution; }
public long executeCount(CommandContext commandContext) { checkQueryOk(); ensureVariablesInitialized(); return commandContext .getCaseExecutionManager() .findCaseExecutionCountByQueryCriteria(this); }
public long executeCount(CommandContext commandContext) { checkQueryOk(); ensureVariablesInitialized(); return commandContext .getCaseExecutionManager() .findCaseInstanceCountByQueryCriteria(this); }
public List<CaseInstance> executeList(CommandContext commandContext, Page page) { checkQueryOk(); ensureVariablesInitialized(); return commandContext .getCaseExecutionManager() .findCaseInstanceByQueryCriteria(this, page); }
public long executeCount(CommandContext commandContext) { checkQueryOk(); ensureVariablesInitialized(); return commandContext .getCaseExecutionManager() .findCaseInstanceCountByQueryCriteria(this); }
@Override protected CmmnExecution newCaseInstance() { CaseExecutionEntity caseInstance = new CaseExecutionEntity(); if (tenantId != null) { caseInstance.setTenantId(tenantId); } Context .getCommandContext() .getCaseExecutionManager() .insertCaseExecution(caseInstance); return caseInstance; }
@Override protected CmmnExecution newCaseInstance() { CaseExecutionEntity caseInstance = new CaseExecutionEntity(); if (tenantId != null) { caseInstance.setTenantId(tenantId); } Context .getCommandContext() .getCaseExecutionManager() .insertCaseExecution(caseInstance); return caseInstance; }