Workflow Soluiton

 View Only
  • 1.  Error with Linked Model

    Posted May 11, 2012 12:46 PM

    I am using linked models to do multiple approvals.  My problem is that I'm trying to output variables from the models but I getting a message from each model "Error: the component Linked Model declares that it outputs variable [variable name] of typeBoolean but did not", I am also getting this for a string I'm trying to output.  Why is it not able to output the variables?

     

     



  • 2.  RE: Error with Linked Model
    Best Answer

    Posted May 14, 2012 03:43 AM

    This kind of exception is thrown when passed variable has a null value (e.g. has't been initialized) but the mapping definition for this variable doesn't allow for null passing (option Null Allowed in Input or Output Data for called model is not set).

    So you must check this option or stop passing a null variable.



  • 3.  RE: Error with Linked Model

    Posted May 14, 2012 07:24 AM

    That would make sence but Boolean variables are never null.  They are always true of false.  I could see that for the string output but I'm getting it for Boolean as well.



  • 4.  RE: Error with Linked Model

    Posted May 14, 2012 08:02 AM

    Unfortunatelly you are wrong. Any Boolean variable also could be a null.

    Availability of the variable during a design-time is something different (it's based on resulting variables and paths connections) form existence of this variable during a run-time. For instance the variable hasn't been created because component responsible for its creation exited through other output (e.g. not found vs. found).

    So the availablility of the variable on path and doing a mapping for this variable doesn't guarantee its real existence during a run-time.



  • 5.  RE: Error with Linked Model

    Posted May 14, 2012 08:07 AM

    Yes you are right.  I though because I decleared the boolean as a global at the beging of the main project and set it to false it would take care of it.  Since I didn't declare it as an input when it output on a path where it should remain false it was null.  After putting it in the path were it should remain false it started working.