Workflows containing tools that are not loaded will now open in the editor instead of failing on the dictionary lookup.

The offending nodes are marked as having an error state, and the workflow cannot be saved.
This will enable users to at least look at and try to recover a workflow by removing (and potentially replacing) the offending steps, as well as providing a better view of what's actually wrong with the workflow.
This commit is contained in:
Dannon Baker
2011-01-21 15:50:21 -05:00
parent a0155f8ec5
commit 89be044152
4 changed files with 57 additions and 14 deletions
@@ -1058,9 +1058,12 @@ $.extend( CanvasManager.prototype, {
y = position.top / in_h * o_h,
w = node_element.width() / in_w * o_w,
h = node_element.height() / in_h * o_h;
if (node.workflow_outputs != undefined && node.workflow_outputs.length > 0){
if (node.tool_errors){
c.fillStyle = "#FFCCCC";
c.strokeStyle = "#AA6666";
} else if (node.workflow_outputs != undefined && node.workflow_outputs.length > 0){
c.fillStyle = "#E8A92D";
c.strokeStyle = "#E8A92D"
c.strokeStyle = "#E8A92D";
}
c.fillRect( x, y, w, h );
c.strokeRect( x, y, w, h );