Skip to content

Commit 2366cf8

Browse files
committed
expand and run
1 parent cd8420b commit 2366cf8

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

server/src/main/java/org/diskproject/server/repository/WingsAdapter.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,21 @@ public String runWorkflow(String wflowname, List<VariableBinding> vbindings, Map
593593
return null;
594594
}
595595

596+
//At this point we could use /expandAndRunWorkflow
597+
try {
598+
vbindings = addDataBindings(inputVariables, vbindings, getParams, true);
599+
toPost = toPlanAcceptableFormat(wflowname, vbindings, inputVariables);
600+
601+
String expandAndRun = postWithSpecifiedMediaType("users/" + getUsername() + "/" + domain + "/executions/expandAndRunWorkflow",
602+
toPost, "application/json", "application/json");
603+
if (expandAndRun != null && expandAndRun.length() > 0) {
604+
return expandAndRun;
605+
}
606+
} catch (Exception e) {
607+
System.err.println("Error expanding and running " + e.getMessage());
608+
System.err.println("REQUEST: " + toPost);
609+
}
610+
596611
try {
597612
vbindings = addDataBindings(inputVariables, vbindings, getParams, true);
598613
toPost = toPlanAcceptableFormat(wflowname, vbindings, inputVariables);

0 commit comments

Comments
 (0)