Set Variables transform throws an error when missing workflow
@@ -176,7 +176,7 @@ public class SetVariable extends BaseTransform<SetVariableMeta,SetVariableData>
if ( parentWorkflow != null ) {
parentWorkflow.setVariable( varname, value );
} else {
- throw new HopTransformException( "Can't set variable ["
+ log.logBasic("WARNING: Can't set variable ["
+ varname + "] on parent workflow: the parent workflow is not available" );
}
@@ -186,7 +186,7 @@ public class SetVariable extends BaseTransform<SetVariableMeta,SetVariableData>
if ( gpJob != null ) {
gpJob.setVariable( varname, value );
} else {
- throw new HopTransformException( "Can't set variable ["
+ log.logBasic("WARNING: Can't set variable ["
+ varname + "] on grand parent workflow: the grand parent workflow is not available" );
}
break;
@@ -198,7 +198,7 @@ public class SetVariable extends BaseTransform<SetVariableMeta,SetVariableData>
if ( parentWorkflow != null ) {
parentWorkflow.setVariable( varname, value );
} else {
- throw new HopTransformException( "Can't set variable [" + varname + "] on parent workflow: the parent workflow is not available" );
+ log.logBasic("WARNING: Can't set variable [" + varname + "] on parent workflow: the parent workflow is not available" );
}
break;
