diff --git a/build.gradle b/build.gradle index 4f17db3..02c539d 100644 --- a/build.gradle +++ b/build.gradle @@ -41,7 +41,7 @@ dependencies { implementation 'org.apache.velocity:velocity-engine-core:2.3' implementation 'com.nimbusds:nimbus-jose-jwt:9.10' implementation 'org.bdware.doip:doip-sdk:1.3.9' - implementation 'org.bdware.doip:doip-audit-tool:1.2.1' + implementation 'org.bdware.doip:doip-audit-tool:1.2.2' implementation 'org.bdware.doip:bdosclient:0.0.2' implementation fileTree(dir: 'lib', include: '*.jar') testImplementation 'junit:junit:4.13.2' diff --git a/src/main/java/org/bdware/server/doip/ContractRepositoryHandler.java b/src/main/java/org/bdware/server/doip/ContractRepositoryHandler.java index aeab986..0a041f2 100644 --- a/src/main/java/org/bdware/server/doip/ContractRepositoryHandler.java +++ b/src/main/java/org/bdware/server/doip/ContractRepositoryHandler.java @@ -103,6 +103,9 @@ public class ContractRepositoryHandler extends RepositoryHandlerBase implements if (digitalObject.attributes.has("contractExecType")) c.setType(ContractExecType.valueOf(digitalObject.attributes.get("contractExecType").getAsString())); else c.setType(ContractExecType.Sole); + if (digitalObject.attributes.has("shardingId")) + c.setType(ContractExecType.valueOf(digitalObject.attributes.get("shardingId").getAsString())); + else c.setShardingId(-1); c.setScript(path); c.setOwner(doipMessage.credential.getSigner()); if (digitalObject.attributes.has("createParam")) {