This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Complete example for passing return value from a ScriptExec process step to the next?

Hello,

I try to find out how to pass a value calculated insite a script called by a ScriptExec ScriptComponent from the according process step to the next step.

What I've found so far:

- a few forum entries mention the syntax "&OUT(paramName)&"

- there is a a Parameter "ParamOutName" at ScriptExec Component

- In ScriptSamples, I can find this regarding OUT parameters: Value = CLng("&Out(FileSize)&") < $OnLineLimit:Long$

- Parameters on process steps can be of type "IN" and "OUT"

- ScriptExec has more Parameters which may apply here: "Value / Value = "Return of the script", "PassParametersAndResult", "UseBooleanResultAsComponentSuccessValue". I can not find documentation about them.

- The Process Orchestration documentation mention OUT parameters with this example: Value = "&Out(FileSize)&"

- Scripts seem to be not allowed to use ByRef parameters.

 

Until now, I still don't know how to pass values from a script to the next process step.

 

Is there somewhere a complete example, including how to set the value inside the script for passing it back to the process step, and passing it over to the next process step?

 

Thanks and best regards,
  Juergen

Parents
  • When I'm looking at process "VI_ADS_AccProduct_TakeOwnerShip" defined by the system, there is a process step called "Find Owner". That can be used as an example how to pass back data.

    The called script "VI_GetITShopProductOwner" pass back a value using the return value of the function. Even it can be accessed using the process parameter "ParamOutName", it is not an OUT parameter. It is the return value from the function. This was confusing to me.
Reply
  • When I'm looking at process "VI_ADS_AccProduct_TakeOwnerShip" defined by the system, there is a process step called "Find Owner". That can be used as an example how to pass back data.

    The called script "VI_GetITShopProductOwner" pass back a value using the return value of the function. Even it can be accessed using the process parameter "ParamOutName", it is not an OUT parameter. It is the return value from the function. This was confusing to me.
Children
No Data