This repository has been archived by the owner on May 26, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: TaskVariableEntity model is introduced, corresponding changes an…
…d tests are corrected or added. (#120) * Fix: TaskVariableEntity model is introduced, corresponding changes and tests are corrected or added. * fix: failing tests are corrected * fix: Integration test corrected * feat: handler added for TaskAdmincontroller so that it looks similar to TaskController * feat: a test added for processInstance / task variables having same name... * fix: refactor process and task variable entities model * fix: not needed entry point for variables removed, refactoring for process/task variables * fix: refactoring for ProcessInstanceVariableResourceAssembler * fix: first set of changes implemented * fix: VariableUpdater changed to ProcessVariableUpdater * fix: last set of requested changes implemented (#120) * Resolve conflict clean up * Fix index name conflicts * Fix codacy warnings
- Loading branch information
1 parent
2a3e424
commit 87c8a36
Showing
44 changed files
with
989 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
...ry-model/src/main/java/org/activiti/cloud/services/query/model/ProcessVariableEntity.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
/* | ||
* Copyright 2018 Alfresco, Inc. and/or its affiliates. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.activiti.cloud.services.query.model; | ||
|
||
import java.util.Date; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Index; | ||
import javax.persistence.Table; | ||
|
||
@Entity(name="ProcessVariable") | ||
@Table(name = "PROCESS_VARIABLE", | ||
indexes = { | ||
@Index(name = "proc_var_processInstanceId_idx", columnList = "processInstanceId", unique = false), | ||
@Index(name = "proc_var_name_idx", columnList = "name", unique = false), | ||
@Index(name = "proc_var_executionId_idx", columnList = "executionId", unique = false) | ||
}) | ||
public class ProcessVariableEntity extends AbstractVariableEntity { | ||
|
||
public ProcessVariableEntity() { | ||
} | ||
|
||
public ProcessVariableEntity(Long id, | ||
String type, | ||
String name, | ||
String processInstanceId, | ||
String serviceName, | ||
String serviceFullName, | ||
String serviceVersion, | ||
String appName, | ||
String appVersion, | ||
Date createTime, | ||
Date lastUpdatedTime, | ||
String executionId) { | ||
super(id, | ||
type, | ||
name, | ||
processInstanceId, | ||
serviceName, | ||
serviceFullName, | ||
serviceVersion, | ||
appName, | ||
appVersion, | ||
createTime, | ||
lastUpdatedTime, | ||
executionId); | ||
|
||
} | ||
|
||
@Override | ||
public String getTaskId() { | ||
return null; | ||
} | ||
|
||
@Override | ||
public boolean isTaskVariable() { | ||
return false; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.