Skip to content

Commit 67adffa

Browse files
Merge pull request #15 from howeye/master
Update QualitisNodeExecution.java to fix bug
2 parents 781feb2 + 3aeb321 commit 67adffa

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

qualitis-appjoint/appjoint/src/main/java/com.webank/wedatasphere/appjoint/QualitisNodeExecution.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ public class QualitisNodeExecution extends LongTermNodeExecution {
4444

4545
private String baseUrl;
4646

47-
public boolean canExecute(Node node, NodeContext nodeContext) {
48-
return true;
49-
}
50-
5147
@Override
5248
public void init(Map<String, Object> map) throws AppJointErrorException {
5349
appId = (String) map.get("qualitis_appId");
@@ -58,7 +54,7 @@ public void init(Map<String, Object> map) throws AppJointErrorException {
5854

5955
@Override
6056
public boolean canExecute(AppJointNode appJointNode, NodeContext context, Session session) {
61-
return false;
57+
return appJointNode.getNodeType().toLowerCase().contains("qualitis");
6258
}
6359

6460
@Override
@@ -321,4 +317,4 @@ public String getBaseUrl() {
321317
public void setBaseUrl(String s) {
322318
this.baseUrl = s;
323319
}
324-
}
320+
}

0 commit comments

Comments
 (0)