The information in this article applies to:
Product: Metastorm BPM
Version: 7.x
Issue
When the Integration Wizard is used to build a formula with the function WriteText, the user is given the option of saving the returned string as Unicode. However, if this fourth parameter is used when calling the function in a JScript.NET script, the call fails.
The following list shows the results of the call, depending on how the call is made and the number of parameters:
Success:
%WriteText("Hello World","C:\\SampleFile.txt")
%WriteText("Hello World","C:\\SampleFile.txt",1)
%WriteText("Hello World","C:\\SampleFile.txt",0,0)
%WriteText("Hello World","C:\\SampleFile.txt",1,1)
ework.WriteText("Hello World","C:\\\\SampleFile.txt");
ework.WriteText("Hello World","C:\\\\SampleFile.txt","1");
Failure:
ework.WriteText("Hello World","C:\\\\SampleFile.txt","0", "0");
ework.WriteText("Hello World","C:\\\\SampleFile.txt","1", "1");
Resolution